LinuxQuestions.org
Review your favorite Linux distribution.
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 07-09-2003, 01:41 PM   #1
rajorshi
Member
 
Registered: Jun 2003
Location: Calcutta, India
Distribution: Slackware 9.0
Posts: 34

Rep: Reputation: 15
Question what does ldconfig do ?


hi all,
this is quite a newbie question - what exactly does ldconfig do at boot time ? I mean, can I safely turn it off ? I'm asking this because the really zippy booting speed of slack can bew made even faster if I remove the ldconfig part.
Thanks in advance!!
 
Old 07-09-2003, 02:44 PM   #2
Locura
Member
 
Registered: May 2003
Distribution: Ubuntu 6.10 SE, Mac OS 10.4.8
Posts: 370

Rep: Reputation: 30
You wouldn't want to do that. ldconfig rebuilds the searchpath for libraries that you add to your installation, taking it's input from /etc/ld.so.conf.
 
Old 07-09-2003, 03:33 PM   #3
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
man ldconfig


You dont need it, but if you install new programs frequently, you want it to run at boot.


It is always manually runable though.
 
Old 07-09-2003, 08:55 PM   #4
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
ldconfig is one of the most useful things to have on your system. It basically caches libs so that your programs with shared libs don't have to search the filesystem tree everytime they are run. Don't disable this, the wait time at boot is well worth the service it provides.
 
Old 07-09-2003, 09:51 PM   #5
linuxJaver
Member
 
Registered: Jul 2003
Location: Jakartax, ID
Distribution: slack9.1+,9.1,rh9
Posts: 203

Rep: Reputation: 30
U may make the booting process a little bit faster, if u look at /etc/rc.d
Those with the file permission -rwx?????? will be executed during the intit process, sow just whether u need /etc/rc.d/rc.{sshd,sendmaild,httpd,nfsd}.

Just chmod 644 rc.modul-you-don't-need, not only make the booting process faster but also reduse the usage of resources (cpu,ram). All server/demon run in loops, that mean they consume CPU cycles all the time not like application ..
 
Old 07-10-2003, 12:46 PM   #6
rajorshi
Member
 
Registered: Jun 2003
Location: Calcutta, India
Distribution: Slackware 9.0
Posts: 34

Original Poster
Rep: Reputation: 15
thanks for the load of info fellas - guess I'll just leave ldconfig alone
 
Old 09-14-2004, 02:35 PM   #7
hobbified
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Just FYI

This is an old thread, but I figured I'd post this just in case someone finds it on google, like I did, and gets confused by the post at the end.
Running daemons uses some RAM, certainly. But the bit about
Quote:
All server/demon run in loops, that mean they consume CPU cycles all the time not like application ..
is just about entirely wrong; in fact servers spend most of their time waiting on select() and consuming essentially no cycles. Then again, most graphical programs spend most of their time waiting on select() and consuming essentially no cycles, too; it's just a matter of what they're waiting for. Anyway, the point is that daemons that are idle are consuming essentially nothing. The idea of "blocking" on events is as old as UNIX, and one of the great things about it.
 
Old 09-14-2004, 03:29 PM   #8
sorceran
LQ Newbie
 
Registered: Oct 2003
Location: Durango, CO
Distribution: Slackware Current
Posts: 13

Rep: Reputation: 0
Smile

Personally I removed ldconfig from bootup and added it to cron to run at 2am every day. This way I don't have to sit through it at boot but it still runs at a hour I could care less what my system is doing
 
Old 09-14-2004, 04:19 PM   #9
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
I set mine to run every time I shutdown... could care less how long that takes...
 
  


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
What is ldconfig? MicahCarrick Linux - Software 2 10-03-2005 06:31 PM
where is ldconfig ? trutnev Red Hat 3 06-01-2005 12:05 PM
ldconfig diefree Fedora 4 12-11-2004 02:20 AM
Question about ldconfig laiboonh Slackware 26 11-30-2004 03:04 PM
ldconfig gui10 Slackware 3 05-14-2002 08:30 AM

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

All times are GMT -5. The time now is 03:57 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