LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 02-28-2005, 04:55 AM   #1
saurabhp_75
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
Wink optimizing slack


i have an athlonXP with 512MB RAM though i am quite satisfied with slack but the slack packages are built for i486 architecture, i feel i can improve the performance by compiling(for my architecture) the slack packages from the source iso CDs provided at the slack mirrors along with the normal installation ISO CDs. but i don't have any idea how to do it. can anybody help.

thnx in advance

saurabh
 
Old 02-28-2005, 08:34 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
every slack source package, contains a *.SlackBuild script that will automatically compile and pack the source and store it in /tmp. To do that you have to copy the packages in the hd or change the CWD variable, to a directory that is not read-only like the cd.
If you see all the scrips start with:
Code:
#!/bin/sh
# Set initial variables:
CWD=`pwd`
if [ "$TMP" = "" ]; then
  TMP=/tmp
fi
PKG=$TMP/package-reiserfs

VERSION=3.6.17
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}

if [ "$ARCH" = "i386" ]; then
  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
  SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2"
fi
Since you have athlon-xp you may try : -march=athlon-xp -mcpu=athlon-xp
instead of -march=i486 -mcpu=i686, but I doubt you'll see any difference in speed.

Last edited by perfect_circle; 02-28-2005 at 09:43 AM.
 
Old 02-28-2005, 11:27 PM   #3
saurabhp_75
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Original Poster
Rep: Reputation: 0
thnx perfect circle

i want to know why it will not improve the performance? have u tried it?
what if i compile the kernel and glibc for my architecture. i have read somewhere that it might do the trick
 
Old 03-01-2005, 07:26 AM   #4
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Patrick Volkerding says that there is no difference in speed between "-march=i486 -mcpu=i686" and march=i686. Someone told me that in gcc 3.4.x the mcpu option is ignored, but i don't know i still use slack 10 with gcc 3.3.4. Optimization may benefit you in heavy processes that use a lot of floating point arithmetic like multimedia or 3D graphics (if you have a 3D driver for your graphic card the video card process unit should process the graphics). I did optimize mplayer to athlon-xp instead of athlon-4 that the ./configure script found. Also, in slackware most multimedia packages are i686 (xine). I wouldn't go through so much trouble to gain 2 seconds. It will take ages to recompile all i486 packages (it's obvious you don't need that for the noarch packages). Slackware already run a lot faster than most distros. If you have so much spare time, do it, i'm curious to here about the results. There was a thread in the last days about slackwares default optimization. http://www.linuxquestions.org/questi...hreadid=255113

On the other hand they say "If it ain't broke, tweak it till it breaks"

Last edited by perfect_circle; 03-01-2005 at 07:38 AM.
 
  


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
Optimizing SUSE 9.3 ChuckB0612 Linux - Newbie 5 07-21-2005 01:40 PM
optimizing slack (compiling packages from the source ISO disk) saurabhp_75 Slackware - Installation 1 02-28-2005 05:19 AM
optimizing apache alaios Linux - Networking 0 10-16-2004 12:08 PM
Optimizing Network Gilven Linux - Networking 0 08-18-2004 02:52 AM
optimizing to Athlon XP sethgeekx86 Slackware 8 05-20-2004 03:28 PM


All times are GMT -5. The time now is 04:24 AM.

Main Menu
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