mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RESEND] shm: shm exit scalability fixes
@ 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
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Jack Miller @ 2014-06-17 17:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, davidlohr, miltonm, anton

[ 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.

- Jack


^ permalink raw reply	[flat|nested] 12+ messages in thread
* shm: shm_exit scalability fixes
@ 2014-06-04 19:07 Jack Miller
  2014-06-04 19:07 ` [PATCH 1/3] shm: Make exit_shm work proportional to task activity Jack Miller
  0 siblings, 1 reply; 12+ messages in thread
From: Jack Miller @ 2014-06-04 19:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: mikey, anton, miltonm

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.

- Jack


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-06-18 23:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-17 17:27 [RESEND] shm: shm exit scalability fixes 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
  -- strict thread matches above, loose matches on Subject: below --
2014-06-04 19:07 shm: shm_exit " Jack Miller
2014-06-04 19:07 ` [PATCH 1/3] shm: Make exit_shm work proportional to task activity Jack Miller

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®