cc: [email protected]
Subject: Re: Re: [ast-developers] Reaching RLIMIT_NPROC on Linux ends with
infinite loop
--------
> Yes, if the number of the running processes is lower than the number given to
> ulimit the script fails after some time. But if the parameter given to
> ulimit -u is lower than the number of already running processes, the script
> doesn't seem to fail. It takes 100 % of CPU and stays running.
>
I tried the following and it produced
line 6: cannot fork [Resource temporarily unavailable]
after around 30 seconds. Can you explain how you got it to cause the CPU
to spin?
$ uname -a
Linux penguin.research.att.com 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:58:43
EDT 2008 x86_64 x86_64 i386-64 GNU/Linux
===================cut here=======================
for (( i = 2; i < 14; i++ )); do
sleep $i &
done
ulimit -u 10
for (( i = 0; i < 10; i++ )); do
cat /dev/zero > /dev/null &
done
===================cut here=======================
David Korn
[EMAIL PROTECTED]
_______________________________________________
ast-developers mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-developers