View previous topic :: View next topic |
Author |
Message |
cootetom n00b
Joined: 24 Mar 2004 Posts: 21
|
Posted: Wed Apr 07, 2004 4:39 pm Post subject: performance |
|
|
Hi, i'm having very poor performance in gentoo. It takes about 25 seconds to start applications such as firefox or thunderbird in KDE.
I have DMA enabled on my dirves and have my chipset support compiled into the kernel.
Quote: |
/dev/hdb:
multcount = 8 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 2482/255/63, sectors = 39876480, start = 0
|
This is what i get from running hdparm -t /dev/hdb
Quote: |
/dev/hdb:
Timing buffered disk reads: 62 MB in 3.09 seconds = 20.06 MB/sec
|
I have nothing to compare it to but this looks slow to me.
I have also heard that the /etc/hosts file will make a difference with performance. My file looks like this.
Quote: |
127.0.0.1 localhost
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
|
Can anyone help me out with this because i'm fed up with having to wait 25+ seconds for apps to load.
Thanks
- Tom
Last edited by cootetom on Thu Apr 08, 2004 4:28 pm; edited 1 time in total |
|
Back to top |
|
|
klarnox Guru
Joined: 28 Jan 2003 Posts: 350 Location: Wisconsin, USA
|
Posted: Wed Apr 07, 2004 9:20 pm Post subject: |
|
|
How about telling us what kind of hardware you're running on, so we have some idea of what sort of performance to expect.
Have you looked at Prelink? That should help speed things up.
You may want to put the system name on the same line as localhost in your /etc/hosts file if you're ever planning to boot without a network connection. |
|
Back to top |
|
|
odessit Apprentice
Joined: 01 Feb 2004 Posts: 180 Location: Current Residency - Server Room - Caution - Frostbite Imminent!
|
Posted: Thu Apr 08, 2004 12:43 am Post subject: |
|
|
also you can safely delete the following lines (unless you are using IPv6)
Code: | # IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts |
|
|
Back to top |
|
|
cootetom n00b
Joined: 24 Mar 2004 Posts: 21
|
Posted: Thu Apr 08, 2004 2:49 pm Post subject: |
|
|
Ok i have the following system
AMD Athlon 1.4Ghz
512MB DDR Ram
64MB nvidia Geforce2 MX graphics
Plenty of hard drive space!!
I am using the gentoo-sources 2.4.25 kernel.
I haven't tried prelink, i'll look into it because i don't know anything about it at the moment. Maybe that'll speed things up!! |
|
Back to top |
|
|
Halcy0n Developer
Joined: 17 Sep 2003 Posts: 1682 Location: Freehold, NJ
|
|
Back to top |
|
|
cootetom n00b
Joined: 24 Mar 2004 Posts: 21
|
Posted: Thu Apr 08, 2004 4:27 pm Post subject: |
|
|
Ok my etc/hosts file now looks like this,
Quote: |
127.0.0.1 coote.unknown_domain coote localhost
# IPV6 versions of localhost and co
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
|
It has made things faster because i can now open firefox in about 10 seconds, but this is still a long time.
I emerged prelink added '-l /usr/share' to the prelink.conf file and ran 'prelink -a --all' but it comes up with a load of different errors of which i don't understand. This is the exact output,
Quote: |
bash-2.05b# prelink -a --all
prelink: /sbin/insmod.static: Using /usr/lib/libc.so.1, not /lib/ld-linux.so.2 a s dynamic linker
prelink: /usr/lib/wine/bin/wmc: Could not parse `/usr/lib/wine/bin/wmc: error while loading shared libraries: libwine_unicode.so.1: cannot open shared object file: No such file or directory'
prelink: /usr/lib/wine/bin/wrc: Could not parse `/usr/lib/wine/bin/wrc: error while loading shared libraries: libwine_unicode.so.1: cannot open shared object file: No such file or directory'
prelink: /usr/lib/wine/bin/wine: Could not parse `/usr/lib/wine/bin/wine: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory'
prelink: /usr/lib/wine/bin/wine-kthread: Could not parse `/usr/lib/wine/bin/wine-kthread: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory'
prelink: /usr/lib/wine/bin/wine-pthread: Could not parse `/usr/lib/wine/bin/wine-pthread: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory'
prelink: /usr/lib/wine/bin/wineclipsrv: Could not parse `/usr/lib/wine/bin/wineclipsrv: error while loading shared libraries: libwine_unicode.so.1: cannot open shared object file: No such file or directory'
prelink: /usr/lib/wine/bin/wineserver: Could not parse `/usr/lib/wine/bin/wineserver: error while loading shared libraries: libwine.so.1: cannot open shared object file: No such file or directory'
prelink: /usr/qt/3/lib/libqt-mt.so.3.3.0 is not present in any config file directories, nor was specified on command line
prelink: /usr/share/j2re1.4.2_04/bin/servertool: Not enough room to add .dynamic entry
prelink: /usr/bin/yuvcorrect_tune: Cannot prelink against non-PIC shared library /usr/lib/liblavfile-1.6.so.
Segmentation fault
|
I'm still thinking it might be my hard drive setup because if you look at my first post those hard drive speeds don't look right. Tell me if i'm wrong?
- Tom |
|
Back to top |
|
|
|