Why my application with large number of shared libraries loads slow ?

Solution Verified - Updated -

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() and openat() 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 Library libdl to open shared libraries

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content