public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/12463] New: Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled @ 2011-02-04 1:46 pasky at suse dot cz 2011-02-04 1:48 ` [Bug libc/12463] " pasky at suse dot cz ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: pasky at suse dot cz @ 2011-02-04 1:46 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=12463 Summary: Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled Product: glibc Version: 2.13 Status: NEW Severity: minor Priority: P2 Component: libc AssignedTo: drepper.fsp@gmail.com ReportedBy: pasky@suse.cz Created attachment 5226 --> http://sourceware.org/bugzilla/attachment.cgi?id=5226 proposed patch With the new PER_THREAD compile-time option, the allocator also offers a way to limit the total number of arenas using MALLOC_ARENA_MAX environment variable or mallopt(M_ARENA_MAX). In principle, this feature is not tied to the PER_THREAD option. The attached patch makes it possible to use it even with the default compilation settings. One motivation to limit the number of arenas may be libhugetlbfs users that rely on its __morecore hook providing hugetlbfs-backed memory for the allocator - this can work only with a single arena and multi-threaded programs wishing to use this feature need a way to limit the allocator to a single arena. Another motivation is avoiding pathological behavior in extremely thread-intensive applications. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/12463] Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled 2011-02-04 1:46 [Bug libc/12463] New: Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled pasky at suse dot cz @ 2011-02-04 1:48 ` pasky at suse dot cz 2011-05-29 23:18 ` drepper.fsp at gmail dot com 2014-06-27 13:52 ` fweimer at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: pasky at suse dot cz @ 2011-02-04 1:48 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=12463 Petr Baudis <pasky at suse dot cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #5226|0 |1 is patch| | -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/12463] Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled 2011-02-04 1:46 [Bug libc/12463] New: Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled pasky at suse dot cz 2011-02-04 1:48 ` [Bug libc/12463] " pasky at suse dot cz @ 2011-05-29 23:18 ` drepper.fsp at gmail dot com 2014-06-27 13:52 ` fweimer at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: drepper.fsp at gmail dot com @ 2011-05-29 23:18 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=12463 Ulrich Drepper <drepper.fsp at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-05-29 23:18:36 UTC --- If anything the !PER_THREAD option will go away. Configurability is bad. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/12463] Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled 2011-02-04 1:46 [Bug libc/12463] New: Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled pasky at suse dot cz 2011-02-04 1:48 ` [Bug libc/12463] " pasky at suse dot cz 2011-05-29 23:18 ` drepper.fsp at gmail dot com @ 2014-06-27 13:52 ` fweimer at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: fweimer at redhat dot com @ 2014-06-27 13:52 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=12463 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-27 13:52 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-02-04 1:46 [Bug libc/12463] New: Allow M_ARENA_MAX / MALLOC_ARENA_MAX limit even with PER_THREAD disabled pasky at suse dot cz 2011-02-04 1:48 ` [Bug libc/12463] " pasky at suse dot cz 2011-05-29 23:18 ` drepper.fsp at gmail dot com 2014-06-27 13:52 ` fweimer at redhat 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).