linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Marc Singer <elf@buici.com>
To: William Lee Irwin III <wli@holomorphy.com>,
	Marc Singer <elf@buici.com>,
	linux-mm@kvack.org
Subject: Re: Might refill_inactive_zone () be too aggressive?
Date: Sat, 17 Apr 2004 11:28:38 -0700	[thread overview]
Message-ID: <20040417182838.GA3856@flea> (raw)
In-Reply-To: <20040417181042.GM743@holomorphy.com>

On Sat, Apr 17, 2004 at 11:10:42AM -0700, William Lee Irwin III wrote:
> On Sat, Apr 17, 2004 at 10:57:24AM -0700, Marc Singer wrote:
> > I don't think that's the whole story.  I printed distress,
> > mapped_ratio, and swappiness when vmscan starts trying to reclaim
> > mapped pages.
> > reclaim_mapped: distress 50  mapped_ratio 0  swappiness 60 
> >   50 + 60 > 100 
> > So, part of the problem is swappiness.  I could set that value to 25,
> > for example, to stop the machine from swapping.
> > I'd be fine stopping here, except for you comment about what
> > swappiness means.  In my case, nearly none of memory is mapped.  It is
> > zone priority which has dropped to 1 that is precipitating the
> > eviction.  Is this what you expect and want?
> 
> I'm not sure it's expected. Maybe this patch fares better?

Ah, that's a much different thing.  That works for me.  Is that
something you'd want to put into the kernel?

> 
> 
> -- wli
> 
> 
> Index: singer-2.6.5-mm6/mm/vmscan.c
> ===================================================================
> --- singer-2.6.5-mm6.orig/mm/vmscan.c	2004-04-14 23:21:19.000000000 -0700
> +++ singer-2.6.5-mm6/mm/vmscan.c	2004-04-17 11:09:35.000000000 -0700
> @@ -636,7 +636,7 @@
>  	 *
>  	 * A 100% value of vm_swappiness overrides this algorithm altogether.
>  	 */
> -	swap_tendency = mapped_ratio / 2 + distress + vm_swappiness;
> +	swap_tendency = mapped_ratio / 2 + max(distress, vm_swappiness);
>  
>  	/*
>  	 * Now use this metric to decide whether to start moving mapped memory
--
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:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2004-04-17 18:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-17  6:09 Marc Singer
2004-04-17  6:18 ` William Lee Irwin III
2004-04-17 14:08   ` Marc Singer
2004-04-17 14:21     ` William Lee Irwin III
2004-04-17 17:16     ` William Lee Irwin III
2004-04-17 17:57   ` Marc Singer
2004-04-17 18:10     ` William Lee Irwin III
2004-04-17 18:28       ` Marc Singer [this message]
2004-04-17 18:33         ` William Lee Irwin III
2004-04-17 18:44           ` Marc Singer
2004-04-17 19:19             ` William Lee Irwin III
2004-04-17 19:25               ` Marc Singer
2004-04-17 19:45                 ` William Lee Irwin III

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=20040417182838.GA3856@flea \
    --to=elf@buici.com \
    --cc=linux-mm@kvack.org \
    --cc=wli@holomorphy.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