Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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.


Comment on Re^9: statistics of a large text
Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (14)
As of 2014-12-19 16:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (90 votes), past polls