Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Dec 2003 14:38:42 +0800
From:      "=?gb2312?B?WGluIExJL8Du9s4=?=" <delphij@frontfree.net>
To:        <stable@FreeBSD.org>, <current@freebsd.org>
Subject:   [SOLVED] RE: [Backtrace] 4.9 and 5.1-RELEASE occasionly panic on RAM > 4GB without PAE (long)
Message-ID:  <20031225063847.4271852E1@ftp.bjpu.edu.cn>
In-Reply-To: <20031217165012.K15803@carver.gumbysoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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!



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