public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] /dev/anon
Date: Wed, 14 Jan 2004 09:41:31 -0500	[thread overview]
Message-ID: <20040114144131.GA6407@ccure.user-mode-linux.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0401131817121.12810-100000@bigblue.dev.mdolabs.com>

On Tue, Jan 13, 2004 at 08:46:23PM -0800, Davide Libenzi wrote:
> What do you mean for throw out data? If you mean writing DONTNEED'ed 
> dirty pages to the backed up file and release them to the page cache, it 
> does. 

Writing dirty pages to backing store isn't throwing them out.

> If you mean stop handling page faults inside the DONTNEED'ed region, 
> it does not. 

This is kind of moot since the region won't be mapped anywhere, so there
can't be page faults on it.

> If you mean zero-filling (ala ftruncate()) the DONTNEED'ed 
> region, it obviously does not. 

Yes, I mean this, as a side-effect of dropping the region as though it were
clean.

> I thought your goal was to release memory 
> to the host, that's why I proposed sys_madvise(MADV_DONTNEED).

It is, I want memory released immediately as though it were clean, and
MADV_DONTNEED doesn't help.

				Jeff

  parent reply	other threads:[~2004-01-14 14:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-13 20:21 [RFC] /dev/anon Jeff Dike
2004-01-13 20:38 ` Davide Libenzi
2004-01-14  1:42   ` Jeff Dike
2004-01-14  4:46     ` Davide Libenzi
2004-01-14  5:18       ` Nuno Silva
2004-01-14 14:41       ` Jeff Dike [this message]
2004-01-14 18:23         ` Davide Libenzi
2004-01-14 22:32           ` Andrew Morton
2004-01-14 22:45             ` Davide Libenzi
2004-01-16 12:16 ` Geert Uytterhoeven
2004-01-16 16:02   ` Andries Brouwer

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=20040114144131.GA6407@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=davidel@xmailserver.org \
    --cc=linux-kernel@vger.kernel.org \
    /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