View previous topic :: View next topic |
Author |
Message |
yuk1to n00b
Joined: 21 Jun 2005 Posts: 34
|
Posted: Sat Aug 06, 2005 1:32 pm Post subject: Optimizing Gentoo for older computers |
|
|
Hi,
I've installed Gentoo on my second laptop for quite some time now, and it runs OK, but it still runs to slow, even for a 400Mhz. I'm running a 2.6.12 kernel and dropped support for almost everything I didn't need. Is there any other way I can optimize the speed of my system? I'm running X with a lightweight window manager. I'm using ext3, maybe changing to ext2 would improve performance? Any suggestions? _________________ Desktops:
2000XP-640MB-GF2 MX-Gentoo-2.6.12
Athlon 1Ghz-256MB-GF2 MX-no OS
Laptops:
3000XP-512MB-ATI R9200 (DRI)-Gentoo-2.6.12
Celeron-400Mhz-64MB-Gentoo-2.6.12
Server:
1800XP-512MB-Mdk http://fenrir.servehttp.com/ |
|
Back to top |
|
|
bitwise Tux's lil' helper
Joined: 20 Apr 2005 Posts: 104 Location: seattle
|
Posted: Sat Aug 06, 2005 1:43 pm Post subject: |
|
|
maybe take a lookt at XDirectFB for an even lighter X solution? I've never tried it myself, but I know there are a few posts on here about it. |
|
Back to top |
|
|
yuk1to n00b
Joined: 21 Jun 2005 Posts: 34
|
Posted: Sat Aug 06, 2005 1:53 pm Post subject: |
|
|
Yes, but doesn't XDirectFB put more stress on the GPU, thus requiring a decent GPU, and I have a 2MB vga card? I'll check it out though, thanks for the tip.
Edit: They do have a driver for my card (neomagic) _________________ Desktops:
2000XP-640MB-GF2 MX-Gentoo-2.6.12
Athlon 1Ghz-256MB-GF2 MX-no OS
Laptops:
3000XP-512MB-ATI R9200 (DRI)-Gentoo-2.6.12
Celeron-400Mhz-64MB-Gentoo-2.6.12
Server:
1800XP-512MB-Mdk http://fenrir.servehttp.com/ |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Sat Aug 06, 2005 2:24 pm Post subject: |
|
|
You could try using the -ck kernel (ck-sources).
What's your make.conf settings (emerge --info)?
Last edited by nxsty on Sat Aug 06, 2005 7:32 pm; edited 1 time in total |
|
Back to top |
|
|
billium Apprentice
Joined: 22 Mar 2003 Posts: 185
|
Posted: Sat Aug 06, 2005 6:57 pm Post subject: |
|
|
I would have thought that increasing the memory from 64MB to at least 128MB would be small (assuming not RamBus) cost for a great increase in performance.
Billy |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
|
Back to top |
|
|
Zarhan Veteran
Joined: 27 Feb 2004 Posts: 1016
|
|
Back to top |
|
|
yuk1to n00b
Joined: 21 Jun 2005 Posts: 34
|
Posted: Sun Aug 07, 2005 9:39 am Post subject: |
|
|
Thanks for the tons of replies
Upgrading the RAM is not an option though, since its not my main computer, and I don't feel like spending more money on it. I'll try all your suggestions and report back with success/problems. Turns out that DMA wasn't working correctly, so that slowed the computer down alot.
emerge --info gives me
Code: |
Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.12-gentoo-CEL i686)
=================================================================
System uname: 2.6.12-gentoo-CEL i686 Celeron (Mendocino)
Gentoo Base System version 1.4.16
dev-lang/python: 2.3.4-r1
sys-apps/sandbox: 1.2.9
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4
sys-devel/binutils: 2.15.92.0.2-r1
sys-devel/libtool: 1.5.10-r4
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aac aalib acpi alsa apm arts avi bash-completion berkdb bitmap-fonts bmp crypt cups emboss encode esd foomaticdb fortran gcj gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jikes jpeg libg++ libwww lirc mad mikmod mmx motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime readline sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
|
Edit: About the RAM: seems like Packard Bell doesn't upgrade this kind of RAM anymore either. _________________ Desktops:
2000XP-640MB-GF2 MX-Gentoo-2.6.12
Athlon 1Ghz-256MB-GF2 MX-no OS
Laptops:
3000XP-512MB-ATI R9200 (DRI)-Gentoo-2.6.12
Celeron-400Mhz-64MB-Gentoo-2.6.12
Server:
1800XP-512MB-Mdk http://fenrir.servehttp.com/ |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Sun Aug 07, 2005 10:59 am Post subject: |
|
|
CFLAGS="-O3 -march=pentium2 -pipe"
-O3 is a really bad choice for such an old celeron. -O3 makes larger binaries so it will cause more hard disk reads and the hard disk is always a bottleneck even on fast computers + it will interfere with swapping, more cache misses because the celeron is low on cache and more memory usage which you don't have much of. I would recomend the following flags for your CPU:
CFLAGS="-Os -march=pentium2 -fomit-frame-pointer -pipe -fno-ident" |
|
Back to top |
|
|
yuk1to n00b
Joined: 21 Jun 2005 Posts: 34
|
Posted: Sun Aug 07, 2005 3:25 pm Post subject: |
|
|
Using the ck-sources and the patches, everything is running like a charm, its like a whole new world, thanks you guys! _________________ Desktops:
2000XP-640MB-GF2 MX-Gentoo-2.6.12
Athlon 1Ghz-256MB-GF2 MX-no OS
Laptops:
3000XP-512MB-ATI R9200 (DRI)-Gentoo-2.6.12
Celeron-400Mhz-64MB-Gentoo-2.6.12
Server:
1800XP-512MB-Mdk http://fenrir.servehttp.com/ |
|
Back to top |
|
|
|