LKML Archive on
help / color / mirror / Atom feed
From: Andrew Morton <>
To: "Zhang, Yanmin" <>
Cc: LKML <>
Subject: Re: [PATCH] drop page cache of a single file
Date: Wed, 27 Dec 2006 19:49:59 -0800	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <1167275845.15989.153.camel@ymzhang>

On Thu, 28 Dec 2006 11:17:25 +0800
"Zhang, Yanmin" <> wrote:

> Currently, by /proc/sys/vm/drop_caches, applications could drop pagecache,
> slab(dentries and inodes), or both, but applications couldn't choose to
> just drop the page cache of one file. An user of VOD (Video-On-Demand)
> needs this capability to have more detailed control on page cache release.

The posix_fadvise() system call should be used for this.  Probably in
combination with sys_sync_file_range().

  reply	other threads:[~2006-12-28  3:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-28  3:17 Zhang, Yanmin
2006-12-28  3:49 ` Andrew Morton [this message]
     [not found]   ` <>
2006-12-28  7:19     ` Fengguang Wu
2006-12-28 10:29     ` Andrew Morton
2006-12-28 10:45       ` Russell King
2006-12-28 11:03         ` Andrew Morton
     [not found]       ` <>
2006-12-28 10:57         ` Fengguang Wu
2007-01-28  7:08 ` Vaidyanathan Srinivasan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: [PATCH] drop page cache of a single file' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).