Linked by Thom Holwerda on Mon 27th Nov 2006 10:55 UTC, submitted by Jean Claude
Linux French députés' offices will be equipped with a Linux operating system and open source productivity software. There will be 1154 French parliamentary workstations running on an open source OS, with, Firefox and an open source email client.
Thread beginning with comment 186126
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[5]: Things to consider
by sorpigal on Tue 28th Nov 2006 14:57 UTC in reply to "RE[4]: Things to consider"
Member since:

There's an easy way to determine how many shared libraries on your system aren't really shared. Try this simple pipeline:

find /usr/bin/ -type f -perm /a=x -exec ldd {} + | grep -v ^/ | cut -d= -f1 | sort | uniq -c | egrep ' +1 '

This will give you a list of .so files used by exactly one program in /usr/bin/, which is where 90% of all user programs will exist.

find /usr/bin/ -type f -perm /a=x -exec ldd {} + | grep -v ^/ | cut -d= -f1 | sort | uniq -c | egrep ' +1 ' | wc -l

to get the count of how many there are

find /usr/bin/ -type f -perm /a=x | wc -l

to determine how many programs there are in total.

On my system I find 6544 files in /usr/bin/ and only 418 non-shared .so files. That does not seem like "100 shared libs for every program" it seems more like "15 programs for every shared lib".

Reply Parent Score: 4