From: Anton Blanchard <anton@samba.org>
To: Davidlohr Bueso <davidlohr@hp.com>
Cc: Jack Miller <millerjo@us.ibm.com>,
linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
miltonm@us.ibm.com
Subject: Re: [RESEND] shm: shm exit scalability fixes
Date: Wed, 18 Jun 2014 12:53:29 +1000 [thread overview]
Message-ID: <20140618125329.1f8cd8f9@kryten> (raw)
In-Reply-To: <1403027312.2464.5.camel@buesod1.americas.hpqcorp.net>
Hi David,
> > Anton wrote a simple test to cause the issue:
> >
> > http://ozlabs.org/~anton/junkcode/bust_shm_exit.c
>
> I'm actually in the process of adding shm microbenchmarks to
> perf-bench so I might steal this :-)
Sounds good!
> Are you seeing this issue in any real world setups? While the program
> does stress the path you mention quite well, I fear it is very
> unrealistic... how many shared mem segments do real applications
> actually use/create for scaling issues to appear?
As Jack mentioned, we were asked to debug a box that was crawling. Each
process took over 10 minutes to execute which made it very hard to
analyse. We eventually narrowed it down to this.
> I normally wouldn't mind optimizing synthetic cases like this, but a
> quick look at patch 1/3 shows that we're adding an extra overhead (16
> bytes) in the task_struct.
The testcase is synthetic but I wrote it based on the application that
would, given enough time, take the box down.
> We have the shmmni limit (and friends) for that.
If we want to use this to guard against the problem, we may need to
drop shmmni. Looking at my notes, I could take down a box with 4096
segments and 16 threads. This is where I got to before it disappeared:
# ./bust_shm_exit 4096 16
# uptime
03:00:50 up 8 days, 18:05 5 users,load average: 6076.98, 2494.09, 910.37
Anton
next prev parent reply other threads:[~2014-06-18 2:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 17:27 Jack Miller
2014-06-17 17:27 ` [PATCH 1/3] shm: Make exit_shm work proportional to task activity Jack Miller
2014-06-18 22:59 ` Andrew Morton
2014-06-17 17:27 ` [PATCH 2/3] shm: Allow exit_shm in parallel if only marking orphans Jack Miller
2014-06-17 17:27 ` [PATCH 3/3] shm: Remove unneeded extern for function Jack Miller
2014-06-17 17:48 ` [RESEND] shm: shm exit scalability fixes Davidlohr Bueso
2014-06-17 19:55 ` Jack Miller
2014-06-18 0:15 ` Davidlohr Bueso
2014-06-18 2:53 ` Anton Blanchard [this message]
2014-06-18 4:41 ` Michael Ellerman
2014-06-18 22:55 ` 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=20140618125329.1f8cd8f9@kryten \
--to=anton@samba.org \
--cc=akpm@linux-foundation.org \
--cc=davidlohr@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=millerjo@us.ibm.com \
--cc=miltonm@us.ibm.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
all inboxes | Powered by JetHome®