Re: is there a user mode way to flush disk cache
From: Eric Taylor (et2_at_rocketship1.com)
Date: 10/20/05
- Next message: Peter T. Breuer: "Re: is there a user mode way to flush disk cache"
- Previous message: John Reiser: "Re: is there a user mode way to flush disk cache"
- In reply to: Peter T. Breuer: "Re: is there a user mode way to flush disk cache"
- Next in thread: Peter T. Breuer: "Re: is there a user mode way to flush disk cache"
- Reply: Peter T. Breuer: "Re: is there a user mode way to flush disk cache"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 20 Oct 2005 09:37:24 -0700
"Peter T. Breuer" wrote:
> > If the cache is not emptied, then the next series of file writes will
>
> There is no way to empty cache, except by filling buffers.
>
> > not complete quickly as the system will hang my process while it
> > does some cache flushing operations.
>
> There is no such thing as a "cache flushing operation". I think you
> have buffer and cache mixed up!
You are correct here. To me, the cache is the memory that top
says is being cached. I don't really know how this translates
into buffers, although the number that top says: buff for seems to
move up/down with the value of cached.
I have not been able to find a tutorial on how disk file caching
works on linux, do you know of a link?
But what I have found, through some testing (just writing a series
of 2 gig files and timing how long it takes) that the behavior on
2.4 vs 2.6 seems different.
On the 2.4 system, the writes go fast and the cache and number of
buff (in top) go up quickly until the amount of free mem is near zero.
On the 2.6 system, things begin to bog down when there's still 2 gigs
of free memory, and the cached value never gets more than 8gig on
a 12 gig system (while 2 gig are still free).
So, something must be different. But I will look into the journalling
parameters.
thanks
- Next message: Peter T. Breuer: "Re: is there a user mode way to flush disk cache"
- Previous message: John Reiser: "Re: is there a user mode way to flush disk cache"
- In reply to: Peter T. Breuer: "Re: is there a user mode way to flush disk cache"
- Next in thread: Peter T. Breuer: "Re: is there a user mode way to flush disk cache"
- Reply: Peter T. Breuer: "Re: is there a user mode way to flush disk cache"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|