Damien Krotkine home


After many tests on my side, I got confirmation from this page : it looks like ulimit doesn't work for memory limitation starting from Mac OS 10.5. That's a shame...

perl -E 'use BSD::Resource;  setrlimit(RLIMIT_VMEM, 2000, 2000); my $s; for my $i (1..50_000) { $s .= "A" x 1024 } say "damned, I should have been killed"'

 

blog comments powered by Disqus
Fork me on GitHub