LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-24-2006, 12:48 PM   #1
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
Debian optimised i686


I tried a lot of distributions and I think Debian is really good, but it is i386 optimized so I recompile the kernel with i686 optimization and now my machine is faster, so I was wondering:

- How faster could be my Debian if it could run i686 optimized packages? It would be noticeably
faster? If it is I could recompile step by step all packages but it will take me really much time
because I have an old laptop and I can't type "apt-build world" in this way I risk to "fry" it.

- Suppose that I could install on the same machine a Debian with kernel and packages optimized i686
and a Gentoo compiled from scratch with medium optimization cause a strong optimization could
destabilize the system; Do you think they perform in the same way and if you don't think so where is
the difference?, anyway I can't install a Gentoo from scratch.

- I tried Arch linux cause it's i686 optimized and I don't have to spend days in compiling.
Do you think Gentoo could be faster than Arch, if so why?

P.S. However I think Debian is really good if only there was a release for i686 it would be sure the best than ever.

Thanks by

deadlinx

Last edited by deadlinx; 02-28-2006 at 10:44 AM.
 
Old 02-24-2006, 01:23 PM   #2
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 364

Rep: Reputation: 33
You will not notice any difference between a i386 and a i686 system, as the difference is typically in milliseconds.

If you want to speed up your PC, the things you need to do is optimize the hard-disk (using hdparm) and prelink the libraries (using prelink).

Last edited by saman007uk; 02-24-2006 at 01:24 PM.
 
Old 02-24-2006, 01:54 PM   #3
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
Ahh! Double post. any way I posted this in your other post but since one of these is bound to get deleted I'll put it here too.

With gentoo you can optimize not just for i686 but for something much more specific like a P4 with mmx, mmx2, sse & sse2 extentions. you won't get any problems aslong as you dont set the optimization above -O2. Sure none of the applications on your computer will run on anything thats not exactly the same but who cares. I notice a substantial speed increase with gentoo over SuSE. A Stage3 install isn't actualy that dificult especialy if you already have a working linux install on the same computer. I could try to talk you through it if you'd like. What is in your computer Hardware wise?
 
Old 02-24-2006, 04:11 PM   #4
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Hi,


sorry johnson_steve, I've posted double for reading experiences of Debian and Arch users.
I've to say your post is the most detailed I received, last question: the comparison you made among SuSE and Gentoo I think compare a SuSE (with a kernel optimised for i686 and packages i386 optimised) and a Gentoo stage 3 but I'm not sure, have I right understood?

Thank you by

deadlinx
 
Old 02-24-2006, 09:35 PM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Usually with modern processors, you really don't notice much difference between optimized packages and unoptimized ones.

It's not worth the trouble compiling everything from source. It becomes a pain after some time.
 
Old 02-24-2006, 09:41 PM   #6
kloss
Member
 
Registered: Nov 2004
Location: France & Germany
Distribution: (Pure) Debian Etch & Sid
Posts: 116

Rep: Reputation: 15
Quote:
Originally Posted by Harishankar
Usually with modern processors, you really don't notice much difference between optimized packages and unoptimized ones.
I agree 100%.
With an optimized kernel you will save, what ? 1 MB RAM ? On modern, powerful computers, spending hours to tweak is just a nonsense.
(However it does help to use lightweigt apps).

++

Last edited by kloss; 02-24-2006 at 09:43 PM.
 
Old 02-25-2006, 05:09 AM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
It was a novelty to compile apps for your own system in the beginning, but the time spent compiling far exceeds the time I spend using Gentoo, so it doesn't make sense that way.

Also the size of the source code download isn't much smaller than the binary: in some cases the source code is actually bigger than downloading binary packages.
 
Old 02-25-2006, 10:35 AM   #8
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Hi,

Surely I don't want to abandon my friend Debian, Sarge has its own partition.
My intention is to improve my experience in using GNU/Linux and I like to try the fastest stable distro that my "hot" laptop allows me to install on another partition.

Tomorrow I'll delete the Arch partition to try Gentoo stage 3 with optimisation level -O2, if there will be no remarkable differences in performance, as I think, I reinstalled Arch or I'll only use Debian, at this moment I don't know.

Sincerely

deadlinx
 
Old 02-25-2006, 11:06 AM   #9
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
Read the post-installation configuration sticky

"I tried lots of distributions and I think Debian is really good, but it is i386 optimized so I recompile the kernel with i686 optimization and now my machine is faster"

All you had to do was:

# apt-get -y install kernel-image-your choice-686

ecco, é pronto!

