From: Antonio Vargas <wind@cocodriloo.com>
To: Andrew Morton <akpm@osdl.org>
Cc: Muthian S <muthian_s@hotmail.com>, linux-kernel@vger.kernel.org
Subject: Re: madvise on file pages
Date: Fri, 1 Aug 2003 23:39:53 +0200 [thread overview]
Message-ID: <20030801213953.GA2713@wind.cocodriloo.com> (raw)
In-Reply-To: <20030731153211.16c9ccb3.akpm@osdl.org>
On Thu, Jul 31, 2003 at 03:32:11PM -0700, Andrew Morton wrote:
> "Muthian S" <muthian_s@hotmail.com> wrote:
> >
> > Hi,
> >
> > Could someone inform as to what is the behavior when madvise DONTNEED is
> > called on pages that are mmap'd from local files mapped with MAP_SHARED,
> > i.e. they share the same page that the file cache does.
>
> The pages are unmapped from the calling process's pagetables. We don't
> actually free the physical pages.
>
> > In such cases, can
> > madvise be made to release specific pages in the file cache by mmap-ing the
> > relevant file segment ?
>
> No.
>
> 2.6 kernels implement the fadvise() syscall (accessible by glibc's
> posix_fadvise() function) which will do this.
Perhaps we could send the page to the least-used end of the page lists?
--
winden/network
1. Dado un programa, siempre tiene al menos un fallo.
2. Dadas varias lineas de codigo, siempre se pueden acortar a menos lineas.
3. Por induccion, todos los programas se pueden
reducir a una linea que no funciona.
prev parent reply other threads:[~2003-08-01 20:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-31 21:59 madvise on file pages Muthian S
2003-07-31 22:32 ` Andrew Morton
2003-08-01 21:39 ` Antonio Vargas [this message]
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030801213953.GA2713@wind.cocodriloo.com \
--to=wind@cocodriloo.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=muthian_s@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).