Why my application with large number of shared libraries loads slow ?
Issue
- Why my application with large number of shared libraries loads slow ?
- Application relies on
dlopen(name, RTLD_LAZY|RTLD_GLOBAL);
on a large amount of shared libraries. - Before glibc 2.12 it was average 10 times faster to load.
- Is upstream glibc RFE Improve performance of dynamic loader for deeply nested DSO dependencies being tracked in RHEL ?
- slow
stat()
andopenat()
syscalls in rhel8 when compared with rhel7
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
glibc
(GNU C library)dlopen()
library function call from Dynamic Linking Librarylibdl
to open shared libraries
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.