From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 25 00:40:39 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 7F3E7106564A for ; Wed, 25 Jul 2012 00:40:39 +0000 (UTC) (envelope-from ambrosehua@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0F4BA8FC0A for ; Wed, 25 Jul 2012 00:40:38 +0000 (UTC) Received: by weyx56 with SMTP id x56so134390wey.13 for ; Tue, 24 Jul 2012 17:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=zXKuHId0UVo+I9GMQ8B3BjhzW/VOb7+ftyb7EpNBERQ=; b=ifW5gxER9FlvoCV3ZBZ2rKH4WSDI++wPg0oIl54wbei6J2JVECqyL5OwgogK9DqO3W Asytp97iRSVZDoc8l3F32dvwQZj3G8wy9YGB8XSl/pqdszLCou/CbsO3xYAIwIh39hwU QlaSCCfq1fqS9HwMDNuvrSewh/ih9thrlshQP9bo6PIacYKJvENHfBZ+E5CaX7UE2jZH rZkTIhEwxlXXENWJQJ82RcTzMgq3aSvc0esD1KWgawSL7AlBwGlh7HLJTRoQO6L103h+ 3QJvIU0EGRHUvdrRRTEHisJ0dfDbyasuc+54DK40mynRHowKkGwn4Gkg0CesDHZxFa8t u/Dw== MIME-Version: 1.0 Received: by 10.180.87.232 with SMTP id bb8mr11818798wib.0.1343176838044; Tue, 24 Jul 2012 17:40:38 -0700 (PDT) Received: by 10.223.144.216 with HTTP; Tue, 24 Jul 2012 17:40:37 -0700 (PDT) In-Reply-To: <20120723081646.GN2676@deviant.kiev.zoral.com.ua> References: <500CF526.7070708@gentoo.org> <20120723081646.GN2676@deviant.kiev.zoral.com.ua> Date: Wed, 25 Jul 2012 08:40:37 +0800 Message-ID: From: Paul Ambrose To: Konstantin Belousov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Richard Yao , "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: Wed, 25 Jul 2012 00:40:39 -0000 #define PAGE_SHIFT 12 #define PAGE_SIZE (1< > 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. > > > > 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. >