Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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
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?
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 musing on the Monastery: (10)
As of 2015-07-08 06:15 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 (94 votes), past polls