🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3229

Re: Q: How can i expand the stack size from 4K to 8K in kernel driver?

#3229
From: Joerg Schilling
Date: Thu, 18 Dec 1997 00:00
32 lines
2757 bytes
In article <34982C99.97199F5F@activetouch.com>,
Joss Shen  <sj@activetouch.com> wrote:
>Hi,
>
>The source code size of the driver is over 10Mb (it's true!). At first,
>it's written to run in WinNT4.0, and it really exceeded NT's 4Kb stack
>limit and make NT down. I don't think i could modify local variables to
>static by my hand and it will produce re-entry problems to functions.

Using static variables would be a very bad idea in kernel software.
Try to alllocate dynamic memory on demand.

>Joerg Schilling wrote:
>> 
>> In article <3496CC94.79F5CCA@activetouch.com>,
>> Joss Shen  <sj@activetouch.com> wrote:
>> >Hi there,
>> >
>> >I'm doing a big network driver under Banyan Vines 7.0 (derived from AT&T
>> >SysV source tree). My problem is: the default 4K stack size is too small
>> >to my driver, how can i expand it to e.g. 8Kb? Is there any tunable
>> >parameter could make it done easily?
>> 
>> Modify your driver so that it does not have too much local (automatic) vars
>> inside the functions. I cannot believe that the 4k limit is is reached because
>> of recursion or procedure calls.
-- 
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) J�rg Schilling D-13353 Berlin
      js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
      jes@fokus.gmd.de			(work) chars I am J"org Schilling
URL:  http://www.fokus.gmd.de/usr/schilling    ftp://ftp.fokus.gmd.de/pub/unix
Technical Details
Message-ID: <67ar8l$jau$1@news.cs.tu-berlin.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3496CC94.79F5CCA@activetouch.com> <678urp$8c3$1@news.cs.tu-berlin.de> <34982C99.97199F5F@activetouch.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fc89c,8c04ba85abd170bc
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 1048e3,8c04ba85abd170bc
X-Google-Attributes: gid1048e3,public
X-Google-Thread: f6a6c,8c04ba85abd170bc
X-Google-Attributes: gidf6a6c,public
X-Google-Thread: 10c665,8c04ba85abd170bc
X-Google-Attributes: gid10c665,public
X-Google-Thread: 11035d,8c04ba85abd170bc
X-Google-Attributes: gid11035d,public
X-Google-Thread: fa664,8c04ba85abd170bc
X-Google-Attributes: gidfa664,public
X-Google-Thread: 105b29,8c04ba85abd170bc
X-Google-Attributes: gid105b29,public
X-Google-Thread: 102233,8c04ba85abd170bc
X-Google-Attributes: gid102233,public
From: js@cs.tu-berlin.de (Joerg Schilling)
Subject: Re: Q: How can i expand the stack size from 4K to 8K in kernel driver?
Date: 1997/12/18
Message-ID: <67ar8l$jau$1@news.cs.tu-berlin.de>
X-Deja-AN: 299295187
Content-Transfer-Encoding: 8bit
References: <3496CC94.79F5CCA@activetouch.com> <678urp$8c3$1@news.cs.tu-berlin.de> <34982C99.97199F5F@activetouch.com>
Content-Type: text/plain; charset=iso-8859-1
Organization: Technical University of Berlin, Germany
Mime-Version: 1.0
Newsgroups: comp.unix.programmer,bit.listserv.banyan-l,comp.unix.sco.programmer,comp.unix.sys5.misc,comp.unix.sys5.r3,comp.unix.sys5.r4,comp.unix.sysv386,comp.unix.solaris