mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kyle Moffett <mrmacman_g4@mac.com>
To: Giridhar Pemmasani <giri@lmc.cs.sunysb.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: About 4k kernel stack size....
Date: Wed, 21 Dec 2005 10:37:07 -0500	[thread overview]
Message-ID: <2C2D8A91-7BD7-4181-B054-E82A279AF51D@mac.com> (raw)
In-Reply-To: <dobr1u$19t$1@sea.gmane.org>

On Dec 21, 2005, at 10:07, Giridhar Pemmasani wrote:
> Sean wrote:
>
>> I for one hope those silly bastards using ndiswrapper fix up that  
>> code to
>                        ^^^^^^^^^^^^^^
> It is despicable that some of the proponents of this 4k-only stack  
> size have resorted to such epithets.


> As I see, although people that rely on ndiswrapper (since there is  
> no other way they could use the hardware that they have) will not  
> be able to use their wireless cards when this patch gets merged  
> without having to patch the kernel, only a few comments have been  
> raised about it.

Not true.  This is (IIRC) the _third_ flamewar during which a large  
proportion of the comments were either directly or indirectly one of  
the following: "You are intentionally breaking ndiswrapper", "What's  
wrong with having an 8k option?", and "This makes things more-fragile  
or isn't well tested".

> There are other people that have raised concern not related to  
> ndiswrapper. Branding everyone that is raising a concern about this  
> patch into one group and calling them names is pathetic and  
> despondent.

To date, all of the above concerns have been addressed:

"You are intentionally breaking ndiswrapper":
    Yes, we know, and we don't care, because it's a bad solution and  
already broken. (12k windows stacks, preempt, etc).  If it matters to  
you, go fix it permanently (which I gather you are already trying to  
do, good work).

"What's wrong with having an 8k option?":
    It complicates the code, it means that bugs do not get reported  
because disabling 4k (or enabling 8k) fixes it, and this is the only  
excuse for the askers of the third question.  It also makes things  
more fragile because it means we need per-process order-1 allocations  
instead of order-0 allocations.  This option also makes crashes much  
harder to reproduce depending on interrupt load and a wide variety of  
other factors.  This means that _users_ may see no problem with an 8k  
option, but to the developers it's not such a great idea.

"This makes things more-fragile or isn't well tested.":
    Not true!  With the current situation in -mm, there are _0_  
unresolved 4k-stacks bugs.  If you have a problem, please report it  
so we can get it fixed.  However, since this does have technical  
advantages (see above), we want to _force_ this option _in_-mm_,  
*precisely* so we can get it better tested and work out the few  
remaining bugs.  Furthermore, this does *not* change the overall  
amount of stack!  8k == 4k + 4k!!!  It only makes stack overflows  
guaranteed and easy to debug in the specific call scenarios (instead  
of making them probabilistic and hard to reproduce).

> And supporting private stacks, as some people have suggested, may  
> be possible in theory, but it is _very hard_, considering that  
> Windows uses different calling conventions (fastcall, stdcall,  
> cdecl) and a driver can use more than one thread.

Windows drivers like that using more than one thread are basically  
inherently racy under current Linux, and probably would not handle  
preemption at all.  If some mess like that breaks due to any in- 
kernel change, you get to keep all 42 pieces.

> It is futile on this thread to suggest to someone to come up with a  
> patch to implement private stacks in such an environment. And let  
> me also repeat that I have been working on implementing NDIS in  
> user space, although there are few issues with that too.

Great, you will probably make a lot of people happy with that.

Cheers,
Kyle Moffett

--
Simple things should be simple and complex things should be possible
   -- Alan Kay




  reply	other threads:[~2005-12-21 15:37 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-18 22:14 J.A. Magallon
2005-12-20  2:52 ` Mark Lord
2005-12-20 13:37   ` Adrian Bunk
2005-12-20 14:37     ` Mike Snitzer
2005-12-20 15:00       ` Adrian Bunk
     [not found]       ` <46578.10.10.10.28.1135094132.squirrel@linux1>
2005-12-20 15:55         ` Sean
2005-12-21 15:07           ` Giridhar Pemmasani
2005-12-21 15:37             ` Kyle Moffett [this message]
2005-12-21 16:25               ` Giridhar Pemmasani
2005-12-21 16:46             ` Christoph Hellwig
2005-12-21 20:14             ` Krzysztof Halasa
2005-12-21 21:39               ` linux-os (Dick Johnson)
2005-12-22  9:14             ` Romano Giannetti
2005-12-20 17:02         ` linux-os (Dick Johnson)
2005-12-20 18:06           ` Chase Venters
2005-12-20 18:36             ` linux-os (Dick Johnson)
2005-12-20 18:43               ` Arjan van de Ven
2005-12-20 18:59                 ` linux-os (Dick Johnson)
2005-12-20 22:33                 ` Alan Cox
2005-12-20 22:54           ` Nikita Danilov
2005-12-21 14:02             ` linux-os (Dick Johnson)
2005-12-21 14:18               ` Nikita Danilov
2005-12-21 14:25                 ` linux-os (Dick Johnson)
2005-12-21 15:19                   ` Nikita Danilov
2005-12-21 22:50                     ` Jan Engelhardt
2005-12-20 20:15   ` Alan Cox

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=2C2D8A91-7BD7-4181-B054-E82A279AF51D@mac.com \
    --to=mrmacman_g4@mac.com \
    --cc=giri@lmc.cs.sunysb.edu \
    --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 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®