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

Peter Jeremy peterjeremy at optushome.com.au
Sat Mar 20 21:34:08 PST 2004


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


More information about the cvs-src mailing list