Date: Sun, 21 Mar 2004 16:34:02 +1100 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Bill Paul <wpaul@freebsd.org> Cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/compat/ndis kern_ndis.c ndis_var.h ntoskrnl_var.h subr_ndis.c subr_ntoskrnl.c src/sys/dev/if_ndi Message-ID: <20040321053402.GA47807@server.vk2pj.dyndns.org> In-Reply-To: <20040321022537.3910216A4CF@hub.freebsd.org> References: <Pine.BSF.4.21.0403201659410.11551-100000@InterJet.elischer.org> <20040321022537.3910216A4CF@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 20, 2004 at 06:25:37PM -0800, Bill Paul wrote: >It's possible I've misdiagnosed this problem and there's something >else afoot. All I know is that KSTACK_PAGES=8 makes it work on my >test box. Increasing KSTACK_GUARD_PAGES may help ensure that an under-dimensioned kernel stack size blows up correctly (though this will mean tweaking /sys/i386/include/param.h directly because it's not a configurable parameter). As another suggestion: I presume the kernel stack is pre-zeroed. If so, it would be not overly complex to have a task (user or kernel) that regularly checked how much stack was used for each stack and flagged ones that were excessively deep - which would give you an idea of the actual usage. Peter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040321053402.GA47807>