Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 lurking in the Monastery: (15)
As of 2015-07-31 19:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls