3
0

memusage 268 B

12345678910111213141516
  1. #!/bin/sh
  2. busybox=../busybox
  3. i=4000
  4. echo "Before we started $i copies of '$busybox sleep 10':"
  5. $busybox nmeter '%t %[pn] %m' | head -3
  6. while test $i != 0; do
  7. $busybox sleep 10 &
  8. i=$((i-1))
  9. done
  10. sleep 1
  11. echo "After:"
  12. $busybox nmeter '%t %[pn] %m' | head -3