Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 22 Sep 2022 00:11:22 +0800 (CST)
From: 王志强 <>
Cc: "Quentin Rameau" <>, "Florian Weimer" <>,
Subject: Re:Re:Re: The heap memory performance
 (malloc/free/realloc) is significantly degraded in musl 1.2 (compared to

At 2022-09-21 18:15:02, "王志强" <> wrote:

But glibc profiling (total 29072 samples) is way much lighter, pagefault is the most cost while glibc spend significat time on "free"

pthread_attr_setschedparam?(82.021% 23845/29072)
asm_exc_page_fault(1.657% 395/23845)
_dl_catch_error?(16.714% 4859/29072)__libc_start_main(100.000% 4859/4859)
cfree(58.839% 2859/4859)
main(31.138% 1513/4859)
asm_exc_page_fault(2.115% 32/1513)
pthread_attr_setschedparam?(3.725% 181/4859)
random(2.099% 102/4859)
random_r(1.832% 89/4859)
__libc_malloc(1.420% 69/4859)

update:  glibc spend most of its time within malloc,  82% samples, not the pagefault routine (only 1%), I misread the report in my last mail. 

__libc_malloc?(82.195% 20700/25184)
asm_exc_page_fault(1.589% 329/20700)
_dl_catch_error??(16.717% 4210/25184)__libc_start_main(100.000% 4210/4210)
cfree(56.508% 2379/4210)
main(32.660% 1375/4210)
asm_exc_page_fault(2.327% 32/1375)
__libc_malloc?(4.418% 186/4210)
random(2.375% 100/4210)
random_r(1.805% 76/4210)
__libc_malloc(1.116% 47/4210)

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.