Re: Is there a way to flush the file cache?
- From: "Tony Lawrence" <pcunix@xxxxxxxxx>
- Date: 28 Dec 2006 13:29:24 -0800
General Schvantzkoph wrote:
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.
Well, of course it can't guarantee that some random app hasn't written
data, if that's what you mean..
--
Tony Lawrence
Unix/Linux/Mac OS X Resources
http://aplawrence.com
.
- Follow-Ups:
- Re: Is there a way to flush the file cache?
- From: General Schvantzkoph
- Re: Is there a way to flush the file cache?
- 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: Time out with securCRT 4.0 from Windows XP to RedHat linux
- Next by Date: Re: the most secure ftp server today?
- Previous by thread: 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
|