Re: help increase process/kernel memory please



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



Relevant Pages

  • Re: help increase process/kernel memory please
    ... In response to Per olof Ljungmark: ... I clearly have a problem figuring out how to increase the limits for ... I'm running a Perl app that need lots of memory and I would like to make ...
    (freebsd-questions)
  • Re: [RFC][0/3] Virtual address space control for cgroups (v2)
    ... I thought I addressed some of those by adding a separate config option. ... I am not against making it a separate controller. ... Trying to account/control physical memory or swap usage via virtual ... you suggested that VA limits provide a "soft-landing". ...
    (Linux-Kernel)
  • SUMMARY: Out of Memory Message in Huge amount of Files
    ... reads in the directory information, it has to sort it, since it's not in any ... memory to hold the name strings (as well as the node numbers and some other ... Another is to relax the memory limits. ... and data space in shell scripts where I need to use "ls" in directories with ...
    (Tru64-UNIX-Managers)
  • Re: [RFC][0/3] Virtual address space control for cgroups (v2)
    ... Trying to account/control physical memory or swap usage via virtual ... you suggested that VA limits provide a "soft-landing". ... memory controller configured. ... example would work for free if they were two separate subsystems. ...
    (Linux-Kernel)
  • Re: Maximum filesize?
    ... I found some information on Charles Williams's site concerning Memory Limits ... Excel 2003 has a substantially increased memory capacity I have successfully ... to save the backup copy. ...
    (microsoft.public.excel.worksheet.functions)