Bug 598498
Summary: | libc allocator in RHEL6: leaks anonymous mmap areas | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Török Edwin <edwin+bugs> | ||||||||||
Component: | glibc | Assignee: | Andreas Schwab <schwab> | ||||||||||
Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-tools-bugs | ||||||||||
Severity: | high | Docs Contact: | |||||||||||
Priority: | low | ||||||||||||
Version: | 6.0 | CC: | fweimer, ladar, notting | ||||||||||
Target Milestone: | rc | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | All | ||||||||||||
OS: | Linux | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2010-06-04 13:05:51 UTC | Type: | --- | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Bug Depends On: | 640286 | ||||||||||||
Bug Blocks: | |||||||||||||
Attachments: |
|
Description
Török Edwin
2010-06-01 14:04:55 UTC
Created attachment 418648 [details]
strace log
./libtool --mode=execute strace -Ff clamd/clamd -c clamd.conf 2>strace_log&
Created attachment 418649 [details]
pmap of clamd on RHEL6
pmap of clamd on RHEL6 after clamdscan completed
Created attachment 418651 [details] pmap of clamd on RHEL5 pmap of clamd on RHEL5: Linux 2.6.18-92.1.13.el5xen x86_64 x86_64 /lib64/libc.so.6 GNU C Library stable release version 2.5, by Roland McGrath et al. Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.1.2 20071124 (Red Hat 4.1.2-41). Compiled on a Linux 2.6.9 system on 2008-04-11. Available extensions: The C stubs add-on version 2.1.2. crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson GNU libio by Per Bothner NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B RT using linux kernel aio Thread-local storage support included. For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>. Created attachment 418652 [details]
dmesg on RHEL6
Note that on Debian unstable with same ulimit setting I do NOT get the out of memory, although libc version is almost the same. $ uname -mrsp Linux 2.6.34-00179-gdebb980 x86_64 unknown $ /lib/libc.so.6 GNU C Library (Debian EGLIBC 2.11.1-1) stable release version 2.11.1, by Roland McGrath et al. Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.4.4. Compiled on a Linux 2.6.32 system on 2010-05-29. Available extensions: crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B For bug reporting instructions, please see: <http://www.debian.org/Bugs/>. Please let me know if you need additional information to debug this problem. Right now this is a showstopper for us on RHEL6 beta. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux major release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Major release. This request is not yet committed for inclusion. These are not leaks but per-thread heaps. (In reply to comment #9) > These are not leaks but per-thread heaps. OK, but that doesn't explain why it uses more memory than on Debian, the libc version is similar. Is it possible to tune/trim the size of these heaps? --enable-experimental-malloc Thanks, I'll see if I can do anything to lower the memory usage of ClamAV under --enable-experimental-malloc. Will the final RHEL6 have that flag enabled? Wrote a testcase and opened #640286, since I don't seem to be able to reopen this bug. |