How to know the address ranges of kernel stacks, for user processes and kernel threads?

Eugene Grosbein eugen at grosbein.net
Thu Aug 31 11:12:37 UTC 2017


On 29.01.2015 07:54, Yue Chen wrote:

> It seems that each kernel stack has two pages (IA-32) to use. Does x86_64
> still have two pages or more?

One can change number of kernel stack pages for i386 and amd64 platforms
by means of /boot/loader.conf without need to rebuild a kernel using
kern.kstack_pages tunnable.

It equals to 2 for i386 and to 4 for amd64 by default
but I change it from 2 to 4 for my i386 systems running
IPSEC tunnels and/or wifi due to these subsystems being stack-greedy.

See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219476



More information about the freebsd-current mailing list