Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
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 ( [id://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!)?

Replies are listed 'Best First'.
Re^3: How can I make my program occupying a lot of memory (sic!)?
by BrowserUk (Patriarch) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1002141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-16 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found