On a similar note, I have a server with 1GB of memory that seems to never release the memory back to system use. The system is AAH 0.9. Dual AMD Athlon. This system does IAX out ot my voip providers and has 2 TDM400 cards in it for connection to my POTS lines. I never have more than 10 calls active at a time. There is no transcoding. It is all uLaw. Does anyone out there have a problem where memory is not released back to the system? Thanks, Wiley -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050513/371431b0/attachment.htm
Wiley Siler wrote:> On a similar note, I have a server with 1GB of memory that seems to > never release the memory back to system use. > The system is AAH 0.9. Dual AMD Athlon. > > This system does IAX out ot my voip providers and has 2 TDM400 cards > in it for connection to my POTS lines. > > I never have more than 10 calls active at a time. There is no > transcoding. It is all uLaw. > > Does anyone out there have a problem where memory is not released back > to the system? >Generally, memory on the heap cannot be "reclaimed" by the system, in the sense that the processes VM Size will go down. Consider this: void *p1, *p2; p1 = malloc(1024*1024*1024); p2 = malloc(1); /* assume p2 > p1 */ free(p1); p1=NULL; /* your program continues for hours or days */ Now, malloc can't "return" p1 to the system; It can only remember that the 1GB of memory is now available for future calls to malloc. However, if you never actually used p1, then the memory was never really used. Or, if you had, it will just end up paged to disk if you never touch it again. -SteveK
Wiley Siler wrote:> On a similar note, I have a server with 1GB of memory that seems to > never release the memory back to system use. >Is it just Linux using it for buffers/caching. My system always shows lots of memory being used.: total used free shared buffers cached Mem: 904752 881060 *23692 * 0 94384 413448 -/+ buffers/cache: 373228 *531524* Swap: 524280 3600 520680 But most of it is being used for buffers/cache. - Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050513/7f1b5ad2/attachment.htm
Forunately I was out sick for several days. Not sure I follow what this means. SI memory getting locked and never released? IF so, is it a problem? If so, is it correctable? Thanks, Wiley -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Steve Kann Sent: Friday, May 13, 2005 2:05 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Other memory stuff Wiley Siler wrote:> On a similar note, I have a server with 1GB of memory that seems to > never release the memory back to system use. > The system is AAH 0.9. Dual AMD Athlon. > > This system does IAX out ot my voip providers and has 2 TDM400 cards > in it for connection to my POTS lines. > > I never have more than 10 calls active at a time. There is no > transcoding. It is all uLaw. > > Does anyone out there have a problem where memory is not released back> to the system? >Generally, memory on the heap cannot be "reclaimed" by the system, in the sense that the processes VM Size will go down. Consider this: void *p1, *p2; p1 = malloc(1024*1024*1024); p2 = malloc(1); /* assume p2 > p1 */ free(p1); p1=NULL; /* your program continues for hours or days */ Now, malloc can't "return" p1 to the system; It can only remember that the 1GB of memory is now available for future calls to malloc. However, if you never actually used p1, then the memory was never really used. Or, if you had, it will just end up paged to disk if you never touch it again. -SteveK _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users