From owner-freebsd-current@FreeBSD.ORG Wed Dec 24 22:38:54 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ACAB716A4CE; Wed, 24 Dec 2003 22:38:54 -0800 (PST) Received: from ftp.bjpu.edu.cn (ftp.bjpu.edu.cn [202.112.78.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5B3C43D45; Wed, 24 Dec 2003 22:38:52 -0800 (PST) (envelope-from delphij@frontfree.net) Received: by ftp.bjpu.edu.cn (Postfix, from userid 426) id 9345A52DE; Thu, 25 Dec 2003 14:38:47 +0800 (CST) Received: from srv (unknown [192.168.122.253]) by ftp.bjpu.edu.cn (Postfix) with ESMTP id 4271852E1; Thu, 25 Dec 2003 14:38:47 +0800 (CST) From: "=?gb2312?B?WGluIExJL8Du9s4=?=" To: , Date: Thu, 25 Dec 2003 14:38:42 +0800 Organization: Frontfree Technology Network MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <20031217165012.K15803@carver.gumbysoft.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Thread-Index: AcPFAgiEiPiz26M6T36z4zBggcDyRQFqv0Dg Message-Id: <20031225063847.4271852E1@ftp.bjpu.edu.cn> Subject: [SOLVED] RE: [Backtrace] 4.9 and 5.1-RELEASE occasionly panic on RAM > 4GB without PAE (long) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Dec 2003 06:38:54 -0000 First I would say "thank you" to those who helped me to find the cause of the problem. Now I have confirmed that the problem goes away after a kernel configuration tuning. To trigger the problem, the box must have more than 2GB RAM and the following configuration: options MAXDSIZ=(1024UL*1024*1024) options MAXSSIZ=(128UL*1024*1024) options DFLDSIZ=(1024UL*1024*1024) A default, say, GENERIC kernel would not trigger panic's during my test. The problem exists on 4-STABLE and 5-CURRENT, however, by increasing kernel virtual address space by adding a line like the following: options KVA_PAGES=512 The panics goes away. I would suggest the following patch against -HEAD to be applied: Index: NOTES =================================================================== RCS file: /home/ncvs/src/sys/conf/NOTES,v retrieving revision 1.1192 diff -u -r1.1192 NOTES --- NOTES 7 Dec 2003 04:41:11 -0000 1.1192 +++ NOTES 25 Dec 2003 06:36:27 -0000 @@ -89,6 +89,12 @@ # and explicitly set the maximum with a shell command for processes # that regularly exceed the limit like INND. # +# Adjusting these parameters may result in a larger kernel memory +# usage. Thus you may want to enlarge kernel virtual address space. +# On a i386 box with more than 2GB of memory and the following +# options, KVA_PAGES=512 would be helpful to solve some fork related +# kernel panics. +# options MAXDSIZ=(1024UL*1024*1024) options MAXSSIZ=(128UL*1024*1024) options DFLDSIZ=(1024UL*1024*1024) Thank you again for your help!