Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: mem usage

by ikegami (Pope)
on May 26, 2010 at 18:10 UTC ( #841776=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @lines;
    $#lines = 12_000_000;
    @lines = ();                 <------ was missing
    push @lines, $_ while <IN>;
    
  2. or download this
    $ perl -e'print "abcdef\n" for 1..11_000_000' |
       perl -E'
    ...
          say int(`ps --no-heading -o vsz $$`/1000)
    '
    480
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://841776]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2014-12-27 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls