On 7/4/11 2:44 PM, William Stein wrote:
On Sun, Jul 3, 2011 at 3:14 AM, leif<[email protected]> wrote:
On Jul 2, 8:03 pm, William Stein<[email protected]> wrote:
On Sat, Jul 2, 2011 at 7:46 AM, Jason Grout<[email protected]> wrote:
I've been doing some experiments with the python resource module and the
setrlimit command to set resource limits on processes. I've found something
very interesting: it seems that on OSX (10.6.8), there is no way to have a
hard cap on the amount of memory a process uses, at least no way that I can
find.
Wow, this is really disturbing.
Thanks for letting us know about this.
I tried using "ulimit -v" from bash in OS X, and it also doesn't seem
to do anything at all.
Scary.
Indeed.
See also
http://stackoverflow.com/questions/3274385/how-to-limit-memory-of-a-os-x-program-ulimit-v-neither-m-are-working
One answer there *does* claim to give a working solution to the
problem of this thread, but using launchd instead of setrlimit.
That's encouraging.
Except that launchd says that it uses setrlimit to do things :).
From the manpage:
"HardResourceLimits <dictionary of integers>
Resource limits to be imposed on the job. These adjust variables
set with setrlimit(2). The following
keys apply:"
Jason
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org