public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11770] New: Per thread memory allocator uses too much address space
@ 2010-06-30 15:51 nauch at sybase dot com
  2010-06-30 16:54 ` [Bug libc/11770] " drepper at redhat dot com
  2010-06-30 18:06 ` nauch at sybase dot com
  0 siblings, 2 replies; 3+ messages in thread
From: nauch at sybase dot com @ 2010-06-30 15:51 UTC (permalink / raw)
  To: glibc-bugs

The first allocation made on a thread calls into _int_new_arena which in turn 
calls new_heap which in turn reserves address space for the thread heap using 
mmap. On 64-bit platforms, the default size of this heap (as set by 
HEAP_MAX_SIZE) is 64mb. When many threads are created the amount of address 
space used by the process grows quickly.

Normally this is not a problem, but when the process is run with a restricted 
address space (via ulimit -v) the limit gets hit sooner than seems reasonable. 
Some distributions (SuSE) are known to set a default address space limit to 80% 
of physical ram + swap. 

On 32-bit platforms the default value of HEAP_MAX_SIZE is 1mb because the 
available address space is limited to 32-bit addressing. Perhaps a smaller value 
of HEAP_MAX_SIZE should also be used if the address space of the process is 
limited by resource limits.

-- 
           Summary: Per thread memory allocator uses too much address space
           Product: glibc
           Version: 2.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: nauch at sybase dot com
                CC: glibc-bugs at sources dot redhat dot com


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

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/11770] Per thread memory allocator uses too much address space
  2010-06-30 15:51 [Bug libc/11770] New: Per thread memory allocator uses too much address space nauch at sybase dot com
@ 2010-06-30 16:54 ` drepper at redhat dot com
  2010-06-30 18:06 ` nauch at sybase dot com
  1 sibling, 0 replies; 3+ messages in thread
From: drepper at redhat dot com @ 2010-06-30 16:54 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2010-06-30 16:54 -------
This is why there are configurables.  Use them.  There is not one allocator to
match everones needs.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX


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

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug libc/11770] Per thread memory allocator uses too much address space
  2010-06-30 15:51 [Bug libc/11770] New: Per thread memory allocator uses too much address space nauch at sybase dot com
  2010-06-30 16:54 ` [Bug libc/11770] " drepper at redhat dot com
@ 2010-06-30 18:06 ` nauch at sybase dot com
  1 sibling, 0 replies; 3+ messages in thread
From: nauch at sybase dot com @ 2010-06-30 18:06 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From nauch at sybase dot com  2010-06-30 18:06 -------
Which configurables are available for modification? Just the 'ulimit -v' values, 
or are there hooks into glibc to change the allocator behavior?

-- 


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

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-06-30 18:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-30 15:51 [Bug libc/11770] New: Per thread memory allocator uses too much address space nauch at sybase dot com
2010-06-30 16:54 ` [Bug libc/11770] " drepper at redhat dot com
2010-06-30 18:06 ` nauch at sybase dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).