in reply to one-liner hogs
That'll chew memory like mad, and soon bomb out. CPU usage minimal.perl -e 'while (++$i) { $foo[$i] = $i; }'
of course, you can make it use CPU...
Ctrl-C kills all children, no root required! Load should fly up to around 4, give it a minute or two. To add mem usage, change the substr length.perl -e 'fork; fork; while (++$i) { $c .= crypt($i,$i); $c = substr($c +,4,128); }
Fun request!
Trinary
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: one-liner hogs
by premchai21 (Curate) on Feb 28, 2001 at 06:36 UTC |