A per-user or per-application ld.so.cache?

Siddhesh Poyarekar sid@reserved-bit.com
Tue Feb 9 04:19:00 GMT 2016


On Mon, Feb 08, 2016 at 10:35:17PM -0500, Carlos O'Donell wrote:
> Not similar enough from a performance perspective.
> 
> If you have 15 paths in LD_LIBRARY_PATH, they each need to be searched
> in order to find the DSOs required in the last path entry. If you had
> a per-user cache it's a single cache lookup and an mmap. There is no
> traversal required of any filesystem if you get a hit in the cache.
> 
> Isn't that much better?
> 
> All of the cache machinery is there, we just don't have a per-user
> cache.

Agreed, it will be better.

Siddhesh



More information about the Libc-alpha mailing list