View previous topic :: View next topic |
Author |
Message |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Thu Feb 19, 2004 12:49 pm Post subject: Linux kernel >=2.6.2-rc2 very slow |
|
|
I've got such an impression >=linux-2.6.2-rc2 is very slow on P4 machines with HT support. I've talked to a few people, they claim the same.
System specs:
i875P mainboard with a P4 3.2GHz HT (D1) processor.
emerge info:
Code: | Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.2-rc2-mm1-n1)
=================================================================
System uname: 2.6.2-rc2-mm1-n1 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -fprefetch-loop-arrays -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups directfb dvd encode esd firebird flash foomaticdb gdbm gif gnome gnutls gphoto2 gpm gtk gtk2 gtkhtml imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mozxmlterm mpeg mysql nas ncurses nls nptl nvidia oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline ruby samba scanner sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype x86 xchattext xml xml2 xmms xv zlib" |
I've also tried using noacpi and disabling framebuffer.
Here the .config: [1]
Links:
[1] http://neonik.net/gentoo/.config-2.6.3_rc2-love2
Edit:
1. added a link to the .config file _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
curtis119 Bodhisattva


Joined: 10 Mar 2003 Posts: 2160 Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.
|
Posted: Thu Feb 19, 2004 1:42 pm Post subject: |
|
|
I experienced a slowdown with that kernel as well. I have an athlonXP. I also experienced jittery mouse and a very BIG lag in switching workspaces and X refresh rate. The new 2.6.3-r1seems to have fixed the problems. This has nothing to do with HyperThreading in my case (athlons don't have this feature) but it still points to a general lagginess in that particular kernel. _________________ Gentoo: it's like wiping your ass with silk. |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Thu Feb 19, 2004 2:54 pm Post subject: |
|
|
Humm... What's the reason then? It's damn laggy and just impossible to work on a 2.6.3 kernel, same with 2.6.2 final (2.6.2-rc's are fine). _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Fri Feb 20, 2004 5:12 pm Post subject: |
|
|
gentoo-dev-sources-2.6.3-r1 seems to fix this but it's still pretty slow, I'd say it's vanilla-slow (compared to regular mm-sources) but at least it's usable. _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Fri Feb 20, 2004 8:02 pm Post subject: |
|
|
Even mm-sources-2.6.3-r2 is slower than all previous releases. _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
vificunero Apprentice


Joined: 25 Jul 2003 Posts: 244 Location: Milan Italy EU
|
Posted: Fri Feb 20, 2004 10:05 pm Post subject: |
|
|
Well same problem here: even if with gentoo-2.6.3 things seem a little bit faster. The big problem is Xfree: it needs a lot of cpu resources, more than with other kernels lik 2.4 and 2.6.0. |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Fri Feb 20, 2004 10:18 pm Post subject: |
|
|
Yeah, and somehing for some reason eats my whole RAM and if loaded swap too. _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
AlterEgo Veteran


Joined: 25 Apr 2002 Posts: 1619
|
Posted: Sat Feb 21, 2004 12:04 pm Post subject: |
|
|
Since using 2.6.3-mm, I feel that very specific things have slowed down immensely:
opening and closing files in OpenOffice.org, and all other compression-related activities (tar, gzip, bzip2).
Changing schedulers makes no difference.
I have checked my harddisk perfomance using hdparm, but that seems fine. |
|
Back to top |
|
 |
TinheadNed Guru


Joined: 05 Apr 2003 Posts: 339 Location: Farnborough, UK
|
Posted: Sat Feb 21, 2004 5:21 pm Post subject: |
|
|
I seem to get periods of about 5 seconds when X stops. But the news ticker keeps scrolling and oggs keep playing. It seemed to happen in linux-2.6.3-rc2-mm1 and has hung about ever since, except 2.6.3-mm2 and vanilla segfaulted on start on my desktop due to gameport cockups, and -mm1 refuses to compile on my laptop with a linker error.
I feel jinxed. |
|
Back to top |
|
 |
usingloser Apprentice


Joined: 18 May 2003 Posts: 297 Location: ->Here<-
|
Posted: Mon Feb 23, 2004 6:21 am Post subject: |
|
|
painfully slow..... _________________ gentoo 4tw |
|
Back to top |
|
 |
To Veteran


Joined: 12 Apr 2003 Posts: 1145 Location: Coimbra, Portugal
|
Posted: Mon Feb 23, 2004 9:30 am Post subject: |
|
|
I thought I was the only one
Tó _________________
------------------------------------------------
Linux Gandalf 3.2.35-grsec
Gentoo Base System version 2.2
------------------------------------------------ |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Mon Feb 23, 2004 9:46 am Post subject: |
|
|
Obviously you're not the only one...
If I only knew what's broken there... Any ideas what might cause this noticeable slowdown?
The only one working fine for me is still 2.6.2-rc2-mm1. _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
Steffen Apprentice

Joined: 14 Jul 2002 Posts: 159
|
Posted: Mon Feb 23, 2004 12:31 pm Post subject: |
|
|
Slow for me, too. Whenever I compile something audio skips like hell.
I don't know exactly when it started, but 2.6.2 might be possible. |
|
Back to top |
|
 |
usingloser Apprentice


Joined: 18 May 2003 Posts: 297 Location: ->Here<-
|
Posted: Mon Feb 23, 2004 4:46 pm Post subject: |
|
|
I had to quit using a bloated wm, just to deal with it. Enlightenment isn't so bad, but obviously not a good solution  _________________ gentoo 4tw |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Mon Feb 23, 2004 4:48 pm Post subject: |
|
|
I would appreciate if you post your emerge info so we could find out what's similar on our systems, so we can find the reason for the slowdown. Obviously not everyone's systems are affected. _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
Steffen Apprentice

Joined: 14 Jul 2002 Posts: 159
|
Posted: Mon Feb 23, 2004 6:57 pm Post subject: |
|
|
Code: | cb3 root # emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.3-bk5)
=================================================================
System uname: 2.6.3-bk5 i686 Intel(R) Pentium(R) 4 Family CPU 2.40GHz
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 arts artswrappersuid avi berkdb cdr crypt cups dvd dvdr encode esd foomaticdb gd gdbm gif gpm gtk2 imagemagick imlib java jpeg kde libg++ libwww mad maildir mikmod mng motif mozilla mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline samba scanner sdl slang spell sse ssl svga tcpd truetype videos x86 xml2 xv zlib" |
|
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Mon Feb 23, 2004 8:45 pm Post subject: |
|
|
Well, since it's architecture independent, according to curtis119'sd post, I assume it's an issue of glibc-2.3.3_pre20040207-r0 and/or GCC.
I'll try to recompile with stable GCC and glibc. There's also this post: https://forums.gentoo.org/viewtopic.php?p=892613#892613 _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
Steffen Apprentice

Joined: 14 Jul 2002 Posts: 159
|
Posted: Mon Feb 23, 2004 9:55 pm Post subject: |
|
|
Applied the CFLAGS mentioned in this thread (-pipe -finline-functions -finline-limit=662 -mfpmath=sse), compiled the kernel, rebooted, compiled kdelibs while playing an MP3 and then some kind of IO-Error stopped the kdelibs compilation and a few seconds later my computer freezed and rebooted after another second or so.
Now using the "unoptimized" kernel image again. |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Mon Feb 23, 2004 10:11 pm Post subject: |
|
|
Having some fun with that glibc...
So LoveChild was right on that, Steffen!
By the way, you guys happen to use NPTL'ed glibc instead of LinuxThreads?
I'm confused as for what it might be due to. _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
Steffen Apprentice

Joined: 14 Jul 2002 Posts: 159
|
Posted: Tue Feb 24, 2004 11:09 am Post subject: |
|
|
I'm using NPTL since half a year or so, because it is said to be better / faster. I didn't notice an increase in speed, but didn't encounter any problems, too, so there is no reason to go back to LinuxThreads for me. |
|
Back to top |
|
 |
kwaakie n00b

Joined: 07 Jun 2003 Posts: 18 Location: Malden, Netherlands
|
Posted: Tue Feb 24, 2004 11:41 am Post subject: |
|
|
Steffen wrote: | I'm using NPTL since half a year or so, because it is said to be better / faster. I didn't notice an increase in speed, but didn't encounter any problems, too, so there is no reason to go back to LinuxThreads for me. |
Are you running the glibc-2.3.3_pre version ?
I've also had lots of problems using 2.6.3, also r1,I'm using the gentoo sources. Also using the glibc-2.3.3..maybe that would be the cause of all this. _________________ Come out, come out, wherever you are ! |
|
Back to top |
|
 |
Steffen Apprentice

Joined: 14 Jul 2002 Posts: 159
|
Posted: Tue Feb 24, 2004 4:59 pm Post subject: |
|
|
kwaakie wrote: | Are you running the glibc-2.3.3_pre version ? | Yes. |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Tue Feb 24, 2004 10:12 pm Post subject: |
|
|
kwaakie: can see it in emerge info posted above
Got NPTL'ed system too.
glibc doesn't want to install (stable one). _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
Bague Apprentice

Joined: 09 Feb 2004 Posts: 292
|
Posted: Tue Feb 24, 2004 11:18 pm Post subject: |
|
|
Hmmm, when I first upgraded to 2.6, I had a massive slowdown, but that is because the kernel came with a bunch of intel crap already enabled, and I use an AMDXP. Before I disabled the etra useless stuff (including an extra VIDEO chipset), it would take 5 secs for Password to come up when I typed su. When emerging, it took 5-10 mins to display "calculating dependancies". I disabled a bunch of (but certainly not all) useless things, and now I seem to be close to my correct speed. I was happy when I could type frozen-bubble and have a game fully running in ~10 secs. |
|
Back to top |
|
 |
neonik Guru


Joined: 08 Oct 2003 Posts: 501
|
Posted: Wed Feb 25, 2004 9:46 pm Post subject: |
|
|
Thanks to Con Kolivas for pointing me out that dma might be a cause of that all, we can probably finally resolve issues with 2.6.3 kernel releases. He's absolutely right on that. It's caused by disabled DMA here. Try running hdparm /dev/hda (or which ever HDD you got). If you see using_dma = 0 (off), then make sure to enable it (hdparm -d1 /dev/hda), which I personally can't perform here
Quote: | hdparm -d1 /dev/hdb
/dev/hdb:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma = 0 (off) |
I do have the drive built (as module here). Might only not get loaded, but it wouldn't recognize the ATA bus, would it? _________________ Best regards,
neonik
netshot-0.0.8 - script that takes screenshots, generates their thumbnails and uploads them all! (has not been updated). |
|
Back to top |
|
 |
|