This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/2531] missing call or documentation for malloc_trim() ...


------- Additional Comments From sakovacs at freemail dot hu  2006-04-26 11:35 -------
  
> a) libc returns all memory if malloc_trim is used  
  
I agree. That's what I said too:  
>... if you call malloc_trim(0) right before the usleep() the RSS goes back to   
> less than 1M (this is a simple case, no fregmentation, all memory could be   
> returned to the OS).  
  
b) the kernel frees all memory.  
  
I agree with this as well.  
  
> So, what's the problem?  
  
All I was saying is that either put malloc_trim() should be referenced in the  
malloc/free man page or free() should call it from time to time -- I since  
read that this should be the case. So a simple "see also" entry would help a 
lot for many guys having similar issues.  
  
Cheers,  
Sandor  
  
  

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2531

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]