View previous topic :: View next topic |
Author |
Message |
borkdox Tux's lil' helper
Joined: 16 Jan 2004 Posts: 123
|
Posted: Mon Mar 21, 2005 2:01 am Post subject: Load times and sloppy system |
|
|
For example, in windows firefox takes about 5-6 seconds to start, in gentoo it takes about 10-11 seconds, the double... It is like that with many apps, loadtimes are long.
If I am doign an emerge sync, or emerging anything with is very high HD activity everything becomes sloppy, programs become unresponsive, etc...
Any one else expericing this? should I get 1gig of ram (I currently have 512)?
Code: |
gentux64 ~ # uname -a
Linux gentux64 2.6.11-love2 #6 Sat Mar 12 14:02:09 EST 2005 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux
|
Code: |
gentux64 ~ # cat /sys/block/hda/queue/scheduler
noop anticipatory [deadline] cfq
|
Code: |
gentux64 ~ # emerge --info
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11-love2 x86_64)
=================================================================
System uname: 2.6.11-love2 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.10
Python: dev-lang/python-2.3.5 [2.3.5 (#1, Mar 16 2005, 23:41:56)]
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python: 2.3.5
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils: 2.15.92.0.2-r1, 2.15.92.0.2-r6
sys-devel/libtool: 1.5.14
virtual/os-headers: 2.6.8.1-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.seren.com/gentoo http://gentoo.ccccom.com ftp://gentoo.agsn.ca/ http://gentoo.binarycompass.org ftp://gentoo.mirrored.ca/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl divx4linux dv dvd dvdr dvdread encode fam flac font-server fortran gif gimpprint gphoto2 gpm gstreamer gtk gtk2 hal imagemagick imlib ipv6 java joystick jp2 jpeg junit lzw lzw-tiff mad mjpeg mozilla mp3 mpeg ncurses nls nptl nptlonly nvidia oggvorbis opengl oss pam perl png python qt readline samba scanner sdl ssl svg tcltk tcpd theora tiff truetype truetype-fonts type1-fonts usb userlocales v4l v4l2 wifi xml xml2 xpm xprint xrandr xv xvid zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
|
Code: |
gentux64 ~ # cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 31
model name : AMD Athlon(tm) 64 Processor 3000+
stepping : 0
cpu MHz : 2250.011
cache size : 512 KB
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 pni syscall nx mmxext fxsr_opt lm 3dnowext 3dnow lahf_lm
bogomips : 4423.68
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp
|
Code: |
gentux64 ~ # hdparm -Tt /dev/hda
/dev/hda:
Timing cached reads: 2244 MB in 2.00 seconds = 1120.49 MB/sec
Timing buffered disk reads: 162 MB in 3.02 seconds = 53.60 MB/sec
|
|
|
Back to top |
|
|
hvengel Guru
Joined: 19 Sep 2004 Posts: 515
|
Posted: Mon Mar 21, 2005 3:18 am Post subject: |
|
|
On my 3500 Winchester machine Firefox opens in about 3 seconds in Windows and a slightly faster in Linux. I do not see any of the unresponsiveness that you are reporting. I do however have more memory than you do with 1G. I can emerge a package and then do other things on my desktop and everything is nearly as fast as when not emerging.
So perhaps you need more memory or perhaps there is a config problem with your machine. I do have my kernel configured with preemptable kernel turned on. This may help and is worth trying. You might also look into tuning your hdparms as it sounds like you diskdrives are causing some kind of bottle neck. |
|
Back to top |
|
|
borkdox Tux's lil' helper
Joined: 16 Jan 2004 Posts: 123
|
Posted: Mon Mar 21, 2005 4:18 am Post subject: |
|
|
I confirm something is wrong. I installed ubuntu and firefox starts in like 4 seconds, so now I know that there is something wrong what this gentoo install.
I was using LDFLAGS and more CFLAGS, but the other day I decided to ditch them and the system felt a little faster, so I think I am going to keep the simple CFLAGS and no LDFLAGS for now....
Is my HD-Parm result low? it looked fine to me, what do you think? what are some popular hdparm tweaking options?
What else can I do?
Clean my USE-flags?
Remove all the unused packages (is there any tool that can help me do this, I am using xfce4 now so I dont want any gnome desktop libs...)?
please give me some ideas... I really want to experience gentoo's performance... |
|
Back to top |
|
|
nudd n00b
Joined: 16 Feb 2005 Posts: 18
|
Posted: Mon Mar 21, 2005 4:53 am Post subject: |
|
|
because amd64 has twice as many registers in 64 bit mode, it is said to be faster with register optimisation flags:
-fweb -frename-registers
but be warned that it may break things in your system and make it impossible to debug! (These two flags are included in -O3 so no point if you are already using -O3).
The hdparm -t seems alright (that's what I get from my Hard Drives and Firefox loads in around 4 seconds the first time for me too). |
|
Back to top |
|
|
borkdox Tux's lil' helper
Joined: 16 Jan 2004 Posts: 123
|
Posted: Mon Mar 21, 2005 4:58 am Post subject: |
|
|
nudd wrote: | because amd64 has twice as many registers in 64 bit mode, it is said to be faster with register optimisation flags:
-fweb -frename-registers
but be warned that it may break things in your system and make it impossible to debug! (These two flags are included in -O3 so no point if you are already using -O3).
The hdparm -t seems alright (that's what I get from my Hard Drives and Firefox loads in around 4 seconds the first time for me too). |
could you please post me your emerge --info?? |
|
Back to top |
|
|
whig l33t
Joined: 27 Nov 2004 Posts: 973 Location: New Zealand
|
Posted: Mon Mar 21, 2005 4:59 am Post subject: |
|
|
This file in the kernel source tree would be of use: Documentation/ide.txt |
|
Back to top |
|
|
hvengel Guru
Joined: 19 Sep 2004 Posts: 515
|
Posted: Mon Mar 21, 2005 9:46 pm Post subject: |
|
|
Here is what I am using for hdparms
hda_args=" -d1 -u1 -m16 -c1"
But be warned that the best parms may be different on your system and these may also make you system unstable. So be very careful when you start making changes to your hdparms. If you google on hdparm you will find lots of info on this and also some howto's on how to test this. Depending on your hardware and what the default values are this can make a big difference. I found that my disk drive performance increased about 25% after changing this from the default values. I just looked at you original post and your disk drive numbers were not too bad. I am seeing about 80% higher for the Timing cached reads (1909 to 2087 MB/sec depending on the disk drive) and slightly slower Timing buffered disk reads at around 40 MB/sec.
As to the make.conf settings I am using CFLAGS="-march=k8 -O2 -pipe". So these are basicly the default settings. I am not sure if -march=athlon64 is the same as -march=k8. Might be worth checking.
You might also consider using prelink. This will help program load times. But I would do this until the underlaying problems have been resolved.
Also I notice that you are using ACCEPT_KEYWORDS="amd64 ~amd64" as global defaults. This means that you will be running lots of masked software. While much of the masked software may not be a problem some of it may not be very stable and this may be the source of your problem. Since your system is having problems perhaps you should change this to just include stable software (amd64 only) and remerge with the new values. This will likely downgrade some files. But it may also fix your performance problems. I am more selective in my use of ~amd64 and only use it for specific packages rather than globaly. I think this should be the first thing you try. |
|
Back to top |
|
|
borkdox Tux's lil' helper
Joined: 16 Jan 2004 Posts: 123
|
Posted: Fri Mar 25, 2005 5:00 pm Post subject: |
|
|
I just reinstalled the whole system, and firefox starts clean in less than 4 seconds. Everything is smooth and tighty. My CFLAGS are very conservative (-march=k8 -O2 -pipe), but everything is good so far, I hope it stays that way.... |
|
Back to top |
|
|
|