Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Nov 2000 22:19:56 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        Satyajeet Seth <sseth@sasken.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Per-process kernel stack size 
Message-ID:  <200012010619.eB16JuF02371@mass.osd.bsdi.com>
In-Reply-To: Your message of "Fri, 01 Dec 2000 11:31:38 %2B0530." <Pine.GSO.4.10.10012011108040.16028-100000@suns3.sasi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi
> 
> We have implemented a device driver on FreeBSD 4.0 and x86 architecture.
> The device driver has routines for servicing I/O requests. I understand
> that these routines run in the top part of the kernel stack.
> 
> The routines have a nesting of 10-12 functions having 10-100 lines each.
> Could you tell us what is the minimum available run time memory in the
> per-process kernel stack for running these routines?

You can generally assume that you have about 4k of kernel stack (you will 
normally have more, but don't count on it 8).

Typically, if you are at all worried about stack usage, then you are 
probably using too much.

Hope this helps.

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012010619.eB16JuF02371>