Re: buffer/vm cache, turn off for a specific file ?
From: Roger Leigh (${rleigh}_at_invalid.whinlatter.ukfsn.org.invalid)
Date: 03/31/05
- Next message: Paul Pluzhnikov: "Re: Unix compiling and linking options"
- Previous message: Chuck Dillon: "Re: Unix compiling and linking options"
- In reply to: Andrew Torda: "buffer/vm cache, turn off for a specific file ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 31 Mar 2005 15:12:22 +0100
Andrew Torda <andrew.torda@anu.edu.au> writes:
> Is there any way to ask the system to *not* to cache a file after
> fopen()ing it ?
Try posix_fadvise(2) with POSIX_FADV_SEQUENTIAL|POSIX_FADV_NOREUSE
Regards,
Roger
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
- Next message: Paul Pluzhnikov: "Re: Unix compiling and linking options"
- Previous message: Chuck Dillon: "Re: Unix compiling and linking options"
- In reply to: Andrew Torda: "buffer/vm cache, turn off for a specific file ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|