LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 10-03-2005, 01:54 PM   #16
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15

Keep it coming all, this is great information. Maybe even "Sticky" worthy if we get enough info. Every lil bit helps us Slack n00bs like myself and is probably worthwhile info for even you pros out there.
 
Old 10-03-2005, 01:59 PM   #17
Theta13579
Member
 
Registered: Aug 2005
Location: Milky Way Galaxy
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
Exclamation Re: How to Optimize Slackware 10.2?

I smell a, KERNEL COMPILE!!!!

http://www.kernel.org/

Last edited by Theta13579; 10-03-2005 at 02:04 PM.
 
Old 10-03-2005, 02:04 PM   #18
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
If you're really going for speed a 2.6.x kernel would be a better bet then a 2.4.x kernel. Don't worry, they are very stable now, once you get a config working for your system you can reuse this for every recompile and tweak as necessary for any new features you'd like to add (or old ones to remove). You could also try using some patchsets. I use the nitro patchset, get it here (search for nitro)
 
Old 10-03-2005, 04:31 PM   #19
Vgui
Member
 
Registered: Apr 2005
Location: Canada
Distribution: Slackware
Posts: 496

Rep: Reputation: 31
Good recommendations up above, I really recommend tweaking as much as you can with hdparm. Of course you'll want to track running processes to see if you can shut some down (both for speed, memory, and security reasons).
Another thing I recommend is doing an optimized compile of some software. The pre-built packages from the Slackware site are nice, but most of the time I use them as a last resort. My first idea when installing software is to compile it with correct CHOST, CFLAGS, etc. set. Then use checkinstall to create a package so you can still keep everything organized. I find that compiling a few heavily used components (bash, alsa*, applications, etc.) really helps with speed (even if it is just placebo affect). Slackware is i486 (or was it i386) optimized, whereas 99% of modern computers are i686 based. Look up some gentoo guides or the like on how to set useful flags for your system. The other benefit of compiling is you can remove things you don't need (like alternative languages, desktop integration for a wm you aren't using, etc.).

EDIT: Another thing is to use a fast file system. I personally switched from ext2 to reiserfs3 and it felt a lot faster for read / write.

Last edited by Vgui; 10-03-2005 at 04:33 PM.
 
Old 10-03-2005, 08:18 PM   #20
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 728

Rep: Reputation: 168Reputation: 168
Quote:
Originally posted by maginotjr
one thing that realy makes the boot slowdown is the ldconfig command... this command is something that doesnt need to be started every boot, or at least dont need to be in the boot, can be 5 min later in background where will make no diference in the system perfomance and the system will be already booted...

if im not wrong you will find it on /etc/rc.d/rc.M
...

[ ]�s
...
I tried doing this by editing /etc/rc.d/rc.M as follows:

#Update all the shared library links:
if [ -x /sbin/ldconfig ]; then
echo "Updating shared library links: /sbin/idconfig"
# /sbin/ldconfig
echo "/sbin/ldconfig" | /usr/bin/at now +5min
fi

The changes are in bold. On boot, I got these messages:

...
Updating shared library links: /sbin/ldconfig
warning: commands will be executed using (in order) a) $SHELL b) login shell c) /bin/sh
job 2 at 2005-10-03 20:20
Can't open /var/run/atd.pid to signal atd. No atd running?
...

? What the heck does that mean? The "Warning" line seems ok, but what about the "/var/run/atd.pid"?
 
Old 10-04-2005, 01:03 AM   #21
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
Re: How to Optimize Slackware 10.2?

Quote:
Originally posted by zeroz52
Hey all I'm new to Slackware (10.2) and want to do some "tweaking/optimizing" of my system.
<SNIP>
I'm worried I'll screw something up
Totally different tact than the other replies (though they can all still be used with my idea). If you are running Slackware Dual-boot, change to triple-boot. If Slackware is all that you have, change to dual boot. The other distro to install? Slackware!!! DON'T share anything (partitions) between the two Slackware installs.

Now you are all set. You've got Slackware (1) for your everyday computer. You've got Slackware (2) for your, "Hey, I'm gonna try this crazy tweak/optimization idea out, and if it doesn't work, I'll just re-install and lose nothing" computer.

This is one of the best way to go about tweaking. You can boot between the two for comparisons. You aren't worried about breaking anything, because repairs are only a re-install away. Also, you aren't wondering so much' "Is this REALLY faster, or is it just my imagination?" You have a stock install to compare to.

There are more benefits. Did you break your installation? No need for a Rescue CD. You can boot the working install, and a little bit of mount (and maybe chroot) magic later, you are back to working. Want more benefits?

You can keep one as a "clean" install so that packages built for others are more likely to actually work for them.

You can test out version upgrades without worry.

You can learn kernel compiling with less worry (one of your systems should always be working).

You can test new software versions out without worrying so much ("Hey, wonder if that Xorg CVS is any better on my system")

You aren't afraid to try out BIG changes ("Someone said recompiling glibc for i686 is a good idea," or " whould Slackware run better if I recompiled EVERY package i686, and used 2.6 kernel headers?")

You feel more comfortable removing packages ("Do I really need that bison package")

You aren't worried about not running services ("Can I safely 'chmod -x etc/rc.d/rc.portmap'?")

You have a place to build new packages ("Is this program going to honor 'DESTDIR=' or am I gonna get a mess in my / ?")

So, in summary, the quickest way to learn about tweaking/optimizing Slackware is to have an install that you don't care about. No specific stuff for you, but you will learn much nore quickly if you know that any mistakes can be fixed by re-installing. A side-benefit is that you will learn to install Slackware VERY quickly.
 
Old 10-04-2005, 02:07 AM   #22
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
The first time I installed slack I used the fat system. I now use the reiserfs3 system. It's not even funny how much better it is, though it still makes me laugh when i say that.
 
Old 10-04-2005, 11:30 AM   #23
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for the Reply Shilo! That is exactly what I ended up doing. I have a base install and another base install that I'm going to use to test out ideas ect with. When you say "DON'T share anything (partitions) between the two Slackware installs." Do you mean to have a seperate /swap, /, and /home or just seperate / and /home? Thanks.
 
Old 10-04-2005, 07:42 PM   #24
drumz
Member
 
Registered: Apr 2005
Location: Scottsdale, AZ, USA
Distribution: Slackware
Posts: 188

Rep: Reputation: 33
Swap can be shared because it gets erased on every reboot. It's just virtual memory.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can I optimize this kushalkoolwal Programming 5 10-21-2005 10:05 PM
How to optimize the partitions of a HD dabenavidesd Linux - General 1 09-03-2005 12:40 AM
please optimize this C function ewt3y Programming 10 08-12-2005 06:48 AM
how could I optimize bittorrent? rcerrillo General 0 07-04-2004 07:52 AM
How to fully optimize Slackware? Introx Slackware 4 05-30-2004 05:23 AM


All times are GMT -5. The time now is 04:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration