LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-02-2005, 10:21 PM   #1
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Rep: Reputation: 15
Question How to Optimize Slackware 10.2?


Hey all I'm new to Slackware (10.2) and want to do some "tweaking/optimizing" of my system. I haven't optimized a distro before or played around much. Can somone point me to a good how to guide or something. I'm worried I'll screw something up For instance, I also have Vector Linux installed and did a boot time to the login between the 2 and Vector beat my full install of slack 10.2 by 26sec. I'm not looking to have the fastest thing alive. I just want my slack to be working at it's full potential.

Thanks for any help or advice you may have.

Cheers
 
Old 10-02-2005, 11:58 PM   #2
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
i'll be honest, i can't answer your question. but i hope someone else can because i'd like to see that guide myself
 
Old 10-03-2005, 01:49 AM   #3
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
If you still have Vector Linux installed, it might be interesting to compare the startup scripts in /etc/rc.d to see how Vector speeds up the boot process (and at which cost)

I normally divide quite clearly between bootup optimization and runtime optimization, with the latter being the most important since I hardly ever at all reboot my system.

Some performance tuning I have done (in no particular order), and i encourage others to supplement this list so we might get a full-blown Slacware performance tweaking guide

Boot performance

1. Edit /etc/rc.d/rc.pcmcia and replace PCIC=probe with the uncommented driver for your card. You can find out which card you have by running lsmod or dmesg. My experience is that most use YENTA, but you want to verify this.

2. Experimental make ldconfig run in the background (edit /etc/rc.d/rc.M) by adding & behind /sbin/ldconfig (/sbin/ldconfig &)

Run-time performance

1. Tweaking harddrive with hdparm. If your disk supports it, set your harddisk to 32bit mode rather than 16-bit, and enable multcount. You definitely want to make sure that DMA is enabled (if you support it ofcourse)

hmm - that's all for now - I'd welcome more points to this list as it's not very long yet...

-Y1
 
Old 10-03-2005, 07:51 AM   #4
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for the reply Yalla. That is a very good idea regarding comparing the script in Vector to what Slackware has. Have you ever compilied your kernel for your system. Doing that should help alot, right?

Anyone that has little tips or tricks please post them. Even post what not to do, as I'm sure those of us new to the world of Slack could run into the same problem unless we are on the lookout for it.
 
Old 10-03-2005, 07:59 AM   #5
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Easiest thing to do is disable running of services in /etc/rc.d/ that you don't need. E.g.
Code:
chmod -x /etc/rc.d/rc.pcmcia
Cheers, Leon.
 
Old 10-03-2005, 08:00 AM   #6
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
I certainly recommend recompiling a custom kernel specifically for your equipment. Also make sure you get the right optimizations in, such as preemt.

There's a debate ongoing on what's fastest - using modules or static - I gave up on that discussion long ago and went with static which has served me fine since I know exactly what's needed on my PC. (That's a bold statement, but it took me about 6 months of fine-reading about kernels in general, my system specifically and an equal amount of trial and error to get there)

-Y1
 
Old 10-03-2005, 08:27 AM   #7
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
LJSBrokken,

chmod -x /etc/rc.d/rc.pcmcia

Does the -x remove it from the list or just disable it at startup?

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

Yalla,


What is preemt? Any recommended reads on kernel info? Not on how to compile it as I know there is lots of info on that on these forums.


Thanks
 
Old 10-03-2005, 08:32 AM   #8
weimond
LQ Newbie
 
Registered: Sep 2005
Location: uk
Distribution: slackware 10.2, win xp
Posts: 17

Rep: Reputation: 0
-x makes it not executable
 
Old 10-03-2005, 08:32 AM   #9
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Maybe i'm just seeing things, but the pcmcia tweak really seemed to help. Slackware lags a bit on my computer with KDE, even with the 'eye-candy' close to being turned off, but its not as bad as before.
 
Old 10-03-2005, 08:34 AM   #10
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
I'll risk answering for LJSBrokken as well the chmod -x just makes it non-executable, which means the file is still there, but doesn't run as boot.
Don't do that if you have a PCMCIA card reader in your system (most laptops do) though, as it'll leave your PCMCIA devices unusable

The preempt is a way the scheduler works in the kernel to juggle the different tasks etc.

My only, but strong, recommendation is to set aside a couple of hours, sit down with "make menuconfig" and read through *ALL* the help pages. Then you'll find the schedulers, the filesystems, the disk controllers, the frequencies etc etc, and once you've read it (combined with an output of "lspci -v" to see what hardware you have, you can make a killer-kernel that's super-fast custom made for your system

-Y1
 
Old 10-03-2005, 08:46 AM   #11
zeroz52
Member
 
Registered: Feb 2005
Distribution: Slackware 10.2
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks Yalla for all your info, it is greatly appreciated. I will be giving that a real good read then. I don't need the PCMCIA as I don't have a laptop or any of those devices in my system. I built my system so I know exactly what I have in it so hopely that should help me out some. One thing that seems to take forever when I'm booting 10.2 is the "hotplugging" search at boot-up. Vector has the same but it takes a fraction of the time. How useful is this feature? Any thoughts?

Thanks
 
Old 10-03-2005, 08:47 AM   #12
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 35
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

is that line the make ldconfig start.. . you just need to comment the command line with a # and right other new line with the follow
echo "ldconfig" | at now +5min

before this make "which at" so you can get the full path to the command and write it on the line above (for eg. /usr/sbin/at now +5min)

[ ]īs
 
Old 10-03-2005, 10:02 AM   #13
kornerr
Member
 
Registered: Dec 2004
Location: Russia, Siberia, Kemerovo
Distribution: Slackware
Posts: 893

Rep: Reputation: 35
Slackware Essentials 2 will help you a lot!

Have a good reading.

Last edited by kornerr; 10-03-2005 at 10:04 AM.
 
Old 10-03-2005, 12:43 PM   #14
Janusz11
Member
 
Registered: Aug 2005
Distribution: Zenwalk
Posts: 42

Rep: Reputation: 15
Ah, good thread! Keep it going lads, I'm also very interested in this topic!
 
Old 10-03-2005, 12:53 PM   #15
chess
Member
 
Registered: Mar 2002
Location: 127.0.0.1
Distribution: Slackware and OpenBSD
Posts: 740

Rep: Reputation: 190Reputation: 190
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

is that line the make ldconfig start.. . you just need to comment the command line with a # and right other new line with the follow
echo "ldconfig" | at now +5min

before this make "which at" so you can get the full path to the command and write it on the line above (for eg. /usr/sbin/at now +5min)

[ ]īs
Thanks for this -- I am going to try it when I get home tonight. The ldconfig is the slowest part by far for my boot process as well, so if it can be backgrounded that would be great.

Good thread.
 
  


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

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

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