Out of memory error

Mikko Työläjärvi mbsd at pacbell.net
Sat Dec 27 14:32:56 PST 2003


On Fri, 26 Dec 2003, Elliot Finley wrote:

> 4.8-R
>
> I have a process that needs to keep about 700MB of data in RAM.  It crashes
> when it gets to about 512MB.  I've looked for a sysctl variable to tune, but
> none of them jumped out at me.  Same with man tuning'
>
> Any pointers would be appreciated.

You'll need to tweak MAXDSIZ, see LINT.  The default value seems to be
picked up from /sys/<OS>/include/vmparam.h, and is 512MB on i386.

There is a corresponding kernel tunable (at least in 4.9) called
"kern.maxdsiz" you can put in /boot/loader.conf.

   $.02,
   /Mikko


More information about the freebsd-questions mailing list