From: Michael Ellerman <mpe@ellerman.id.au>
To: Anton Blanchard <anton@samba.org>
Cc: Davidlohr Bueso <davidlohr@hp.com>,
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 14:41:27 +1000 [thread overview]
Message-ID: <1403066487.32307.4.camel@concordia> (raw)
In-Reply-To: <20140618125329.1f8cd8f9@kryten>
On Wed, 2014-06-18 at 12:53 +1000, Anton Blanchard wrote:
> > 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.
>
> > 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
I win, using 4096 segments and 16 threads:
# uptime
13:50:46 up 1 day, 19:41, 2 users, load average: 7621.57, 1718.39, 943.13
13:52:35 up 1 day, 19:43, 2 users, load average: 15422.64, 7409.90, 3156.82
That's on a 16 cpu box running 3.16-rc1.
In contrast, if you run it with 1 segment and 16 threads it maxes out about:
# uptime
13:58:00 up 1 min, 2 users, load average: 1.81, 0.46, 0.15
And the box is entirely responsive.
cheers
next prev parent reply other threads:[~2014-06-18 4:41 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
2014-06-18 4:41 ` Michael Ellerman [this message]
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=1403066487.32307.4.camel@concordia \
--to=mpe@ellerman.id.au \
--cc=akpm@linux-foundation.org \
--cc=anton@samba.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®