Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mm-sources 2.6.7 a bit too fast?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fazto
n00b
n00b


Joined: 17 Jun 2004
Posts: 19
Location: Alphen aan den Rijn, the Netherlands

PostPosted: Tue Jun 22, 2004 6:38 am    Post subject: mm-sources 2.6.7 a bit too fast? Reply with quote

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


Joined: 29 Sep 2003
Posts: 362

PostPosted: Tue Jun 22, 2004 6:43 am    Post subject: Reply with quote

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


Joined: 17 Jun 2004
Posts: 19
Location: Alphen aan den Rijn, the Netherlands

PostPosted: Tue Jun 22, 2004 7:14 am    Post subject: Reply with quote

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


Joined: 06 Feb 2003
Posts: 281
Location: Zurich, Switzerland

PostPosted: Tue Jun 22, 2004 8:08 am    Post subject: Reply with quote

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
View user's profile Send private message
()
l33t
l33t


Joined: 25 Nov 2002
Posts: 610

PostPosted: Tue Jun 22, 2004 2:10 pm    Post subject: Reply with quote

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


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Tue Jun 22, 2004 2:25 pm    Post subject: Reply with quote

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


Joined: 20 Mar 2003
Posts: 141

PostPosted: Tue Jun 22, 2004 4:51 pm    Post subject: Reply with quote

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


Joined: 11 Jan 2004
Posts: 111

PostPosted: Tue Jun 22, 2004 5:01 pm    Post subject: Reply with quote

Is there a love-sources out using these new mm patches?
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Tue Jun 22, 2004 5:52 pm    Post subject: Reply with quote

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 :wink:
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
elpollodiablo
Tux's lil' helper
Tux's lil' helper


Joined: 20 Mar 2003
Posts: 141

PostPosted: Tue Jun 22, 2004 6:04 pm    Post subject: Reply with quote

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


Joined: 17 Jun 2004
Posts: 19
Location: Alphen aan den Rijn, the Netherlands

PostPosted: Tue Jun 22, 2004 6:07 pm    Post subject: Reply with quote

Yep, my clock is also running too fast, and I'm on mm-sources 2.6.7-mm1.
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Tue Jun 22, 2004 6:14 pm    Post subject: Reply with quote

well, it's a really fast kernel :lol:
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
View user's profile Send private message
sam_i_am
Tux's lil' helper
Tux's lil' helper


Joined: 19 Sep 2003
Posts: 131

PostPosted: Tue Jun 22, 2004 6:46 pm    Post subject: Reply with quote

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


Joined: 06 Aug 2003
Posts: 185
Location: Maribor, Slovenia

PostPosted: Tue Jun 22, 2004 6:59 pm    Post subject: Reply with quote

Same here. Clock running like every 20s=1min and xmms scroll song names faster than usual.
Back to top
View user's profile Send private message
searcher
Apprentice
Apprentice


Joined: 13 Mar 2003
Posts: 175
Location: NL

PostPosted: Tue Jun 22, 2004 7:32 pm    Post subject: Reply with quote

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


Joined: 29 Sep 2003
Posts: 362

PostPosted: Tue Jun 22, 2004 10:47 pm    Post subject: Reply with quote

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


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Tue Jun 22, 2004 11:02 pm    Post subject: Reply with quote

How do i get bootsplash? I cant live without it.. Ok i can i just like it..
Back to top
View user's profile Send private message
squeegy
Guru
Guru


Joined: 13 Mar 2004
Posts: 321
Location: Cincinnati, OH

PostPosted: Wed Jun 23, 2004 5:15 am    Post subject: Reply with quote

iotc247 wrote:
How do i get bootsplash? I cant live without it.. Ok i can i just like it..


http://www.bootsplash.de/files/bootsplash-3.1.4-2.6.7-mm1.diff

There's the bootsplash patch for mm1.
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jun 23, 2004 1:51 pm    Post subject: Reply with quote

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


Joined: 13 May 2002
Posts: 220
Location: UK

PostPosted: Wed Jun 23, 2004 3:03 pm    Post subject: Reply with quote

hmm

My clock runs too fast as well... Keyboard repeat is fine though.

Vim segfaults too!
Back to top
View user's profile Send private message
ank
Apprentice
Apprentice


Joined: 06 Aug 2003
Posts: 185
Location: Maribor, Slovenia

PostPosted: Wed Jun 23, 2004 3:41 pm    Post subject: Reply with quote

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


Joined: 18 Nov 2003
Posts: 2

PostPosted: Wed Jun 23, 2004 4:14 pm    Post subject: Reply with quote

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


Joined: 02 Jan 2004
Posts: 588
Location: /US/Texas/Beaumont

PostPosted: Wed Jun 23, 2004 4:22 pm    Post subject: Reply with quote

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


Joined: 09 Feb 2003
Posts: 46
Location: Québec, Canada

PostPosted: Wed Jun 23, 2004 5:15 pm    Post subject: Reply with quote

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


Joined: 09 Jan 2004
Posts: 65

PostPosted: Wed Jun 23, 2004 6:09 pm    Post subject: Reply with quote

Sorryy for being a nooob,,, bbut howw ddOOO Ii applllly thhe patch? This is kind of annyoiing.
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
Goto page 1, 2, 3  Next
Page 1 of 3

 
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