From: Skarakis, K. <kon...@un...> - 2014-10-07 08:02:47
|
I am not sure I followed your instructions correctly, but I think that did it. > cat foo #!/bin/sh ulimit -n 100000 > ulimit -n 1024 > valgrind --log-file=/tmp/log ./foo ./foo: line 2: ulimit: open files: cannot modify limit: Operation not permitted > ulimit -n 100010 > ulimit -n 100010 > valgrind --log-file=/tmp/log ./foo > echo $? 0 Thanks Dan. And thanks Tom. -----Original Message----- From: dan...@gm... [mailto:dan...@gm...] On Behalf Of Dan Kegel Sent: Monday, October 06, 2014 7:08 PM To: Skarakis, Konstantinos Cc: Tom Hughes; val...@li... Subject: Re: [Valgrind-users] ulimit under valgrind What if you use ulimit on the outside, before valgrind runs, and raise the soft limit to 10 higher than your inner script would? |