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

From: Eugene Grosbein <eugen_at_grosbein.net>
Date: Thu, 31 Aug 2017 18:12:26 +0700
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
Received on Thu Aug 31 2017 - 09:12:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:13 UTC