From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Weathers,
Norman R."
<Norman.R.Weathers-496aOtIFJR1B+Kdf37RAV9BPR1lH4CV8@public.gmane.org>
Cc: linux-nfs@vger.kernel.org
Subject: Re: Problems with large number of clients and reads
Date: Tue, 10 Jun 2008 13:16:02 -0400 [thread overview]
Message-ID: <20080610171602.GG20184@fieldses.org> (raw)
In-Reply-To: <0122F800A3B64C449565A9E8C297701002D75D9F-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
On Tue, Jun 10, 2008 at 09:30:18AM -0500, Weathers, Norman R. wrote:
> Unfortunately, I cannot stop the clients (middle of long running
> jobs). I might be able to test this soon. If I have the number of
> threads high, yes I can reduce the number of threads and it appears to
> lower some of the memory, but even with as little as three threads,
> the memory usage climbs very high, just not as high as if there are
> say 8 threads. When the memory usage climbs high, it can cause the
> box to not respond over the network (ssh, rsh), and even be very
> sluggish when I am connected over our serial console to the server(s).
> This same scenario has been happening with kernels that I have tried
> from 2.6.22.x on to the 2.6.25 series. The 2.6.25 series is
> interesting in that I can push the same load from a box with the
> 2.6.25 kernel and not have a load over .3 (with 3 threads), but with
> the 2.6.22.x kernel, I have a load of over 3 when I hit the same
> conditions.
OK, I think what we want to do is turn on CONFIG_DEBUG_SLAB_LEAK. I've
never used it before, but it looks like it will report which functions
are allocating from each slab cache, which may be exactly what we need
to know. So:
1. Install a kernel with both CONFIG_DEBUG_SLAB ("Debug slab
memory allocations") and CONFIG_DEBUG_SLAB_LEAK ("Memory leak
debugging") turned on. They're both under the "kernel hacking"
section of the kernel config. (If you have a file
/proc/slab_allocators, then you already have these turned on and
you can skip this step.)
2. Do whatever you need to do to reproduce the problem.
3. Get a copy of /proc/slabinfo and /proc/slab_allocators.
Then we can take a look at that and see if it sheds any light.
I think that debugging will hurt the server performance, so you won't
want to keep it turned on all the time.
>
> Also, this is all with the SLAB cache option. SLUB crashes everytime
> I use it under heavy load.
Have you reported the SLUB bugs to lkml?
--b.
next prev parent reply other threads:[~2008-06-10 17:16 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-03 18:50 Problems with large number of clients and reads Norman Weathers
2008-06-04 13:49 ` Chuck Lever
[not found] ` <76bd70e30806040649h53ab5d66x8c3423c551e94f77-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-06-04 14:13 ` Norman Weathers
2008-06-05 18:54 ` Norman Weathers
2008-06-06 14:44 ` Chuck Lever
2008-06-09 13:56 ` Weathers, Norman R.
2008-06-06 0:06 ` Dean Hildebrand
2008-06-09 13:20 ` Weathers, Norman R.
2008-06-06 16:09 ` J. Bruce Fields
2008-06-09 14:19 ` Weathers, Norman R.
[not found] ` <0122F800A3B64C449565A9E8C2977010155587-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
2008-06-09 18:53 ` J. Bruce Fields
2008-06-10 14:30 ` Weathers, Norman R.
[not found] ` <0122F800A3B64C449565A9E8C297701002D75D9F-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
2008-06-10 17:16 ` J. Bruce Fields [this message]
2008-06-10 22:12 ` Weathers, Norman R.
[not found] ` <0122F800A3B64C449565A9E8C297701002D75DA3-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
2008-06-11 18:46 ` J. Bruce Fields
2008-06-11 19:52 ` CONFIG_DEBUG_SLAB_LEAK omits size-4096 and larger? J. Bruce Fields
2008-06-11 20:09 ` Jeff Layton
[not found] ` <20080611160947.5f08fb16-RtJpwOs3+0O+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2008-06-11 20:57 ` J. Bruce Fields
2008-06-11 22:46 ` Weathers, Norman R.
[not found] ` <0122F800A3B64C449565A9E8C297701002D75DAA-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
2008-06-11 22:54 ` J. Bruce Fields
2008-06-12 19:54 ` Weathers, Norman R.
[not found] ` <0122F800A3B64C449565A9E8C297701002D75DAE-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
2008-06-13 20:15 ` J. Bruce Fields
2008-06-13 21:53 ` Weathers, Norman R.
[not found] ` <0122F800A3B64C449565A9E8C297701002D75DB6-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
2008-06-13 22:04 ` J. Bruce Fields
2008-06-13 22:53 ` Weathers, Norman R.
[not found] ` <0122F800A3B64C449565A9E8C297701002D75DB7-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
2008-06-16 17:43 ` J. Bruce Fields
2008-06-19 15:53 ` Weathers, Norman R.
[not found] ` <0122F800A3B64C449565A9E8C297701002D75DD4-zIGg2qceuZx7uNL6xugVa6xOck334EZe@public.gmane.org>
2008-06-19 18:46 ` J. Bruce Fields
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=20080610171602.GG20184@fieldses.org \
--to=bfields@fieldses.org \
--cc=Norman.R.Weathers-496aOtIFJR1B+Kdf37RAV9BPR1lH4CV8@public.gmane.org \
--cc=linux-nfs@vger.kernel.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