linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Good news for threading!
@ 2009-05-25 13:46 Alan Jenkins
  2009-05-25 19:09 ` Kay Sievers
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Alan Jenkins @ 2009-05-25 13:46 UTC (permalink / raw)
  To: linux-hotplug

I solved one of the reservations that held me back on threaded udevd.  I 
still have some other concerns to work on, but I'm feeling much more 
optimistic now.

Replacing processes with threads reduced page faults (copy-on-write) by 
60-80%, but that _still_ left over 10% of udevd time in page fault overhead.

I've discovered I can reduce this overhead much further by marking 
thread stacks with MADV_DONTFORK.  When a thread needs to fork an 
external program, it can temporarily unmark its own thread stack.

Disclaimer: I have no idea why this should reduce the number of page 
faults.  I could be getting something horribly wrong.  But even if it's 
wrong, at least it gives me a new angle on this problem.

Alan

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

end of thread, other threads:[~2009-05-26  9:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25 13:46 Good news for threading! Alan Jenkins
2009-05-25 19:09 ` Kay Sievers
2009-05-25 20:28 ` Alan Jenkins
2009-05-25 23:52 ` Kay Sievers
2009-05-26  7:03 ` Scott James Remnant
2009-05-26  9:32 ` Alan Jenkins
2009-05-26  9:36 ` Alan Jenkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).