From: Helge Hafting <helgehaf@aitel.hist.no>
To: Bill Davidsen <davidsen@tmr.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.6-rc3-mm2 (4KSTACK)
Date: Tue, 11 May 2004 10:45:14 +0200 [thread overview]
Message-ID: <40A0929A.7040609@aitel.hist.no> (raw)
In-Reply-To: <c7om3o$akd$1@gatekeeper.tmr.com>
Bill Davidsen wrote:
> Arjan van de Ven wrote:
>
>>> It's probably a Bad Idea to push this to Linus before the vendors
>>> that have
>>> significant market-impact issues (again - anybody other than NVidia
>>> here?)
>>> have gotten their stuff cleaned up...
>>
>>
>>
>> Ok I don't want to start a flamewar but... Do we want to hold linux back
>> until all binary only module vendors have caught up ??
>
>
> My questions is, hold it back from what? Having the 4k option is fine,
> it's just eliminating the current default which I think is
> undesirable. I tried 4k stack, I couldn't measure any improvement in
> anything (as in no visible speedup or saving in memory).
The memory saving is usually modest: 4k per thread. It might make a
difference for
those with many thousands of threads. I believe this is unswappable
memory,
which is much more valuable than ordinary process memory.
More interesting is that it removes one way for fork() to fail. With 8k
stacks,
the new process needs to allocate two consecutive pages for those 8k. That
might be impossible due to fragmentation, even if there are megabytes of
free
memory. Such a problem usually only shows up after a long time. Now we
only need to
allocate a single page, which always works as long as there is any free
memory at all.
> For an embedded system, where space is tight and the code paths well
> known, sure, but I haven't been able to find or generate any objective
> improvement, other than some posts saying smaller is always better.
> Nothing slows a system down like a crash, even if it isn't followed by
> a restore from backup.
Consider the case when your server (web/mail/other) fails to fork, and then
you can't login because that requires fork() too. 4k stacks remove this
scenario,
and is a stability improvement.
Helge Hafting
next prev parent reply other threads:[~2004-05-11 8:43 UTC|newest]
Thread overview: 94+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-05 8:31 2.6.6-rc3-mm2 Andrew Morton
2004-05-05 8:46 ` 2.6.6-rc3-mm2 Fabio Coatti
2004-05-05 9:07 ` 2.6.6-rc3-mm2 Onur Kucuk
2004-05-05 11:12 ` 2.6.6-rc3-mm2 (4KSTACK) Dominik Karall
2004-05-05 11:10 ` Ralf Hildebrandt
2004-05-05 11:13 ` Jan-Benedict Glaw
2004-05-05 11:24 ` Arjan van de Ven
2004-05-05 11:30 ` Andrew Morton
2004-05-05 12:09 ` Rene Herman
2004-05-05 16:47 ` Steve Lord
2004-05-05 18:48 ` Felipe Alfaro Solana
2004-05-05 19:51 ` Arjan van de Ven
2004-05-05 19:56 ` Steve Lord
2004-05-05 19:59 ` Arjan van de Ven
2004-05-06 17:44 ` Max Valdez
2004-05-05 20:31 ` Bill Davidsen
2004-05-05 23:04 ` Bartlomiej Zolnierkiewicz
2004-05-06 12:55 ` Norberto Bensa
2004-05-06 13:33 ` Bartlomiej Zolnierkiewicz
2004-05-06 18:47 ` Norberto Bensa
2004-05-09 17:00 ` Bill Davidsen
2004-05-09 18:25 ` Bartlomiej Zolnierkiewicz
2004-05-11 16:24 ` Bill Davidsen
2004-05-11 23:27 ` Bartlomiej Zolnierkiewicz
2004-05-11 23:50 ` Andrew Morton
2004-05-12 0:05 ` Valdis.Kletnieks
2004-05-12 16:07 ` Bill Davidsen
2004-05-12 16:20 ` Arjan van de Ven
2004-05-15 19:48 ` Bill Davidsen
2004-05-06 10:09 ` Helge Hafting
2004-05-06 12:54 ` Bill Davidsen
2004-05-05 18:22 ` Valdis.Kletnieks
2004-05-05 21:51 ` Jörn Engel
2004-05-06 15:18 ` Valdis.Kletnieks
2004-05-06 15:40 ` Arjan van de Ven
2004-05-06 16:29 ` Valdis.Kletnieks
2004-05-07 9:50 ` Helge Hafting
2004-05-07 0:37 ` Paul Jakma
2004-05-07 2:50 ` Andrew Morton
2004-05-07 3:44 ` Paul Jakma
2004-05-07 3:58 ` Andrew Morton
2004-05-07 7:05 ` Arjan van de Ven
2004-05-07 15:26 ` Martin J. Bligh
2004-05-07 19:41 ` Andrew Morton
2004-05-07 6:51 ` Arjan van de Ven
2004-05-07 15:13 ` Dave Jones
2004-05-07 15:47 ` Steve Lord
2004-05-07 15:59 ` Arjan van de Ven
2004-05-07 16:09 ` J. Bruce Fields
2004-05-07 16:11 ` Steve Lord
2004-05-07 16:28 ` Jörn Engel
2004-05-07 19:45 ` Paul Jakma
2004-05-07 19:48 ` Paul Jakma
2004-05-10 19:49 ` Bill Davidsen
2004-05-10 20:31 ` Horst von Brand
2004-05-11 2:39 ` Andrew Morton
2004-05-11 8:45 ` Helge Hafting [this message]
2004-05-11 17:59 ` several messages Bill Davidsen
2004-05-06 16:03 ` 2.6.6-rc3-mm2 (4KSTACK) Malte Schröder
2004-05-06 16:13 ` Valdis.Kletnieks
2004-05-06 17:05 ` Matt Mackall
2004-05-05 13:31 ` 2.6.6-rc3-mm2 [delete-posix-...-unifix-message] Paul Jackson
2004-05-05 15:33 ` 2.6.6-rc3-mm2 Christoph Hellwig
2004-05-05 17:59 ` 2.6.6-rc3-mm2 Arnd Bergmann
2004-05-05 16:06 ` 2.6.6-rc3-mm2 Paul Jackson
2004-05-05 16:40 ` 2.6.6-rc3-mm2 Christoph Hellwig
2004-05-05 16:49 ` 2.6.6-rc3-mm2 Paul Jackson
2004-05-05 20:16 ` 2.6.6-rc3-mm2 R. J. Wysocki
2004-05-06 1:51 ` 2.6.6-rc3-mm2 Paul Jackson
2004-05-06 19:38 ` 2.6.6-rc3-mm2 R. J. Wysocki
2004-05-05 17:10 ` 2.6.6-rc3-mm2 (compile stats) John Cherry
2004-05-05 17:33 ` 2.6.6-rc3-mm2 [sparc, sparc64, mips syscall broken] Paul Jackson
2004-05-05 23:29 ` 2.6.6-rc3-mm2: vermagic compile error if CONFIG_MODULES=n Adrian Bunk
2004-05-06 14:53 ` 2.6.6-rc3-mm2 Antonio Dolcetta
2004-05-06 15:12 ` 2.6.6-rc3-mm2 Andrew Morton
2004-05-06 15:56 ` 2.6.6-rc3-mm2 Antonio Dolcetta
2004-05-06 17:26 ` 2.6.6-rc3-mm2 Adrian Bunk
2004-05-06 21:46 ` 2.6.6-rc3-mm2 Bruce Guenter
2004-05-07 2:52 ` 2.6.6-rc3-mm2 Andrew Morton
2004-05-07 4:16 ` 2.6.6-rc3-mm2 Rusty Russell
2004-05-07 16:05 ` 2.6.6-rc3-mm2 Bruce Guenter
2004-05-07 20:13 ` 2.6.6-rc3-mm2 R. J. Wysocki
2004-05-08 6:09 ` 2.6.6-rc3-mm2 Andrew Morton
[not found] ` <200405081329.43017.rjwysocki@sisk.pl>
2004-05-08 11:31 ` 2.6.6-rc3-mm2 Andrew Morton
2004-05-08 16:25 ` 2.6.6-rc3-mm2 R. J. Wysocki
2004-05-08 11:43 ` 2.6.6-rc3-mm2 Andrew Morton
2004-05-08 12:16 ` 2.6.6-rc3-mm2 R. J. Wysocki
2004-05-08 16:59 ` 2.6.6-rc3-mm2 Bruce Guenter
2004-05-08 18:46 ` 2.6.6-rc3-mm2 Andrew Morton
2004-05-08 18:31 ` 2.6.6-rc3-mm2 Joseph Fannin
-- strict thread matches above, loose matches on Subject: below --
2004-05-06 9:06 2.6.6-rc3-mm2 (4KSTACK) h.verhagen
2004-05-06 9:12 h.verhagen
2004-05-06 9:48 Sid Boyce
[not found] <1Sq6O-4gJ-25@gated-at.bofh.it>
[not found] ` <1Sss1-7qC-53@gated-at.bofh.it>
[not found] ` <1SzjQ-4EY-21@gated-at.bofh.it>
[not found] ` <1SCB0-7kE-11@gated-at.bofh.it>
[not found] ` <1SSZ6-3vy-13@gated-at.bofh.it>
[not found] ` <1STip-3L3-11@gated-at.bofh.it>
[not found] ` <1T1IW-2eH-3@gated-at.bofh.it>
[not found] ` <1T7vo-6C2-7@gated-at.bofh.it>
[not found] ` <1TfiY-4s1-17@gated-at.bofh.it>
[not found] ` <1TfVX-4T4-51@gated-at.bofh.it>
[not found] ` <1Tg5k-55S-19@gated-at.bofh.it>
[not found] ` <1Tgf4-5cp-27@gated-at.bofh.it>
2004-05-07 18:38 ` Andi Kleen
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=40A0929A.7040609@aitel.hist.no \
--to=helgehaf@aitel.hist.no \
--cc=davidsen@tmr.com \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.