lkml.org 
[lkml]   [2004]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] /dev/anon
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:00    [W:0.073 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site