hi.
when a process read a file,
generally, pagefault occurs. so, data of the file will be cached.
but, i want to make data of the file not be cached.
how can i do it?
regards…
hi.
when a process read a file,
generally, pagefault occurs. so, data of the file will be cached.
but, i want to make data of the file not be cached.
how can i do it?
regards…
Open the file with the non-buffered flag. See CreateFile docs for details.
Kim,ByeongKyun wrote:
hi.
when a process read a file,
generally, pagefault occurs. so, data of the file will be cached.but, i want to make data of the file not be cached.
how can i do it?
regards…
–
Nick Ryan (MVP for DDK)
Call CreateFile with FILE_FLAG_NO_BUFFERING.
Note that this flag is ignored for NTFS compressed and encrypted files which
need cache as a space for decompressor/decryptor destination.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Kim,ByeongKyun”
To: “File Systems Developers”
Sent: Wednesday, September 03, 2003 7:52 PM
Subject: [ntfsd] how can I make a process to read a file with non-cache mode?
> hi.
>
> when a process read a file,
> generally, pagefault occurs. so, data of the file will be cached.
>
> but, i want to make data of the file not be cached.
>
> how can i do it?
>
> regards…
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com