Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Optimizing Gentoo for older computers
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
yuk1to
n00b
n00b


Joined: 21 Jun 2005
Posts: 34

PostPosted: Sat Aug 06, 2005 1:32 pm    Post subject: Optimizing Gentoo for older computers Reply with quote

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
View user's profile Send private message
bitwise
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 104
Location: seattle

PostPosted: Sat Aug 06, 2005 1:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
yuk1to
n00b
n00b


Joined: 21 Jun 2005
Posts: 34

PostPosted: Sat Aug 06, 2005 1:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sat Aug 06, 2005 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
billium
Apprentice
Apprentice


Joined: 22 Mar 2003
Posts: 185

PostPosted: Sat Aug 06, 2005 6:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sat Aug 06, 2005 7:58 pm    Post subject: Reply with quote

Since your laptop is so low on memory it will swap a lot so you could try applying these patches from -mm to your kernel, they should improve swapping performance.

http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13-rc1/2.6.13-rc1-mm1/broken-out/add-sem_is_read-write_locked.patch
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13-rc1/2.6.13-rc1-mm1/broken-out/swaptoken-tuning.patch
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.13-rc1/2.6.13-rc1-mm1/broken-out/swaptoken-tuning-fix.patch
Back to top
View user's profile Send private message
Zarhan
Veteran
Veteran


Joined: 27 Feb 2004
Posts: 1016

PostPosted: Sat Aug 06, 2005 9:09 pm    Post subject: Reply with quote

Not overall performance, but to speedup program startup times, use prelink.

http://www.gentoo.org/doc/en/prelink-howto.xml
Back to top
View user's profile Send private message
yuk1to
n00b
n00b


Joined: 21 Jun 2005
Posts: 34

PostPosted: Sun Aug 07, 2005 9:39 am    Post subject: Reply with quote

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
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sun Aug 07, 2005 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message
yuk1to
n00b
n00b


Joined: 21 Jun 2005
Posts: 34

PostPosted: Sun Aug 07, 2005 3:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum