Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Memory is not released back to operating system

by Argel (Prior)
on Mar 02, 2012 at 21:48 UTC ( #957559=note: print w/replies, xml ) Need Help??


in reply to Re: Memory is not released back to operating system
in thread Memory is not released back to operating system

I thought perl specifically tries to hold onto memory so it can reuse it again instead of having to allocate new memory?

Elda Taluta; Sarks Sark; Ark Arks
My deviantART gallery

  • Comment on Re^2: Memory is not released back to operating system

Replies are listed 'Best First'.
Re^3: Memory is not released back to operating system
by eyepopslikeamosquito (Chancellor) on Mar 02, 2012 at 23:13 UTC

    No, it defers to the implementation of the C runtime library malloc.

    Though I wouldn't recommend it unless you are desperate, it is possible to change the "release memory to the OS" behaviour by building Perl using a custom malloc.

    This has been discussed here many times before, see for example: Not able to release memory and How to return unused memory to OS?.

    From my testing across a number of OSes, I would expect only Linux and Windows to return "large" blocks of memory back to the OS. I would be interested to learn what operating system the OP is running on.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://957559]
help
Chatterbox?
[zentara]: s/thread/cpu/
[marto]: xkcd://538
[Discipulus]: these opcodes mentioned in the wiki pages are the same opcode perl is translated into? or is just the same term but in different fields?
[zentara]: it's useful if you want to lockup a multicore machine :-)
[zentara]: marto I would give up the key easy with drugs....
[Corion]: Discipulus: No, the Perl opcodes are more high-level than the raw processor opcodes
[zentara]: sodium pentathol and a beautiful woman interogator :-)
[Discipulus]: thanks Corion if so i probably never meet them in my life.. ;=)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (11)
As of 2017-07-28 12:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (428 votes). Check out past polls.