linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Martin Hicks <mort@sgi.com>
Cc: Ingo Molnar <mingo@elte.hu>, Linux MM <linux-mm@kvack.org>,
	Andrew Morton <akpm@osdl.org>,
	torvalds@osdl.org, linux-kernel@vger.kernel.org, ak@suse.de
Subject: Re: [PATCH] VM: add vm.free_node_memory sysctl
Date: Wed, 3 Aug 2005 16:15:29 +0200	[thread overview]
Message-ID: <20050803141529.GX10895@wotan.suse.de> (raw)
In-Reply-To: <20050803135646.GO26803@localhost>

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 <mort@sgi.com> wrote:
> > 
> > > On Mon, Aug 01, 2005 at 09:54:26PM +0200, Ingo Molnar wrote:
> > > > 
> > > > * Andrew Morton <akpm@osdl.org> wrote:
> > > > 
> > > > > >  We could perhaps add a CAP_SYS_ADMIN-only sysctl for this hack,
> > > > > 
> > > > > That would be more appropriate.
> > > > > 
> > > > > (I'm still not sure what happened to the idea of adding a call to 
> > > > > "clear out this node+zone's pagecache now" rather than "set this 
> > > > > noed+zone's policy")
> > > > 
> > > > lets do that as a sysctl hack. It would be useful for debugging purposes 
> > > > anyway. But i'm not sure whether it's the same issue - Martin?
> > > 
> > > (Sorry..I was on vacation yesterday)
> > > 
> > > Yes, this is the same issue with a different way of making it happen. 
> > > Setting a zone's policy allows reclaim to happen automatically.
> > > 
> > > I'll send in a patch to add a sysctl to do the manual dumping of 
> > > pagecache really soon.
> > 
> > cool! [ Incidentally, when i found this problem i was looking for 
> > existing bits in the kernel to write such a patch myself (which i wanted 
> > to use on non-NUMA to create more reproducable workloads for 
> > performance-testing) - now i'll wait for your patch. ]
> 
> 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.theaimsgroup.com/?l=linux-mm&m=112307646306476&w=2

Doesn't numactl --bind=node memhog nodesize-someslack do the same?

It just might kick in the oom killer if someslack is too small
or someone has unfreeable data there. But then there should be 
already an sysctl to turn that one off.


-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2005-08-03 14:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050801113913.GA7000@elte.hu>
     [not found] ` <20050801102903.378da54f.akpm@osdl.org>
     [not found]   ` <20050801195426.GA17548@elte.hu>
     [not found]     ` <20050802171050.GG26803@localhost>
     [not found]       ` <20050802210746.GA26494@elte.hu>
2005-08-03 13:56         ` Martin Hicks
2005-08-03 14:15           ` Andi Kleen [this message]
2005-08-03 14:24             ` Martin Hicks
2005-08-03 14:38               ` Andi Kleen
2005-08-03 14:56                 ` Martin Hicks
2005-08-03 19:59                 ` Ray Bryant
2005-08-03 20:08                   ` Andi Kleen
2005-08-05 17:45                     ` Ray Bryant
2005-08-05 21:48                       ` Andi Kleen
2005-08-15 16:05                         ` Martin Hicks

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=20050803141529.GX10895@wotan.suse.de \
    --to=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mingo@elte.hu \
    --cc=mort@sgi.com \
    --cc=torvalds@osdl.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