Subject: Re: Setting a default ulimit for the whole system?
To: Gilles Gravier <Gilles@Gravier.org>
From: Jeremy C. Reed <email@example.com>
Date: 05/10/2007 11:01:38
On Thu, 10 May 2007, Gilles Gravier wrote:
> So no other way than rebuilding a kernel?
For logins (or other programs using login classes), put in /etc/login.conf
for default, like:
(Put the size you want. See login.conf.)
Then also use sysctl proc.curproc.rlimit.datasize.soft to set it (in
bytes) for the processes that start processes. Set "curproc" above to the
process ID you want.
> How about some settings file in /etc? That's indeed a bit harsh. :)
> Yes... I am trying to get a bigger data segment for php which complains about
> not being able to allocate enough memory (though there is plenty available).
Probably just setting proc.curproc.rlimit.datasize.soft for the apache
startup script should be good enough. Maybe put it in
Jeremy C. Reed