Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: How can I make my program occupying a lot of memory (sic!)?

by Doctrin (Beadle)
on Nov 03, 2012 at 20:49 UTC ( #1002141=note: print w/ replies, xml ) Need Help??


in reply to Re: How can I make my program occupying a lot of memory (sic!)?
in thread How can I make my program occupying a lot of memory (sic!)?

Hmm, no, I've made a mistake. It uses an extra 1 GiB as free -m says. Anyways, thanks for the code :) Now I know that I cannot execute fork()-s from heavy programs.


Comment on Re^2: How can I make my program occupying a lot of memory (sic!)?
Re^3: How can I make my program occupying a lot of memory (sic!)?
by BrowserUk (Pope) on Nov 03, 2012 at 22:04 UTC
    It uses an extra 1 GiB as free -m says.

    I don't use *nix, but I think that the tool you are using is giving you bad info.

    AFAIK: That memory will not be cloned unless the forked child accesses it.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    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.

    RIP Neil Armstrong

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2014-09-02 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (20 votes), past polls