Re: Is there a way to flush the file cache?
- From: zentara@xxxxxxxxxxxxxx
- Date: Fri, 29 Dec 2006 10:21:23 GMT
On 28 Dec 2006 21:56:41 GMT, General Schvantzkoph
<schvantzkoph@xxxxxxxxx> wrote:
What I want to do is the following,
1) Create a file and write it to the disk.
2) Read that file off of the disk and then check it.
I'm trying to check the SATA interfaces so it's important that the file go
to and from the disks. The file cache interferes with this because if the
file is present in the cache the program will get the cached copy not the
copy that is on the disk. The sync() call forces the disk writes to happen
immediately which is half of the battle. The other half is to purge the
file cache so that all subsequent file reads come from the disk. Is there
a way to do this?
Dosn't the 'sync' command do this?
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
.
- Follow-Ups:
- Re: Is there a way to flush the file cache?
- From: Tony Lawrence
- Re: Is there a way to flush the file cache?
- References:
- Is there a way to flush the file cache?
- From: General Schvantzkoph
- Re: Is there a way to flush the file cache?
- From: Tony Lawrence
- Re: 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: DVD/CDROM writes not working!
- Next by Date: internet on debian sarge
- 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
|