Date: Tue, 31 Oct 2006 16:56:42 +0000 From: Tom Judge <tom@tomjudge.com> To: Per olof Ljungmark <peo@intersonic.se> Cc: freebsd-questions@freebsd.org Subject: Re: help increase process/kernel memory please Message-ID: <4547804A.5010501@tomjudge.com> In-Reply-To: <45476E4E.4050107@intersonic.se> References: <45476E4E.4050107@intersonic.se>
next in thread | previous in thread | raw e-mail | index | archive | help
Per olof Ljungmark wrote: > Hi, > > I clearly have a problem figuring out how to increase the limits for > memory available to a process and the kernel. > > I'm running a Perl app that need lots of memory and I would like to > make around 2G available to it, the box has 4G physical RAM. > > Which knob(s) should be tweaked? System is running 6-STABLE from > around 1st of October. > > This is what I see when the process exits: > Out of memory during "large" request for 528384 bytes, total sbrk() is > 536416256 bytes > > I'm depending on a solution to this and would be a really happy person > if someone could please guide me. > > Per olof > You should try setting kern.maxdsize in /boot/loader.conf and then reboot the system. This sysctl sets the maximum data size of a running process you may also have to tune some of the limits using ulimit. The example below sets the max data size to 1.5Gb: kern.maxdsiz="1610612736" Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4547804A.5010501>