Re: PHP4: php_module holds memory to long !

From: Date: Wed, 10 Jan 2001 19:23:43 +0000
Subject: Re: PHP4: php_module holds memory to long !
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-43716@lists.php.net to get a copy of this message
SS>> Thanks for the correction! I have never seen that in action SS>> though. Usually, the C library will keep freed memory in SS>> free lists and does not decrease the size of the data SS>> segment using sbrk. Actually, from glibc source there's a hook that is supposed to do this in some circumstances. Never could actually make it work in real life. Also, IIRC glibc on Linux allocates really large (8k+? 16k+?) blocks as mmap's of /dev/zero and those are really given back to system, since on free they are just munmap'ed. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115

« previous php.dev (#43716) next »