Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jul 2012 11:16:46 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Richard Yao <ryao@gentoo.org>
Cc:        "hackers@FreeBSD.org" <hackers@freebsd.org>
Subject:   Re: Kernel thread stack size
Message-ID:  <20120723081646.GN2676@deviant.kiev.zoral.com.ua>
In-Reply-To: <500CF526.7070708@gentoo.org>
References:  <500CF526.7070708@gentoo.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--CSGWCrCVWDYEEUXI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jul 23, 2012 at 02:54:30AM -0400, Richard Yao wrote:
> What is the default kernel thread stack size on FreeBSD? I am
> particularly interested in knowing about i386 and amd64, but knowing
> this for other architectures (such as MIPS) would also be useful.
>=20

Look for the KSTACK_PAGES symbol defined in sys/<arch>/include/param.h.
It defines _default_ number of pages allocated for kernel stack of
new thread.

We have 4 pages for amd64, and 2 pages for i386, AFAIR. Look up the MIPS
yourself.

--CSGWCrCVWDYEEUXI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (FreeBSD)

iEYEARECAAYFAlANCG4ACgkQC3+MBN1Mb4gcTQCeM+cc+DsxVNlm3rTz4D3xITwN
PX4AoPA1tvBNmMZbS0k2MStJAQ7PcfPi
=DDli
-----END PGP SIGNATURE-----

--CSGWCrCVWDYEEUXI--



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