linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Andrew Morton <akpm@osdl.org>
Cc: Christoph Lameter <clameter@sgi.com>,
	linux-mm@kvack.org, Nathan Scott <nathans@sgi.com>
Subject: Re: Avoid excessive time spend on concurrent slab shrinking
Date: Sat, 01 Apr 2006 12:34:23 +1000	[thread overview]
Message-ID: <442DE6AF.3060902@yahoo.com.au> (raw)
In-Reply-To: <20060331172518.40a5b03d.akpm@osdl.org>

Andrew Morton wrote:

> c) go back to single-threading shrink_slab (or just shrink_icache_memory())
> 
>    For this one we'd need to understand which observations prompted Nick
>    to make shrinker_rwsem an rwsem?
> 

This was when I was looking for reasons why inode and dentry caches
would sometimes apparently explode on people and consume most of their
memory. One of the reasons was here, when slab caches did build up, and
multiple processes would start reclaim, scanning would skew away from
slab.

Considering the actual slab shrinkers are single threaded, I agree this
could cause more semaphore contention.

One thing we could do is ensure shrinker->nr gets incremented, but not
actually have more than one thread enter slab reclaim at once.

Or have the trylock&abort behaviour pushed down into the actual
shrinkers themselves, then at least we can get concurrent icache and
dcache scanning happening.

-- 
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com 

--
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:[~2006-04-01  2:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-31 22:44 Christoph Lameter
     [not found] ` <20060331150120.21fad488.akpm@osdl.org>
2006-03-31 23:17   ` Christoph Lameter
2006-03-31 23:46     ` Andrew Morton
     [not found]     ` <20060331153235.754deb0c.akpm@osdl.org>
2006-03-31 23:48       ` Christoph Lameter
2006-04-01  0:00         ` Andrew Morton
2006-04-01  0:14           ` Andrew Morton
2006-04-01  0:22           ` Christoph Lameter
2006-04-01  1:25             ` Andrew Morton
2006-04-01  2:34               ` Nick Piggin [this message]
2006-04-01  5:59               ` Nathan Scott
2006-04-01 18:30                 ` David Chinner
2006-04-01 18:49                   ` Christoph Lameter
2006-04-01 18:24             ` David Chinner
2006-03-31 23:45 ` Andrew Morton

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=442DE6AF.3060902@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=akpm@osdl.org \
    --cc=clameter@sgi.com \
    --cc=linux-mm@kvack.org \
    --cc=nathans@sgi.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