Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2005 12:29:33 -0500
From:      ender <ender@tog.net>
To:        freebsd-performance@freebsd.org
Subject:   Re: mmap()
Message-ID:  <4384A6FD.2090201@tog.net>
In-Reply-To: <20051123171154.60414.qmail@web30307.mail.mud.yahoo.com>
References:  <20051123171154.60414.qmail@web30307.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Arne Wörner wrote:

>--- Michael Conlen <m@obmail.net> 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/<arch>/conf/<kernel name>
>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





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