Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-15 Thread Martin Hicks
On Fri, Aug 05, 2005 at 11:48:58PM +0200, Andi Kleen wrote: > On Fri, Aug 05, 2005 at 12:45:58PM -0500, Ray Bryant wrote: > > > discarded. I think what Martin and I would prefer to see is an interface > > that allows one to just get rid of the clean page cache (or at least enough > > of it) so

Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-05 Thread Andi Kleen
On Fri, Aug 05, 2005 at 12:45:58PM -0500, Ray Bryant wrote: > > try_to_free_pages should DTRT. That is because we generated a custom zone > > list only containing nodes in that zone and the zone reclaim only looks > > into those. > > > > It may depend on what your definition of DTRT is here. :-)

Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-05 Thread Ray Bryant
On Wednesday 03 August 2005 15:08, Andi Kleen wrote: > > > > Hmmm What happens if there are already mapped pages (e. g. mapped in > > the sense that pages are mapped into an address space) on the node and > > you want to allocate some more, but can't because the node is full of > > clean page

Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-03 Thread Andi Kleen
On Wed, Aug 03, 2005 at 02:59:22PM -0500, Ray Bryant wrote: > On Wednesday 03 August 2005 09:38, Andi Kleen wrote: > > On Wed, Aug 03, 2005 at 10:24:40AM -0400, Martin Hicks wrote: > > > On Wed, Aug 03, 2005 at 04:15:29PM +0200, Andi Kleen wrote: > > > > On Wed, Aug 03, 2005 at 09:56:46AM -0400, Ma

Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-03 Thread Ray Bryant
On Wednesday 03 August 2005 09:38, Andi Kleen wrote: > On Wed, Aug 03, 2005 at 10:24:40AM -0400, Martin Hicks wrote: > > On Wed, Aug 03, 2005 at 04:15:29PM +0200, Andi Kleen wrote: > > > On Wed, Aug 03, 2005 at 09:56:46AM -0400, Martin Hicks wrote: > > > > Here's the promised sysctl to dump a node'

Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-03 Thread Martin Hicks
On Wed, Aug 03, 2005 at 04:38:55PM +0200, Andi Kleen wrote: > On Wed, Aug 03, 2005 at 10:24:40AM -0400, Martin Hicks wrote: > > > zone_reclaim() path doesn't let the memory reclaim code swap. > > reclaim with bound policy should only swap on the bound nodemask > (or at least it did when I origin

Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-03 Thread Andi Kleen
On Wed, Aug 03, 2005 at 10:24:40AM -0400, Martin Hicks wrote: > > On Wed, Aug 03, 2005 at 04:15:29PM +0200, Andi Kleen wrote: > > On Wed, Aug 03, 2005 at 09:56:46AM -0400, Martin Hicks wrote: > > > > > > Here's the promised sysctl to dump a node's pagecache. Please review! > > > > > > This patc

Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-03 Thread Martin Hicks
On Wed, Aug 03, 2005 at 04:15:29PM +0200, Andi Kleen wrote: > On Wed, Aug 03, 2005 at 09:56:46AM -0400, Martin Hicks wrote: > > > > Here's the promised sysctl to dump a node's pagecache. Please review! > > > > This patch depends on the zone reclaim atomic ops cleanup: > > http://marc.theaimsgro

Re: [PATCH] VM: add vm.free_node_memory sysctl

2005-08-03 Thread Andi Kleen
On Wed, Aug 03, 2005 at 09:56:46AM -0400, Martin Hicks wrote: > > On Tue, Aug 02, 2005 at 11:07:46PM +0200, Ingo Molnar wrote: > > > > * Martin Hicks <[EMAIL PROTECTED]> wrote: > > > > > On Mon, Aug 01, 2005 at 09:54:26PM +0200, Ingo Molnar wrote: > > > > > > > > * Andrew Morton <[EMAIL PROTECT

[PATCH] VM: add vm.free_node_memory sysctl

2005-08-03 Thread Martin Hicks
On Tue, Aug 02, 2005 at 11:07:46PM +0200, Ingo Molnar wrote: > > * Martin Hicks <[EMAIL PROTECTED]> wrote: > > > On Mon, Aug 01, 2005 at 09:54:26PM +0200, Ingo Molnar wrote: > > > > > > * Andrew Morton <[EMAIL PROTECTED]> wrote: > > > > > > > > We could perhaps add a CAP_SYS_ADMIN-only sysctl