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 #6 from Sumeet Keswani <sumeet.keswani at hpe dot com> ---
Created attachment 9417
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9417&action=edit
Corrected Reproducer with tcl script for post-processing

attaching the corrected tarball....

The package contains the following files...

Makefile
pthread_arena.c
pthread_arena.exe
pthread_arena.exe.out
pthread_arena.exe.out.tcl.xls
malloc_stats.01.tcl
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  > pthread_arena.exe.out


to process the output
tclsh malloc_stats.01.tcl pthread_arena.exe.out > pthread_arena.exe.out.tcl.xls

-- 
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]