in reply to Re: Perl system command memory usage in threads
in thread Perl system command memory usage in threads

See Update 1. The rate of growth shown there stays the same throughout the life cycle of the script (which is what I mean by permanent).

If you need anything else let me know!

  • Comment on Re^2: Perl system command memory usage in threads

Replies are listed 'Best First'.
Re^3: Perl system command memory usage in threads
by BrowserUk (Patriarch) on Jul 31, 2015 at 21:47 UTC

    Is that the exact code from the OP?

    Because when I run that code (Vista;(v5.18.4) built for MSWin32-x64-multi-thread) with:

    • Option 2: 22.4MB constant regardless of how long I run it.
    • Option 4: 22.3MB.
    • Option 5: 23.3MB.

    Which brand (AS/Strawberry/self-built) of Perl are you using?


    Anyone got any experience of this phone's predecessor?

    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". I knew I was on the right track :)
    In the absence of evidence, opinion is indistinguishable from prejudice.
    I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!

      Yes, that is the exact code run on the test system. I've also included another update indicating system information and perl -v output.

      For what its worth, the systems I'm testing this on are virtual machines, and are experiencing some issues. I just did not think these issues could/would cause a problem like this?

      Running the code on my workstation, on active perl 5.20.2, i too see no memory leak and similar numbers.

        For what its worth, the systems I'm testing this on are virtual machines,

        That is almost certainly the cause; and I seriously doubt that there is anything that can be done either in your script or perl to alleviate it.

        About the only thing that might offer a solution (besides dropping out of the VM) would be to try a different VM.

        When I played with VMs a couple of years ago I had less problems with MS Virtual PC than Oracle's Virtual Box; but both gave me problems -- mostly with networking for the stuff I was doing. However, both have seen significant updates since, so my information is out of date.

        FWIW: one of my customers uses VMWare and they are very happy with it; but they can afford to employ expertise and pay for support contracts.


        Anyone got any experience of this phone's predecessor?

        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". I knew I was on the right track :)
        In the absence of evidence, opinion is indistinguishable from prejudice.
        I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!