Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Aug 2017 18:12:26 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Yue Chen <ycyc321@gmail.com>, freebsd-hackers@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: How to know the address ranges of kernel stacks, for user processes and kernel threads?
Message-ID:  <59A7EF1A.7020502@grosbein.net>
In-Reply-To: <CAKtBrB4eKn-Zfeh1fmjiMUaU4ZMbewd3wh4%2BNzc_BpS7rtRiUA@mail.gmail.com>
References:  <CAKtBrB4eKn-Zfeh1fmjiMUaU4ZMbewd3wh4%2BNzc_BpS7rtRiUA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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