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/20425] unbalanced and poor utilization of memory in glibc arenas may cause memory bloat and subsequent OOM


https://sourceware.org/bugzilla/show_bug.cgi?id=20425

--- Comment #3 from Sumeet Keswani <sumeet.keswani at hpe dot com> ---
The package contains the following files...

Makefile
pthread_arena.c
pthread_arena.exe
pthread_arena.exe.out
pthread_arena.exex.tcl.xls
glibc-2.12.1.166 (dir)
glibc-2.12.1.192 (dir)

To compile
cc -Wall -g -pthread pthread_arena.c -o pthread_arena.exe


To run, 
set the LD_LIBRARY PATH to the glibc you want and run with

e.g
LD_LIBRARY_PATH=./glibc-2.12.1-192 /pthread_arena.exe -iters 10  -stats
-threads 500 -maxSize 200

This will run the reproducer and write info to the stdout
(pthread_arena.exe.out)

The output generated in pthread_arena.exe.out is tabulated into
pthread_arena.exex.tcl.xls
Here it shows that some arenas get 4 times the median number of allocations and
others get much less.

(In reply to Florian Weimer from comment #2)
> (In reply to Sumeet Keswani from comment #0)
> > Attached is the reproducer that contains the files needed to reproduce the
> > issue...
> 
> The reproducer does not match the included .out file, and it is not clear
> how to reproduce the data you collected.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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