From: Gary Wright Date: 2008-01-02T12:50:16+09:00 Subject: Re: Modifying parent shell's attributes? On Jan 1, 2008, at 10:38 PM, John Wells wrote: > > I'm on Linux, and I've even done this: > > Process.setrlimit Process::RLIMIT_STACK, 18446744073709551615, > 18446744073709551615 > > And, based on what getrlimit says, it worked. However, same exception. > > Even doing it as root, nothing else seems to work but ulimit -s 16000 > from parent shell. I'd avoid huge numbers like that--you may be causing other problems because you are overcommitting memory. Just try using the same value you have had success with via ulimit: 16384000 (in bytes). How about calling Process.setrlimit in Ruby and then forking to run your actually code? Process.setrlimit Process::RLIMIT_STACK, new_limit, new_max child = fork { do_work } Process.wait(child) Gary Wright