From: Andrew Morton <akpm@osdl.org>
To: Dimitri Sivanich <sivanich@sgi.com>
Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: Slab cache reap and CPU availability
Date: Mon, 24 May 2004 14:53:03 -0700 [thread overview]
Message-ID: <20040524145303.45c8f8a6.akpm@osdl.org> (raw)
In-Reply-To: <200405241539.i4OFddJQ016338@fsgi142.americas.sgi.com>
Dimitri Sivanich <sivanich@sgi.com> wrote:
>
> > Do you have stack backtraces? I thought the problem was via the RCU
> > softirq callbacks, not via the timer interrupt. Dipankar spent some time
> > looking at the RCU-related problem but solutions are not comfortable.
> >
> > What workload is triggering this?
> >
>
> The IA/64 backtrace with all the cruft removed looks as follows:
>
> 0xa000000100149ac0 reap_timer_fnc+0x100
> 0xa0000001000f4d70 run_timer_softirq+0x2d0
> 0xa0000001000e9440 __do_softirq+0x200
> 0xa0000001000e94e0 do_softirq+0x80
> 0xa000000100017f50 ia64_handle_irq+0x190
>
> The system is running mostly AIM7, but I've seen holdoffs > 30 usec with
> virtually no load on the system.
They're pretty low latencies you're talking about there.
You should be able to reduce the amount of work in that timer handler by
limiting the size of the per-cpu caches in the slab allocator. You can do
that by writing a magic incantation to /proc/slabinfo or:
--- 25/mm/slab.c~a Mon May 24 14:51:32 2004
+++ 25-akpm/mm/slab.c Mon May 24 14:51:37 2004
@@ -2642,6 +2642,7 @@ static void enable_cpucache (kmem_cache_
if (limit > 32)
limit = 32;
#endif
+ limit = 8;
err = do_tune_cpucache(cachep, limit, (limit+1)/2, shared);
if (err)
printk(KERN_ERR "enable_cpucache failed for %s, error %d.\n",
_
> Which uncomfortable solutions (which could relate to this case) have been
> investigated?
That work was focussed on the amount of work which is performed in a single
RCU callback, not in the slab timer handler.
--
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-05-24 21:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-21 15:41 Dimitri Sivanich
2004-05-22 2:16 ` Andrew Morton
2004-05-24 15:39 ` Dimitri Sivanich
2004-05-24 21:53 ` Andrew Morton [this message]
2004-06-01 21:40 ` Dimitri Sivanich
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=20040524145303.45c8f8a6.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--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