summaryrefslogtreecommitdiff
path: root/scripts/memusage
blob: 863b0cb076f4239fe4efdd9953c8532c97166a40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

busybox=../busybox

i=4000
echo "Before we started $i copies of 'busybox sleep 10':"
$busybox nmeter '%t %[pn] %m' | head -3

while test $i != 0; do
    $busybox sleep 10 &
    i=$((i-1))
done
sleep 1

echo "After:"
$busybox nmeter '%t %[pn] %m' | head -3