From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 16 17:40:36 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36A0E16A4CE for ; Wed, 16 Jun 2004 17:40:36 +0000 (GMT) Received: from mail.advantagecom.net (mail.advantagecom.net [65.103.151.155]) by mx1.FreeBSD.org (Postfix) with ESMTP id E692443D1D for ; Wed, 16 Jun 2004 17:40:35 +0000 (GMT) (envelope-from andykinney@advantagecom.net) Received: from SCSI-MONSTER (scsi-monster.advantagecom.net [207.109.186.200]) by mail.advantagecom.net (8.11.6/8.11.6) with ESMTP id i5GHeD314468; Wed, 16 Jun 2004 10:40:14 -0700 From: "Andrew Kinney" Organization: Advantagecom Networks, Inc. To: Tamas TEVESZ Date: Wed, 16 Jun 2004 10:40:41 -0700 MIME-Version: 1.0 Message-ID: <40D023A9.27088.521DF3D8@localhost> Priority: normal In-reply-to: References: <40CF190C.8295.4E0C7F2D@localhost> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: freebsd-hackers@freebsd.org Subject: Re: 4.10-RELEASE and -STABLE crashing regularly under load X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: andykinney@advantagecom.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 17:40:36 -0000 On 16 Jun 2004 at 0:52, Tamas TEVESZ wrote: > On Tue, 15 Jun 2004, Andrew Kinney wrote: > > > There's your problem. va=0 usually happens when your run out of > KVA > and pmap functions choke (trap 12 panic) when they see va=0 or > > numbers derived from that variable. It's not nice, but it's what > > happens. This is the number one problem on systems with 2GB+ of RAM > > (you have 4GB, so you'll run into this a lot). > > Try increasing > KVA_PAGES in your kernel config and recompiling. It's > worked in > almost every other case like this where large memory > configurations > are in use. > > thank you very much. do you perhaps have any suggestions what sould i > set for it? as far as i can track, depending on whether PAE is in use > KVA_PAGES will be either 256 or 512. for starters, i don't even know > whether i'm really using pae (i am, i assume?), and in either case, > what would be a likely value for KVA_PAGES? > Set it to 512. Unless something has changed since 4.8 (what we're using here), PAE is not enabled by default and you probably wouldn't want to use it unless you had more than 4GB of RAM since it does take a performance hit from the additional paging algorithms. KVA_PAGES set to 512 gives you a 2GB/2GB user space / kernel space split which is necessary for a 4GB machine to run reliably at any decent load. You would set it in your kernel config and then rebuild the kernel. If you use linux emulation at all, you'll want to rebuild the world instead. How to do this is covered in the documentation at freebsd.org. Sincerely, Andrew Kinney President and Chief Technology Officer Advantagecom Networks, Inc. http://www.advantagecom.net