Operating System - Linux
1754014 Members
7485 Online
108811 Solutions
New Discussion юеВ

Slow execute RHEL5.4's malloc & free

 
greyfox
Occasional Advisor

Slow execute RHEL5.4's malloc & free

Slow execution RHEL5.4's malloc&free

When malloc & free executing in cyclic,
RHEL5.4 is slower (about 40times) than
RHEL4.7.

I guess malloc(glibc) thechnical enhance on RHEL5.4, so 2 environmental variables set,
but still slow..

MALLOC_ARENA_MAX=32
MALLOC_PER_THREAD=1

Anyone has any ideas what we need to faster?

Thanks

greyfox
4 REPLIES 4
greyfox
Occasional Advisor

Re: Slow execute RHEL5.4's malloc & free

miss type: thechnical -> techinical
greyfox
Occasional Advisor

Re: Slow execute RHEL5.4's malloc & free

I apologize for the strike mistake of two times. Correctness is "technical".
dirk dierickx
Honored Contributor

Re: Slow execute RHEL5.4's malloc & free

that is an interesting find, doesn't show in normal usage though that malloc/free is 40x slower and it normally should because those calls are made a lot.

report this to redhat, i'm sure they'll be interested in hearing about it.
greyfox
Occasional Advisor

Re: Slow execute RHEL5.4's malloc & free

Thanks for your reply, Dierickx.

Today, I tested after install glibc-utils package as listed in bugzilla.
Though RHEL4.7AS is 70sec, RHEL5.4S is still 1,050sec(NOT enough).

As you said, I request it from the support of RedHat.

The result develops here.

Thanks

greyfox