Re: buffer/vm cache, turn off for a specific file ?

From: Roger Leigh (${rleigh}_at_invalid.whinlatter.ukfsn.org.invalid)
Date: 03/31/05


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.


Relevant Pages

  • Re: add -I to Makefile -- autotools
    ... Printing on GNU/Linux? ... GPG Public Key: 0x25BFB848. ... Please sign and encrypt your mail. ...
    (comp.os.linux.development.apps)
  • Re: Cross Platform Library
    ... Printing on GNU/Linux? ... http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848. ... Please sign and encrypt your mail. ...
    (comp.os.linux.development.apps)
  • Re: Demand swapping
    ... Printing on GNU/Linux? ... http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848. ... Please sign and encrypt your mail. ...
    (alt.os.linux.redhat)
  • Re: Hello World Tutorial - Problems with Automake
    ... Roger Leigh ... Printing on GNU/Linux? ... http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848. ...
    (comp.os.linux)
  • Re: add -I to Makefile -- autotools
    ... Printing on GNU/Linux? ... http://gimp-print.sourceforge.net/ GPG Public Key: 0x25BFB848. ... Please sign and encrypt your mail. ...
    (comp.os.linux.development.apps)