Slackware program startup times slow compared to ubuntu
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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 ??
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.
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...)
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.