Re: Is there a way to flush the file cache?
- From: Michael Heiming <michael+USENET@xxxxxxxxxxxxxx>
- Date: Fri, 29 Dec 2006 15:55:32 +0100
In comp.os.linux.misc General Schvantzkoph <schvantzkoph@xxxxxxxxx>:
I'm writing a system exerciser that checks memory and disk I/O. Is there a
C call that flushes the file cache so that I can be assured that my freads
are coming from the disk and not the RAM. I'm using a sync() but I don't
think that does the whole job, it guarantees that the disk writes happen
but I don't think it clears out the file cache.
There are several apps to do it iirc "bonnie" and alike a quick
search on freshmeat.net should reveal some.
Good luck
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@xxxxxxxxxx | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 246: It must have been the lightning storm we had
(yesterday) (last week) (last month)
.
- References:
- Is there a way to flush the file cache?
- From: General Schvantzkoph
- Is there a way to flush the file cache?
- Prev by Date: Re: Is there a way to flush the file cache?
- Next by Date: aplay on FC5 fails on .au files
- Previous by thread: Re: Is there a way to flush the file cache?
- Next by thread: Re: Is there a way to flush the file cache?
- Index(es):
Relevant Pages
|