LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-06-2006, 03:54 PM   #16
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361

You are right, you don't need to run it all the time, only when something with new libraries have been installed.

But I get where cwwilson is coming from. I would feel better setting something up where I know it will be run, because I would worry that I would forget about it.

But if you are confident in your memory, you can do it manually when it is actually needed.

As for the issue of speeds, it does seem like your Slackware install needs some optimizations. My install of current blows the doors off of Ubuntu, or pretty much any other distro I have run.
 
Old 08-06-2006, 04:00 PM   #17
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Quote:
Originally Posted by MS3FGX
You are right, you don't need to run it all the time, only when something with new libraries have been installed.

But I get where cwwilson is coming from. I would feel better setting something up where I know it will be run, because I would worry that I would forget about it.

But if you are confident in your memory, you can do it manually when it is actually needed.

As for the issue of speeds, it does seem like your Slackware install needs some optimizations. My install of current blows the doors off of Ubuntu, or pretty much any other distro I have run.
Yeah, I can understand the forgetting thing. For me it's just a habit to run it after installing or upgrading, but I suppose it could happen. LOL I usually do a "make install && ldconfig" out of habit.

I agree that Slack runs faster than any other distro I've used on my machines with the possible exceptions of Arch and Gentoo which seemed about the same to me.
 
Old 08-06-2006, 04:00 PM   #18
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
The way my luck goes, if I don't, I'll need to. So I just put it in the shutdown script, where I don't really care how long it takes to turn off.

Another thing you could do is add a '&' to the end of the lines in rc.M that call those two routines. That way, it runs them in the background, while continuing the rest of the boot process.
 
Old 08-06-2006, 04:34 PM   #19
delta function
Member
 
Registered: Jul 2004
Posts: 51

Rep: Reputation: 20
Well all I have to say is that on my slack box every program is operational within 10 seconds or less ( firefox, open office, the gimp, digicam, etc ... )

and when disabling hotlpug ldconfig and fc-cache even boot up ist prettys fast with my box,

perhaps is your startup times are delayd by hardware issues ??
 
Old 08-06-2006, 04:38 PM   #20
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You could do that, but I have the suspicion (this is purely my own speculation though) that the reason Pat didn't background ldconfig is because daemons started from rc.M after the ldconfig line could depend on libraries that ldconfig needs to update (for example, if you rebooted after a system update).

So if say, you background ldconfig, and before it finishes, Samba tries to start up and can't load up it's depenencies, it is going to fail to start.

It seems that if you are going to move it anywhere, the shutdown scripts are the better idea. That way you know that if the libraries were working when the system booted, even if you make any library changes, ldconfig is going to take care of them when you reboot/shutdown to prevent any problems at the next startup.

In fact, now that I think about the actual mechanics of it, I might even do that on my own system.
 
Old 08-06-2006, 07:14 PM   #21
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
That's why I do it that way. The '&' route is 99% safe, tho, but putting it in rc.6 makes sure it runs (and since I only reboot when I need to update the system...)
 
Old 08-07-2006, 12:54 AM   #22
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by masonm
I don't run it on startup or shutdown at all. I do however make a point of running it whenever I install or upgrade software as libs may be added or changed. Otherwise I'm pretty sure it's not necessary to run it every time the machine is booted. Either way, I've never run into a problem doing it that way.
Btw. installpkg from pkgtools runs ldconfig after a package extraction so it's not necessary to run it manually.

Last edited by dunric; 08-07-2006 at 12:56 AM.
 
Old 08-07-2006, 01:55 AM   #23
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by dunric
Btw. installpkg from pkgtools runs ldconfig after a package extraction so it's not necessary to run it manually.
What if you don't use istallpkg or pkgtools? It's a minor point, but I do always run ldconfig in rc.6. That way, I can't forget.

If you rely on tools and memory, eventually, they'll let you down...
 
Old 08-07-2006, 01:37 PM   #24
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Hm, so it does. I never noticed that before.
 
Old 04-19-2007, 01:34 PM   #25
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
Quote:
What I do is move ldconfig in rc.M *before* the call to rc.inet1, and let it run in the background.
this is an old thread, but what's the code to move these startup tasks to the background? do you just stick
Code:
&&
after the existing command in the startup script? i'd really like to background ldconfig and hotplug, since those two by themselves add 30 seconds or so to boot time.
 
Old 04-19-2007, 02:41 PM   #26
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
A single & is what you want. Using && does the opposite of what you want. Backgrounding hotplug may not work for you though, depending on your hardware, unless you explicitly load needed kernel modules elsewhere. Usually, it's the network configuration being called by hotplug which takes so long.
 
Old 04-19-2007, 02:44 PM   #27
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Here's the way I speed up boot time in Slackware (can be up to 2x as fast):

http://www.linuxquestions.org/questi...09#post2672909

Also, use fluxbox ... KDE is way bloated and slow ... much slower than even GNOME.
 
Old 04-19-2007, 03:39 PM   #28
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
ldconfig has been moved up in the init scripts and backgrounded with & in Slackware -current. It makes the boot times considerably faster, and is a safe enough approach so that there are no problems.
 
  


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
linux slow compared to windows? InsaneLampshade Linux - Newbie 11 09-17-2007 06:48 PM
Slow performance as compared to Windows! pburn Mandriva 6 07-05-2006 11:13 AM
slow startup times georgel12 SUSE / openSUSE 8 06-03-2006 06:30 PM
Fedora Core 3 - Slow Program Startup GAVollink Fedora 13 02-08-2005 05:44 PM
Slow startup on SlackWare. Replicated Linux - Software 1 04-15-2003 04:28 AM

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

All times are GMT -5. The time now is 01:43 PM.

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