Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^9: statistics of a large text

by BrowserUk (Pope)
on Feb 10, 2011 at 15:14 UTC ( #887472=note: print w/replies, xml ) Need Help??

in reply to Re^8: statistics of a large text
in thread statistics of a large text

I have no idea since I can access the whole memory (all 50 GB)

How do you know you can access the whole of memory?

What happens if you run this code?:

perl -e' $x = chr(0) x ( 1024**3 * 12 ) '

That will attempt to allocate a single 12GB lump of memory. If it fails, then try adjusting the 12 to a lower value to discover how much memory Perl can actually allocate.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^10: statistics of a large text
by perl_lover_always (Acolyte) on Feb 10, 2011 at 15:33 UTC
    it does not fail!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2016-10-22 21:45 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (298 votes). Check out past polls.