Subject: Re: Setting a default ulimit for the whole system?
To: Jeremy C. Reed <firstname.lastname@example.org>
From: Gilles Gravier <Gilles@Gravier.org>
Date: 05/10/2007 17:50:17
So no other way than rebuilding a kernel?
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
Jeremy C. Reed wrote:
> On Thu, 10 May 2007, Gilles Gravier wrote:
>> How do I set a systemwide ulimit (I want it to be effective, amongst other
>> things, for php scripts, run out of crontabs)... I want to set ulimit -d to
>> something high (unlimited, first, for testing purposes).
> ulimit -d is for data segment size
> See the options(4) manual page. You can define this in the kernel with the
> DFLDSIZ and MAXDSIZ options.
> The defaults on my system are:
> proc.curproc.rlimit.datasize.soft = 268435456
> proc.curproc.rlimit.datasize.hard = 3221225472
> Which matches up with what I also see in my
> Jeremy C. Reed