On Thu, 24 Apr 2008 11:41:30 -0400, "Chris Mason" <chris.mason@oracle.com> said:Hi, (Rookie warning goes here.) To me, growing the stack at more or less random places in the kernel seems to be quite a complicated thing to do and it will be quite a maintainance burden to find the right spots to insert stack usage checks. So I'ld say: lose the dynamic aspect. How about unconditionally switching stacks at some defined points within the core code of the kernel, just before calling into any driver code, for example? The 4k-option has separate irq stacks already, why not have driver stacks too? I think the most important consideration to keep the stack size small was that non-order-0 allocations are unreliable under/after memory pressure due to fragmentation and that this allocation has to be done for each thread. It is therefore preferable not to do any higher-order allocations at all, unless there is a fall-back mechanism if the allocation fails. For higher-order stacks there isn't such a fallback... Can the system get by (without deadlocks at least in practice) with a limited number of preallocated but 'large' stacks (in addition to a small per-thread stack)? It was discussed that stack space is needed for any sleeping process. Could it be arranged that this waiting happens on the smallish stack, at least for the most common cases, while non-waiting activity can use the big stacks? Greetings, Alexander -- Alexander van Heukelum heukelum@fastmail.fm -- http://www.fastmail.fm - A fast, anti-spam email service. --
| David Miller | [GIT]: Networking |
| Fred . | Please add ZFS support (from GPL sources) |
| Arjan van de Ven | [patch] Give kjournald a IOPRIO_CLASS_RT io priority |
| Daniel Hazelton | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Elijah Newren | Trying to use git-filter-branch to compress history by removing large, obsolete bi... |
| Boyd Lynn Gerber | git-svn-import or CVS import from local HD rather than remote. |
| Peter Karlsson | Git on Windows, CRLF issues |
| Sebastian Schuberth | git on Cygwin: Not a valid object name HEAD |
| Andreas Maus | OT: OpenBSD on Asus eeePC |
| Theo de Raadt | That whole "Linux stealing our code" thing |
| Joaquin Herrero | ssh hangs from Ubunty Feisty 7.04 to OpenBSD |
| Falk Brockerhoff | OpenBGPd: RIB ok, FIB shows local-address instead of eBGP neighbor / Box freezes |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Robert Nation | Re: Xvt for Linux?. |
| Desmond A. Kirkpatrick | ATI GUP bug with Linux 'tickler' |
| Trenton Tuggle | Re: Linux Logo Postscript |
