From owner-freebsd-performance@FreeBSD.ORG Wed Nov 23 17:34:41 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6B9116A41F for ; Wed, 23 Nov 2005 17:34:41 +0000 (GMT) (envelope-from ender@tog.net) Received: from tog.net (tog.net [216.89.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id C752143D83 for ; Wed, 23 Nov 2005 17:34:25 +0000 (GMT) (envelope-from ender@tog.net) Received: by tog.net (Postfix, from userid 96) id 7AF8F29B66E; Wed, 23 Nov 2005 12:34:21 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.1.0-terranovanet_v6 (2005-09-13) on spamslapper.terranova.net X-Spam-Level: X-Spam-Status: No, score=-4.4 required=7.1 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0-terranovanet_v6 Received: from [192.168.8.151] (host-216-89-225-138.terranova.net [216.89.225.138]) by tog.net (Postfix) with ESMTP id B87BA29B64B for ; Wed, 23 Nov 2005 12:34:12 -0500 (EST) Message-ID: <4384A6FD.2090201@tog.net> Date: Wed, 23 Nov 2005 12:29:33 -0500 From: ender User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-performance@freebsd.org References: <20051123171154.60414.qmail@web30307.mail.mud.yahoo.com> In-Reply-To: <20051123171154.60414.qmail@web30307.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: mmap() X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 17:34:41 -0000 Arne Wörner wrote: >--- Michael Conlen wrote: > > >>I'm trying to tune the system to allow very large >>mmap()'s in a >> >> >> >I had a similar problem with shared memory. > >I found an option in /sys/conf/NOTES. > >I think it could help in your case, if u increase >% options MAXDSIZ=(1024UL*1024*1024) >% options MAXSSIZ=(128UL*1024*1024) >% options DFLDSIZ=(1024UL*1024*1024) >apropriately. > >E. g. in your /sys//conf/ >options MAXDSIZ=(2000UL*1024*1024) > >But I dont know, if that is a good idea... Maybe you should use >nextboot(8) in case your box does not like the new kernel... :-) > >-Arne > > > > > > > see /boot/defaults/loader.conf or man loader.conf. I would also suggest not using your entire amount of memory in these settings. Freebsd was crashing when i set these limits to 3G. 6.0-RELEASE #0 SMP kernel. This box has 3G physical memory. kern.dfldsiz=2147483648 # Set the initial data size limit # 2G kern.dflssiz=2147483648 # Set the initial stack size limit # 2G kern.maxdsiz=2147483648 # Set the max data size # 2G kern.maxtsiz=2147483648 # Set the max text size # 2G kern.maxssiz=2147483648 # Set the max stack size # 2G