From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 23 08:17:12 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B3ED6106566B for ; Mon, 23 Jul 2012 08:17:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 289938FC0C for ; Mon, 23 Jul 2012 08:17:11 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q6N8GxcX093817; Mon, 23 Jul 2012 11:16:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q6N8GkIg034868; Mon, 23 Jul 2012 11:16:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q6N8GkWe034867; Mon, 23 Jul 2012 11:16:46 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 23 Jul 2012 11:16:46 +0300 From: Konstantin Belousov To: Richard Yao Message-ID: <20120723081646.GN2676@deviant.kiev.zoral.com.ua> References: <500CF526.7070708@gentoo.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CSGWCrCVWDYEEUXI" Content-Disposition: inline In-Reply-To: <500CF526.7070708@gentoo.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: "hackers@FreeBSD.org" Subject: Re: Kernel thread stack size X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jul 2012 08:17:12 -0000 --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//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--