Read the sticky at the top of the page about the post-installation configuration. In it, you'll find a section written by Gunnix and the page url on how to optimize old slow boxes, (comment all ttys except 2 in /etc/inittab), use a window manager instead of Gnome and KDE, plus other common sense advice. Use light apps such as xfe, xchat, opera, ee, icewm, aterm, fluxbox, etc.
Do a minimal install and only install the packages you need with apt-get.

Howto install Sarge
http://www.linuxquestions.org/linux/..._installer_rc2

IceWM Tips
http://www.linuxquestions.org/linux/...dia/IceWM_Tips

It's a long read but considerably less time than compiling.
A 'df -h' shows i'm using 689 MB of space only, and that includes OOo!

Read, read, read, that's what it's there for.

PD: i use a PII 266 with 128 MB RAM, it flies.

Last edited by macondo; 02-25-2006 at 11:23 AM.
 
Old 02-25-2006, 11:08 AM   #10
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
It was suse striped down initscripts and a home rolled kernel and kde 3.3. The thing I like best about gentoo is not the speed however. I actually find it much simpler to use and maintain (once it's installed). oh and I can't live without portage (seriously I use gentoo portage with OSX Tiger on my iBook). I would also recommend xfce, my desktop has more eyecandy now and only uses like 0.3% cpu. what kind of computer are we talking about? does it have any other OS on it?

Edit:
forgot to mention I usualy compile while I sleep or work but with portage niceness set to 6 I can can have an emerge --update world running while I play vice city.

Last edited by johnson_steve; 02-25-2006 at 11:14 AM.
 
Old 02-26-2006, 05:27 AM   #11
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Hi,

I've read macondo advises me to get a new optimised kernel via apt-get and both macondo and johnson_steve advise me to use a window manager insted of a desktop environment.

About the kernel: I've a kernel optimised i686 yet, I've not obtained it via apt-get because I have to use experimental functions such as the suspend to disk one.

About the W.M. I'm not using a desktop environment because both KDE and Gnome are "heavy" in my opinion anyway if I've to say my opinion I think KDE is 10 steps ahead Gnome.
In effect I never written about my W.M. preferences: I've used Window maker but now I'm using Enlightenment stable.

About johnson_steve's post in the Arch list:

ok I've read it, I'll only post here.
Now I'll print the Gentoo handbook and I'll install it anyway if I'll have a problem (and I think so) I'll post it but I don't want to disturb till I can do on my own.

Thank you,

deadlinx
 
Old 02-26-2006, 08:37 AM   #12
lpd
Member
 
Registered: Nov 2004
Distribution: Debian Unstable
Posts: 77

Rep: Reputation: 15
You might also look into tools like apt-build.
Xfce is another light-weight desktop environment.
 
Old 02-26-2006, 09:56 AM   #13
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
Hi,

lpd advises me to look apt-build,
I've read about apt-build and I'm not sure it is a good idea because it has not a mature code yet (bugzzzz) and because I don't know how does it take me to recompile all packages, in fact recompiling only a part of the system is not so useful and Arch (completely i686 optimised) will always be faster.

On the other hand I could recompile packages in many times because my laptop can't work too much hours (it overheats after 4 hours working - Pentium 4 aboard :-(( ) but in this case I'll spend such time of a Gentoo instation for obtaining a system that has the same performances than Arch but only close to a Gentoo one:

if my laptop "allows me" to spend much time in installing Linux I use Debian "as is" and I install Gentoo in another partition.

Sincerely,

deadlinx

P.S. I want to thank lpd for the post, it was my fault: I haven't cleared my opinion on apt-build yet.
 
Old 02-26-2006, 10:21 AM   #14
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 3,178
Blog Entries: 4

Rep: Reputation: 138Reputation: 138
Just consider whether it's really going to be worth your while building i686 specific packages. I hardly notice any difference between compiling my own specific packages in Gentoo or using prebuilt binaries in Debian.
 
Old 02-26-2006, 10:44 AM   #15
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
Quote:
Originally Posted by deadlinx
...
Now I'll print the Gentoo handbook
...
Your kidding right, if people actualy did that there would be no trees left. I usualy just have it open on virtual console 2 in nano so I can check it while I Install. if you have a desktop you can set it up so it does most of the compiling for the laptop, and gentoo actualy has precompiled packages that you can install instead.
 
  


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
2.6.9-5.EL-hugemem-i686, 2.6.9-5.EL-i686, 2.6.9-5.EL-smp-i686 , Which? arsham Linux - General 2 05-07-2005 11:21 PM
Debian based i686 distro VertX Debian 6 02-27-2005 07:11 AM
Bootstrapping Debian for i686 gamehack Debian 1 08-26-2004 04:45 AM
i686 Debian port tmp123 Debian 1 03-22-2004 06:15 PM
i686 Debian port tmp123 Debian 1 03-22-2004 06:14 PM

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

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