From: Andrew Morton <akpm@linux-foundation.org>
To: Jack Miller <millerjo@us.ibm.com>
Cc: linux-kernel@vger.kernel.org, davidlohr@hp.com,
miltonm@us.ibm.com, anton@au1.ibm.com,
Manfred Spraul <manfred@colorfullife.com>
Subject: Re: [RESEND] shm: shm exit scalability fixes
Date: Wed, 18 Jun 2014 15:55:49 -0700 [thread overview]
Message-ID: <20140618155549.c54b11347ac9c9a2ba10e176@linux-foundation.org> (raw)
In-Reply-To: <1403026067-14272-1-git-send-email-millerjo@us.ibm.com>
On Tue, 17 Jun 2014 12:27:44 -0500 Jack Miller <millerjo@us.ibm.com> wrote:
> [ RESEND note: Adding relevant CCs, fixed a couple of typos in commit message,
> patches unchanged. Original intro follows. ]
>
> All -
>
> This is small set of patches our team has had kicking around for a few versions
> internally that fixes tasks getting hung on shm_exit when there are many
> threads hammering it at once.
>
> Anton wrote a simple test to cause the issue:
>
> http://ozlabs.org/~anton/junkcode/bust_shm_exit.c
>
> Before applying this patchset, this test code will cause either hanging
> tracebacks or pthread out of memory errors.
>
> After this patchset, it will still produce output like:
>
> root@somehost:~# ./bust_shm_exit 1024 160
> ...
> INFO: rcu_sched detected stalls on CPUs/tasks: {} (detected by 116, t=2111
> jiffies, g=241, c=240, q=7113)
> INFO: Stall ended before state dump start
> ...
> But the task will continue to run along happily, so we consider this an
> improvement over hanging, even if it's a bit noisy.
>
> I didn't author these patches, but I'd be happy to take any feedback and
> address any issues.
As it stands, these patches will be recorded as authored by yourself.
You can override this by putting
From: Someone Else <email-address>
at the start of the changelog. Please let me know if you'd like me to
make such changes.
I agree that adding 8/16 bytes to the task_struct (if CONFIG_SYSVIPC)
is regrettable. But the poor thing is a dumping ground anyway :( I
suppose one could replace this and sysvsem with a
struct ipc_stuff *ipc_stuff; /* NULL if I never used IPC */
but there are probably lots of similar changes we could (and one day
may) make to the task_struct.
I queued the patches, tagged for 3.16-rc1 - hopefully Davidlohr and
Manfred will be able to find the time to go over them closely.
prev parent reply other threads:[~2014-06-18 22:55 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
2014-06-18 22:55 ` Andrew Morton [this message]
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=20140618155549.c54b11347ac9c9a2ba10e176@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=anton@au1.ibm.com \
--cc=davidlohr@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.com \
--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®