From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 1 18:06:57 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 1655A16A4CE for ; Fri, 1 Oct 2004 18:06:57 +0000 (GMT) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7788743D41 for ; Fri, 1 Oct 2004 18:06:56 +0000 (GMT) (envelope-from john@essenz.com) Received: from [192.168.1.100] (pool-141-158-247-68.phil.east.verizon.net [141.158.247.68]) by beck.quonix.net (8.12.11/8.12.11) with ESMTP id i91I6sqY075670 for ; Fri, 1 Oct 2004 14:06:54 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <200410011636.i91GaYgC093428@ambrisko.com> References: <200410011636.i91GaYgC093428@ambrisko.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <6F869D9B-13D3-11D9-ADF0-0003933DDCFA@essenz.com> Content-Transfer-Encoding: 7bit From: John Von Essen Date: Fri, 1 Oct 2004 13:58:01 -0400 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.619) X-SpamAssassin-2.64-Score: 0.5/6 RCVD_IN_NJABL_DUL,RCVD_IN_SORBS_DUL X-MimeDefang-2.44: beck.quonix.net X-Scanned-By: MIMEDefang 2.44 Subject: Re: Sudden Reboots X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 18:06:57 -0000 Could there be some more elaboration on these memory issues. From the way you described it, it sounds like if you have two machines serving the same function with the same load, and one machine has 512Mb and the other has 2.5Gb, the one with more memory might be prone to be more problems. Why is that? How do you tune the kernel to get around this? -John On Oct 1, 2004, at 12:36 PM, Doug Ambrisko wrote: > How much memory are in these system?. If you have 3G or more you end > up with very little left for the kernel in the 2G space. You can > monitor how much space you have left by compile a debug kernel then > as root: > gdb -k kernel.debug /dev/mem > print ((unsigned int)virtual_end)-((unsigned int)kernel_vm_end) > This should probably be made into a sysctl so it can be montored > better. > > If you only have a few meg. left it doesn't take many processes to > fork etc. then you machine blows up. The bge driver for example takes > 4M each for the jumbo packet handling. You can recover some of this > memory via loader.conf tunables or bump KVA_PAGES in your kernel > config file. Still once this memory is put into the zone allocator > (vmstat -z) in -stable it is gone from the system even if that bucket > isn't fully used or needed :-( > > Ironically the more memory you put in a system the less you can do with > the system! > > A lot of people are starting to run into this problem since large > memory > machines are cheap. > > Doug A.