View previous topic :: View next topic |
Author |
Message |
fazto n00b
Joined: 17 Jun 2004 Posts: 19 Location: Alphen aan den Rijn, the Netherlands
|
Posted: Tue Jun 22, 2004 6:38 am Post subject: mm-sources 2.6.7 a bit too fast? |
|
|
Hi, I just upgraded from mm-sources-2.6.7-rc3-mm2 to mm-sources-2.6.7-mm1. I did a "make oldconfig" and build & installed the new kernel & modules. I rebooted and was pleasantly surprises by the performance boost . I have no idea what has changed since rc3, but my notebook feels a _lot_ faster.
There is a problem however. Everything is faster, including the wait-time after a key is pressed to go into repeat-mode. So, typing anything in the box becomes a challenge by itself. For instance typing the word "linux" on a commandline in konsole results in "linnnuuxxxx"
So, what has changed? I like the new performance, but how to get rid of the "too short" key repeate timeout? |
|
Back to top |
|
|
int2str Guru
Joined: 29 Sep 2003 Posts: 362
|
Posted: Tue Jun 22, 2004 6:43 am Post subject: |
|
|
It's a known bug. Andew Morton posted two patches to the linux kernel mailing list to fix the problem.
Here:
Code: | diff -puN arch/i386/kernel/mpparse.c~double-clock-speed-fix arch/i386/kernel/mpparse.c
--- 25/arch/i386/kernel/mpparse.c~double-clock-speed-fix 2004-06-20 23:28:16.655299120 -0700
+++ 25-akpm/arch/i386/kernel/mpparse.c 2004-06-20 23:28:20.468719392 -0700
@@ -1017,7 +1017,6 @@ void __init mp_config_acpi_legacy_irqs (
for (idx = 0; idx < mp_irq_entries; idx++)
if (mp_irqs[idx].mpc_srcbus == MP_ISA_BUS &&
- (mp_irqs[idx].mpc_dstapic == ioapic) &&
(mp_irqs[idx].mpc_srcbusirq == i ||
mp_irqs[idx].mpc_dstirq == i))
break;
diff -puN arch/x86_64/kernel/mpparse.c~double-clock-speed-fix arch/x86_64/kernel/mpparse.c
--- 25/arch/x86_64/kernel/mpparse.c~double-clock-speed-fix 2004-06-20 23:28:16.672296536 -0700
+++ 25-akpm/arch/x86_64/kernel/mpparse.c 2004-06-20 23:28:20.469719240 -0700
@@ -861,7 +861,6 @@ void __init mp_config_acpi_legacy_irqs (
for (idx = 0; idx < mp_irq_entries; idx++)
if (mp_irqs[idx].mpc_srcbus == MP_ISA_BUS &&
- (mp_irqs[idx].mpc_dstapic == ioapic) &&
(mp_irqs[idx].mpc_srcbusirq == i ||
mp_irqs[idx].mpc_dstirq == i))
break;
|
and here...
Code: | diff -puN include/linux/kernel.h~abs-fix-fix include/linux/kernel.h
--- 25/include/linux/kernel.h~abs-fix-fix 2004-06-21 01:42:24.283873616 -0700
+++ 25-akpm/include/linux/kernel.h 2004-06-21 01:43:08.150204920 -0700
@@ -55,7 +55,12 @@ void __might_sleep(char *file, int line)
#endif
#define abs(x) ({ \
- typeof(x) __x = (x); \
+ int __x = (x); \
+ (__x < 0) ? -__x : __x; \
+ })
+
+#define labs(x) ({ \
+ long __x = (x); \
(__x < 0) ? -__x : __x; \
})
|
_________________ Adpot an unanswered post today! |
|
Back to top |
|
|
fazto n00b
Joined: 17 Jun 2004 Posts: 19 Location: Alphen aan den Rijn, the Netherlands
|
Posted: Tue Jun 22, 2004 7:14 am Post subject: |
|
|
OK, thanks int2str.
I guess I must wait for mm2 . Will this also remove the really fast feel I have with this kernel, and if so, are there kernel configs to get that re-enabled? |
|
Back to top |
|
|
andyknownasabu Apprentice
Joined: 06 Feb 2003 Posts: 281 Location: Zurich, Switzerland
|
Posted: Tue Jun 22, 2004 8:08 am Post subject: |
|
|
fazto wrote: | OK, thanks int2str.
I guess I must wait for mm2 :( . Will this also remove the really fast feel I have with this kernel, and if so, are there kernel configs to get that re-enabled? |
I experienced exactly the same thing when I booted the new kernel for the first time this morning. I just thought WOW and fastened my seatbelt! ;)
For example all the menues in KDE popup a lot faster and the responsiveness of the whole system is dramatically increased.
Does anyone know what has been changed in kernel 2.6.7-mm1 to result in such an improvement?
I would also like to know, if with -mm2 these are gone?
UPDATE:
After a first successful compile of 2.6.7-mm1 yesterday evening, applying the above patch results in the following error message:
Code: | CC arch/i386/kernel/time.o
In file included from arch/i386/kernel/time.c:59:
include/asm-i386/mach-default/mach_time.h: In Funktion >>mach_set_rtc_mmss<<:
include/asm-i386/mach-default/mach_time.h:51: error: redeclaration of `__x'
include/asm-i386/mach-default/mach_time.h:51: error: `__x' previously declared here
include/asm-i386/mach-default/mach_time.h:51: Warnung: unused variable `__x'
include/asm-i386/mach-default/mach_time.h:55: error: redeclaration of `__x'
include/asm-i386/mach-default/mach_time.h:55: error: `__x' previously declared here
include/asm-i386/mach-default/mach_time.h:55: Warnung: unused variable `__x'
make[1]: *** [arch/i386/kernel/time.o] Fehler 1
make: *** [arch/i386/kernel] Fehler 2 |
|
|
Back to top |
|
|
() l33t
Joined: 25 Nov 2002 Posts: 610
|
Posted: Tue Jun 22, 2004 2:10 pm Post subject: |
|
|
The compile error is obviously the result of an erroneusly applied patch. Ie. the braces around the definition of abs were left out. _________________ to be concerned is good |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Tue Jun 22, 2004 2:25 pm Post subject: |
|
|
i didn't have any problem at all. the kernel works right off the box. but thanks for the hint - the responsiveness of my system increased indeed to a known state (i don't know why but with more recent kernels i always had the feeling that if doing some things simultaneously it began to lag) - but it's all gone now. ah, that feels good! _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick |
|
Back to top |
|
|
elpollodiablo Tux's lil' helper
Joined: 20 Mar 2003 Posts: 141
|
Posted: Tue Jun 22, 2004 4:51 pm Post subject: |
|
|
BlinkEye wrote: | i didn't have any problem at all. the kernel works right off the box. but thanks for the hint - the responsiveness of my system increased indeed to a known state (i don't know why but with more recent kernels i always had the feeling that if doing some things simultaneously it began to lag) - but it's all gone now. ah, that feels good! |
i'm having serious problems with my keyboard.... infact it does not work at all.... have u experinced something like that?
PS: i didn't apply any patch yet... |
|
Back to top |
|
|
lighty14 Tux's lil' helper
Joined: 11 Jan 2004 Posts: 111
|
Posted: Tue Jun 22, 2004 5:01 pm Post subject: |
|
|
Is there a love-sources out using these new mm patches? |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Tue Jun 22, 2004 5:52 pm Post subject: |
|
|
elpollodiablo wrote: | i'm having serious problems with my keyboard.... infact it does not work at all.... have u experinced something like that?
PS: i didn't apply any patch yet... |
nope, i don't have any strange behavour at all and haven't applied any patch neither.
we're talking about this version of mm-sources, aren't we (i'm just asking as they're changing almost daily now - gentoo-dev-sources too):
Code: | * sys-kernel/mm-sources [ Masked ]
Latest version available: 2.6.7-r1 |
besides:
Code: | * sys-kernel/gentoo-dev-sources
Latest version available: 2.6.7-r3
Latest version installed: 2.6.7-r3 |
is out too. maybe you wanna give a try. i'd had them installed - but i love mm-sources _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick |
|
Back to top |
|
|
elpollodiablo Tux's lil' helper
Joined: 20 Mar 2003 Posts: 141
|
Posted: Tue Jun 22, 2004 6:04 pm Post subject: |
|
|
i'm talking about this:
Code: | sys-kernel/mm-sources [ Masked ]
Latest version available: 2.6.7-r1 |
[/code]
no keyboard, my clock is running faster than it should, actually using gentoo-dev-sources.... |
|
Back to top |
|
|
fazto n00b
Joined: 17 Jun 2004 Posts: 19 Location: Alphen aan den Rijn, the Netherlands
|
Posted: Tue Jun 22, 2004 6:07 pm Post subject: |
|
|
Yep, my clock is also running too fast, and I'm on mm-sources 2.6.7-mm1. |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Tue Jun 22, 2004 6:14 pm Post subject: |
|
|
well, it's a really fast kernel
no, i'm sorry you're experiencing problems. i can't help you but wanted to let you know that others don't have this problem. _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick |
|
Back to top |
|
|
sam_i_am Tux's lil' helper
Joined: 19 Sep 2003 Posts: 131
|
Posted: Tue Jun 22, 2004 6:46 pm Post subject: |
|
|
fazto wrote: | Yep, my clock is also running too fast, and I'm on mm-sources 2.6.7-mm1. |
Sammeeee heeereee. EEEvveeeeerything is ffffaaasssttttt I eevveeennnn haaaaaave to ttype fffffffffaaaaaaaasssttttt tto ggget it rrright. AAaas youu cccannnn sssseeee, II don''t haaaaaave it maaassstered yettt.
Sam
[Edit]
Whew, after the patch was applied, everything is back to normal. I was a bit nervous as I couldn't go back to the old kernel (2.6.5-mm4) as X server would lock up with an error about a timer value not being what it expects. It seems to persist even through a power-off.
Last edited by sam_i_am on Tue Jun 22, 2004 7:22 pm; edited 1 time in total |
|
Back to top |
|
|
ank Apprentice
Joined: 06 Aug 2003 Posts: 185 Location: Maribor, Slovenia
|
Posted: Tue Jun 22, 2004 6:59 pm Post subject: |
|
|
Same here. Clock running like every 20s=1min and xmms scroll song names faster than usual. |
|
Back to top |
|
|
searcher Apprentice
Joined: 13 Mar 2003 Posts: 175 Location: NL
|
Posted: Tue Jun 22, 2004 7:32 pm Post subject: |
|
|
Yep, everything is running fast, but compiling and startup times are much faster too! Too bad the clock is messed up, but anything that uses the RTC for it's timing needs (such as mplayer) is oké. Xine messes up big time though.
I wonder if this can be made into a patch and the problems worked out, this is a major increase in speed for me, strangely enough from 2.6.7-rc3-love1.
~searcher _________________ You are unique ... just like everyone else. |
|
Back to top |
|
|
int2str Guru
Joined: 29 Sep 2003 Posts: 362
|
Posted: Tue Jun 22, 2004 10:47 pm Post subject: |
|
|
The patches I posted fix the clock running fast problem as well as they key repeat problem. _________________ Adpot an unanswered post today! |
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Tue Jun 22, 2004 11:02 pm Post subject: |
|
|
How do i get bootsplash? I cant live without it.. Ok i can i just like it.. |
|
Back to top |
|
|
squeegy Guru
Joined: 13 Mar 2004 Posts: 321 Location: Cincinnati, OH
|
|
Back to top |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jun 23, 2004 1:51 pm Post subject: |
|
|
Does that patch make the mm go slower? Cause now it doesnt feel as fast..
[EDIT]Talking about the one for the keyboard[/EDIT] |
|
Back to top |
|
|
huw Apprentice
Joined: 13 May 2002 Posts: 220 Location: UK
|
Posted: Wed Jun 23, 2004 3:03 pm Post subject: |
|
|
hmm
My clock runs too fast as well... Keyboard repeat is fine though.
Vim segfaults too! |
|
Back to top |
|
|
ank Apprentice
Joined: 06 Aug 2003 Posts: 185 Location: Maribor, Slovenia
|
Posted: Wed Jun 23, 2004 3:41 pm Post subject: |
|
|
I couldn't patch kernel.
Here is mpparse.c.rej
***************
*** 1017,1023 ****
for (idx = 0; idx < mp_irq_entries; idx++)
if (mp_irqs[idx].mpc_srcbus == MP_ISA_BUS &&
- (mp_irqs[idx].mpc_dstapic == ioapic) &&
(mp_irqs[idx].mpc_srcbusirq == i ||
mp_irqs[idx].mpc_dstirq == i))
break;
--- 1017,1022 ----
for (idx = 0; idx < mp_irq_entries; idx++)
if (mp_irqs[idx].mpc_srcbus == MP_ISA_BUS &&
(mp_irqs[idx].mpc_srcbusirq == i ||
mp_irqs[idx].mpc_dstirq == i))
break; |
|
Back to top |
|
|
ayuer n00b
Joined: 18 Nov 2003 Posts: 2
|
Posted: Wed Jun 23, 2004 4:14 pm Post subject: |
|
|
searcher wrote: | Yep, everything is running fast, but compiling and startup times are much faster too! Too bad the clock is messed up, but anything that uses the RTC for it's timing needs (such as mplayer) is oké. Xine messes up big time though.
I wonder if this can be made into a patch and the problems worked out, this is a major increase in speed for me, strangely enough from 2.6.7-rc3-love1.
~searcher |
Where could I find the love-sources ebuild, I cann't find anything on steel300's site, if you know, could you post a link, thanks |
|
Back to top |
|
|
luqas Guru
Joined: 02 Jan 2004 Posts: 588 Location: /US/Texas/Beaumont
|
Posted: Wed Jun 23, 2004 4:22 pm Post subject: |
|
|
I don't think the love-sources are ready yet. Anyway goto #love-sources on freenode in IRC or http://www.love-sources.org. |
|
Back to top |
|
|
DZello n00b
Joined: 09 Feb 2003 Posts: 46 Location: Québec, Canada
|
Posted: Wed Jun 23, 2004 5:15 pm Post subject: |
|
|
ank wrote: | I couldn't patch kernel.
Here is mpparse.c.rej
***************
*** 1017,1023 ****
for (idx = 0; idx < mp_irq_entries; idx++)
if (mp_irqs[idx].mpc_srcbus == MP_ISA_BUS &&
- (mp_irqs[idx].mpc_dstapic == ioapic) &&
(mp_irqs[idx].mpc_srcbusirq == i ||
mp_irqs[idx].mpc_dstirq == i))
break;
--- 1017,1022 ----
for (idx = 0; idx < mp_irq_entries; idx++)
if (mp_irqs[idx].mpc_srcbus == MP_ISA_BUS &&
(mp_irqs[idx].mpc_srcbusirq == i ||
mp_irqs[idx].mpc_dstirq == i))
break; |
I have the same problem here. _________________ PC (Gentoo): Athlon 64 @2.5 Ghz, A8V, 1 GB ram, ATI 9600XT, 160 + 250 GB HDD
Laptop (ArchLinux): IBM Thinkpad R40, Intel Centrino 1.4 GHz, 512 MB ram, 40 GB HDD
Kernel: 2.6.19-Beyond2
Linux apostle since 1998 |
|
Back to top |
|
|
Artherio n00b
Joined: 09 Jan 2004 Posts: 65
|
Posted: Wed Jun 23, 2004 6:09 pm Post subject: |
|
|
Sorryy for being a nooob,,, bbut howw ddOOO Ii applllly thhe patch? This is kind of annyoiing. |
|
Back to top |
|
|
|