Skip to content

Instantly share code, notes, and snippets.

@schwern
Created April 3, 2014 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schwern/9962275 to your computer and use it in GitHub Desktop.
Save schwern/9962275 to your computer and use it in GitHub Desktop.
$ ps auwx | head -1
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
$ ps auwx | grep perl
schwern 3574 0.0 0.0 2442000 628 s000 S+ 10:50AM 0:00.00 grep perl
schwern 3567 0.0 1.0 2507496 80168 s001 S 10:50AM 0:00.13 perl -wle my @list = (1..1_000_000); open my $fh, ">>", "/dev/null"; sleep 9999
schwern 3558 0.0 1.0 2517736 80244 s001 S 10:50AM 0:00.56 perl -wle my @list = (1..1_000_000); open my $fh, ">>", "/dev/null"; print {$fh} $_ for @list; sleep 9999
schwern 3557 0.0 1.0 2525928 80232 s001 S 10:50AM 0:00.45 perl -wle my @list = (1..1_000_000); open my $fh, ">>", "/dev/null"; print $fh @list; sleep 9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment