Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for December 5, 2013
Deadline scheduling: coming soon?
LWN.net Weekly Edition for November 27, 2013
ACPI for ARM?
LWN.net Weekly Edition for November 21, 2013
Why does this switch need to be done? If 8k stacks have worked for years, then they should be
fine at least until the last x86 desktop/server is as common as Vaxen are now. Why not leave
it as an option for those who really need it?
4K stacks by default?
Posted Apr 24, 2008 23:56 UTC (Thu) by zlynx (subscriber, #2285)
I believe the RHEL support engineers were finding systems with mysterious fork/clone failures
that were caused by the kernel not being able to find 8K of continuous memory. It's really
easy to allocate 4K since it's the i386 page size, but two pages next to each other can fail.
Big Java programs using a lot of threads would fail to get a new thread. Apache servers would
fail to spawn a new child. Etc.
However, since then (2.6.16?) the memory system has also been reworked a bunch and I don't
know if it's still such a problem to get a 8K alloc.
You *would* think those big programs would now be running on x86_64 systems with the 8K stacks
and having the same problems, if they still existed. Or maybe they get around it by
installing 16 GB RAM instead.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds