Re: help increase process/kernel memory please

2006-10-31 Thread Per olof Ljungmark

Bill Moran wrote:
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.


What does 'ulimit -a' as the user running the process say?

If the problem is apparent there, the associated docs should help.

Hmmm, ulimit is a sh command, I was using tcsh. The below is after the 
advise from Tom Judge to set "kern.maxdsiz="1610612736". I will try from 
here, thanks.


$ ulimit -a
cpu time   (seconds, -t)  unlimited
file size   (512-blocks, -f)  unlimited
data seg size   (kbytes, -d)  1572864
stack size  (kbytes, -s)  65536
core file size  (512-blocks, -c)  unlimited
max memory size (kbytes, -m)  unlimited
locked memory   (kbytes, -l)  unlimited
max user processes  (-u)  5547
open files  (-n)  11095
virtual mem size(kbytes, -v)  unlimited
sbsize   (bytes, -b)  unlimited
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: help increase process/kernel memory please

2006-10-31 Thread Bill Moran
In response to Per olof Ljungmark <[EMAIL PROTECTED]>:
> 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.

What does 'ulimit -a' as the user running the process say?

If the problem is apparent there, the associated docs should help.

-- 
Bill Moran
Collaborative Fusion Inc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: help increase process/kernel memory please

2006-10-31 Thread Tom Judge

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"