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 nptl/18988] pthread wastes memory with mlockall(MCL_FUTURE)


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

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg
         Resolution|---                         |FIXED
           Assignee|unassigned at sourceware dot org   |adhemerval.zanella at linaro dot o
                   |                            |rg
   Target Milestone|---                         |2.26

--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed by 0edbf1230131dfeb03d843d2859e2104456fad80. Using a slight modified
version of the program described in commend #1 with a stack size adjustment set
to an arbitrary value (in this case 1134592) since musl default stack size is
lower to GLIBC one (and thus it issue a PROT_NONE call with a smaller value), I
see on my x86_64 system (4.4.0-71-generic):

$ sudo ./test-musl
memory before threads
MemAvailable:   10762536 kB
memory after threads
MemAvailable:    9627732 kB
$ sudo ./testrun.sh ./test-glibc
memory before threads
MemAvailable:   10761076 kB
memory after threads
MemAvailable:   10656640 kB

GLIBC it now showing a slight better result regarding RSS usage.

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