Re: Perl memory manager
- From: Ilya Zakharevich <nospam-abuse@xxxxxxxxx>
- Date: Thu, 3 Jan 2008 21:07:11 +0000 (UTC)
[A complimentary Cc of this posting was sent to
Nishant
<nishant.031@xxxxxxxxx>], who wrote in article <ebe644b7-62d8-463f-b378-097d8a366bed@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
Hi ,
My understanding about the perl memory manager is that it initially
allocates a chunk of memory and allocates more memory when required.
but it does not return the whole memory to the OS. Rather, it keeps it
with itself ,so that the next time it has to use memory , it can use
it from the already chunk of memory that it has. Is my understanding
correct ?
No. What you wrote is applicable to Perl configured with mymalloc.
Perl's compiled with system malloc() will behave differently.
Also, what is the size of the chunk of the memory that perl allocates
at one time. Is it variable ?
This is kinda documented somewhere. About 10 years ago, mymalloc
default was to start with about 48K, then increase in >= 3% increments.
Configurable at compile time.
Hope this helps,
Ilya
.
- References:
- Perl memory manager
- From: Nishant
- Perl memory manager
- Prev by Date: Re: calling perl from html page
- Next by Date: Re: Perl - no longer open source and facing extinction
- Previous by thread: Re: Perl memory manager
- Next by thread: problem when submitting a string through a form
- Index(es):
Relevant Pages
|