LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-29-2005, 02:25 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Will more shared libraries slow down my system?


This probably gives me away as a total beginner, but here's to learning:

I decided to install my programs from source (./configure;make;make install) rather than the tgz packages, and wonder if I should somehow try to limit the number of shared libraries installed on my system to avoid slowing it down?
The other distributions (ie suse) comes with loads and loads of libraries, but are also dead slow in both booting and day-to-day operation. I prefer slackware due to it's speed and stability and don't want to mess that up.

ldconfig runs when the system is booting, and takes a while, and I notice from Pat's blogs/thoughts that he's conscious to keep the number of libraries low.

How's the tradeoff between using the apps I really like on Slackware, and bogging it down with loads of libraries? Or am I completely lost besides the point as dynamic libraries are just that - dynamic, and thus loaded on as-needed base only?

(The app in question this time is amaroK as I prefer over juK, which wants musicbrainz libraries and libvisual etc etc)

Thanks for your insight!

-Y1
 
Old 03-29-2005, 02:29 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
I've never worried too much about shared libs, or noticed any slowdown whatsoever. If you wanted to you could compile everything static, but really if you're that worried about it I hope you are not a gnome user

edit: note that if you compile everything static, the binaries sizes will increase ( not a big deal just something to note)

Last edited by __J; 03-29-2005 at 02:31 AM.
 
Old 03-29-2005, 02:31 AM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
This is slighttly off topic, but you should try and use a program called 'checkinstall' which replaces 'make install'

this will add your installed program into pkgtool, so that you can safely upgrade or remove it whenever you want to with ease... (and hence deleting unwanted libraries when doing so ... )
 
Old 03-29-2005, 02:37 AM   #4
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Original Poster
Rep: Reputation: 36
Thanks for the insight on both the shared libraries (which I will no longer worry about) and even more so the hint about checkinstall - good thing I'm still in my experimental vmware box where I can wreac havoc without any real consequences

-Y1
 
Old 03-29-2005, 02:54 AM   #5
chbin
Member
 
Registered: Mar 2005
Distribution: slackware-current
Posts: 379

Rep: Reputation: 31
As long as all the libraries are not loaded into memory it wont make a difference. Really think about it. It exactly the same as having say 1,000 text files on you hard disk as long as I don't load those babies into memory I'm okay. My disk filesystem may take slightly longer to find files but not much.

Say for instance if you load program xyz and it loads 100 libraries then of course you system will slow down. Even if they are not cpu intensive you'll still take a hit because the memory managament system has to keep track of more files in memory.

Some distro's load the strangest things at boot. With the only effect of slowing down you system. You would think that if someone knew enough that they needed the specific program xyz they would load it themselves, right? I just don't get it... what is the advantage of loading 50 services at boot? Some distributions make no sense whatesoever.
 
Old 04-20-2005, 03:01 PM   #6
jake3988
Member
 
Registered: Mar 2005
Location: Ohio
Distribution: Freebsd and Ubuntu
Posts: 69

Rep: Reputation: 17
That's the beauty of freebsd. Only the core daemons start.

That's one of a few reasons why most linux distros turned me away.

Ports, security, and no overstarting of services... you can't ask for much more
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
Problem with shared libraries (uClibc) on small embedded system. Help ! Mike Davies Linux - Software 0 08-12-2005 08:59 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration