Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2011 21:40:42 -0500
From:      Mark Saad <nonesuch@longcount.org>
To:        freebsd-hackers@freebsd.org
Subject:   rtld optimizations
Message-ID:  <AANLkTikwHteyqMfMpy_B-AxQ5ZQ_Z3RKhkNpGN23fXtX@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello Hackers

The NetBSD folks have a nice improvement with the rtld-elf subsystem,
known as "Negative Symbol Cache" .

http://blog.netbsd.org/tnf/entry/netbsd_runtime_linker_gains_negative

 Roy Marples roy@ has a simple write up of the change.

I took the basic idea from FreeBSD, but improved the performance
drastically. Basically, the huge win is by caching both breadth and
depth of the needed/weak symbol lookup.
Easiest to think of a,b,c,d as a matrix and FreeBSD just cache a row
where we cache both rows and columns.

Has anyone looked into porting the changes back to FreeBSD ?  The
improvement on load time for things like firefox, openoffice, and java
is huge on NetBSD. It looks like this change could improve load times
on FreeBSD in the same ways.


-- 
mark saad | nonesuch@longcount.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikwHteyqMfMpy_B-AxQ5ZQ_Z3RKhkNpGN23fXtX>