From: Andrew Morton <akpm@osdl.org>
To: Dimitri Sivanich <sivanich@sgi.com>
Cc: manfred@colorfullife.com, linux-kernel@vger.kernel.org,
lse-tech@lists.sourceforge.net, linux-mm@kvack.org
Subject: Re: [PATCH]: Option to run cache reap in thread mode
Date: Thu, 17 Jun 2004 21:40:35 -0700 [thread overview]
Message-ID: <20040617214035.01e38285.akpm@osdl.org> (raw)
In-Reply-To: <20040617131031.GB8473@sgi.com>
Dimitri Sivanich <sivanich@sgi.com> wrote:
>
> On Wed, Jun 16, 2004 at 08:58:58PM +0200, Manfred Spraul wrote:
> > Could you try to reduce them? Something like (as root)
> >
> > # cd /proc
> > # cat slabinfo | gawk '{printf("echo \"%s %d %d %d\" >
> > /proc/slabinfo\n", $1,$9,4,2);}' | bash
> >
> > If this doesn't help then perhaps the timer should run more frequently
> > and scan only a part of the list of slab caches.
>
> I tried the modification you suggested and it had little effect. On a 4 cpu
> (otherwise idle) system I saw the characteristic 30+ usec interruptions
> (holdoffs) every 2 seconds.
Against which slab cache? How many objects are being reaped in a single
timer tick?
It's very simple:
--- 25/mm/slab.c~a 2004-06-17 21:38:57.728796976 -0700
+++ 25-akpm/mm/slab.c 2004-06-17 21:40:06.294373424 -0700
@@ -2690,6 +2690,7 @@ static void drain_array_locked(kmem_cach
static inline void cache_reap (void)
{
struct list_head *walk;
+ static int max;
#if DEBUG
BUG_ON(!in_interrupt());
@@ -2731,6 +2732,11 @@ static inline void cache_reap (void)
}
tofree = (searchp->free_limit+5*searchp->num-1)/(5*searchp->num);
+ if (tofree > max) {
+ max = tofree;
+ printk("%s: reap %d\n", searchp->name, tofree);
+ }
+
do {
p = list3_data(searchp)->slabs_free.next;
if (p == &(list3_data(searchp)->slabs_free))
_
--
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>
next prev parent reply other threads:[~2004-06-18 4:40 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <40D08225.6060900@colorfullife.com>
2004-06-16 18:02 ` Dimitri Sivanich
2004-06-16 18:58 ` Manfred Spraul
2004-06-17 13:10 ` Dimitri Sivanich
2004-06-18 4:40 ` Andrew Morton [this message]
2004-06-18 14:33 ` Dimitri Sivanich
2004-06-18 20:40 ` Andrew Morton
2004-06-18 21:04 ` Manfred Spraul
2004-06-18 21:44 ` Dimitri Sivanich
2004-06-18 22:03 ` Andrew Morton
[not found] <27JKg-4ht-11@gated-at.bofh.it>
[not found] ` <m3r7sfmq0r.fsf@averell.firstfloor.org>
2004-06-16 18:16 ` Dimitri Sivanich
2004-06-16 16:43 Mark_H_Johnson
-- strict thread matches above, loose matches on Subject: below --
2004-06-16 14:24 Dimitri Sivanich
2004-06-16 15:29 ` Christoph Hellwig
2004-06-16 16:03 ` Dimitri Sivanich
2004-06-16 16:07 ` Christoph Hellwig
2004-06-16 16:25 ` Jesse Barnes
2004-06-16 16:51 ` Dimitri Sivanich
2004-06-16 16:46 ` Lori Gilbertson
2004-06-16 16:53 ` Christoph Hellwig
2004-06-16 21:30 ` 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=20040617214035.01e38285.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lse-tech@lists.sourceforge.net \
--cc=manfred@colorfullife.com \
--cc=sivanich@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