http://www.perlmonks.org?node_id=1002141


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