Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

mm-sources 2.6.7 a bit too fast?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
57 posts
  • 1
  • 2
  • 3
  • Next
Author
Message
fazto
n00b
n00b
User avatar
Posts: 19
Joined: Thu Jun 17, 2004 8:17 pm
Location: Alphen aan den Rijn, the Netherlands

mm-sources 2.6.7 a bit too fast?

  • Quote

Post by fazto » Tue Jun 22, 2004 6:38 am

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?
Top
int2str
Guru
Guru
User avatar
Posts: 362
Joined: Mon Sep 29, 2003 7:45 pm

  • Quote

Post by int2str » Tue Jun 22, 2004 6:43 am

It's a known bug. Andew Morton posted two patches to the linux kernel mailing list to fix the problem.

Here:

Code: Select all

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: Select all

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!
Top
fazto
n00b
n00b
User avatar
Posts: 19
Joined: Thu Jun 17, 2004 8:17 pm
Location: Alphen aan den Rijn, the Netherlands

  • Quote

Post by fazto » Tue Jun 22, 2004 7:14 am

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?
Top
andyknownasabu
Apprentice
Apprentice
User avatar
Posts: 281
Joined: Thu Feb 06, 2003 3:21 pm
Location: Zurich, Switzerland

  • Quote

Post by andyknownasabu » Tue Jun 22, 2004 8:08 am

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: Select all

  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
Top
()
l33t
l33t
Posts: 610
Joined: Mon Nov 25, 2002 4:10 pm

  • Quote

Post by () » Tue Jun 22, 2004 2:10 pm

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
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Tue Jun 22, 2004 2:25 pm

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
Top
elpollodiablo
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 141
Joined: Thu Mar 20, 2003 10:13 am
Contact:
Contact elpollodiablo
Website

  • Quote

Post by elpollodiablo » Tue Jun 22, 2004 4:51 pm

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...
Top
lighty14
Tux's lil' helper
Tux's lil' helper
Posts: 111
Joined: Sun Jan 11, 2004 11:10 pm

  • Quote

Post by lighty14 » Tue Jun 22, 2004 5:01 pm

Is there a love-sources out using these new mm patches?
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Tue Jun 22, 2004 5:52 pm

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: Select all

*  sys-kernel/mm-sources [ Masked ]
      Latest version available: 2.6.7-r1
besides:

Code: Select all

*  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
Top
elpollodiablo
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 141
Joined: Thu Mar 20, 2003 10:13 am
Contact:
Contact elpollodiablo
Website

  • Quote

Post by elpollodiablo » Tue Jun 22, 2004 6:04 pm

i'm talking about this:

Code: Select all

  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....
Top
fazto
n00b
n00b
User avatar
Posts: 19
Joined: Thu Jun 17, 2004 8:17 pm
Location: Alphen aan den Rijn, the Netherlands

  • Quote

Post by fazto » Tue Jun 22, 2004 6:07 pm

Yep, my clock is also running too fast, and I'm on mm-sources 2.6.7-mm1.
Top
BlinkEye
Veteran
Veteran
Posts: 1046
Joined: Tue Oct 21, 2003 7:13 pm
Location: Gentoo Forums

  • Quote

Post by BlinkEye » Tue Jun 22, 2004 6:14 pm

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
Top
sam_i_am
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 131
Joined: Fri Sep 19, 2003 2:22 pm

  • Quote

Post by sam_i_am » Tue Jun 22, 2004 6:46 pm

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.
Top
ank
Apprentice
Apprentice
User avatar
Posts: 185
Joined: Wed Aug 06, 2003 12:14 pm
Location: Maribor, Slovenia

  • Quote

Post by ank » Tue Jun 22, 2004 6:59 pm

Same here. Clock running like every 20s=1min and xmms scroll song names faster than usual.
Top
searcher
Apprentice
Apprentice
User avatar
Posts: 175
Joined: Thu Mar 13, 2003 9:55 pm
Location: NL

  • Quote

Post by searcher » Tue Jun 22, 2004 7:32 pm

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.
Top
int2str
Guru
Guru
User avatar
Posts: 362
Joined: Mon Sep 29, 2003 7:45 pm

  • Quote

Post by int2str » Tue Jun 22, 2004 10:47 pm

The patches I posted fix the clock running fast problem as well as they key repeat problem.
Adpot an unanswered post today!
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

  • Quote

Post by nesl247 » Tue Jun 22, 2004 11:02 pm

How do i get bootsplash? I cant live without it.. Ok i can i just like it..
Top
squeegy
Guru
Guru
User avatar
Posts: 321
Joined: Sat Mar 13, 2004 11:46 pm
Location: Cincinnati, OH

  • Quote

Post by squeegy » Wed Jun 23, 2004 5:15 am

iotc247 wrote:How do i get bootsplash? I cant live without it.. Ok i can i just like it..
http://www.bootsplash.de/files/bootspla ... 7-mm1.diff

There's the bootsplash patch for mm1.
Top
nesl247
Veteran
Veteran
Posts: 1614
Joined: Tue Jun 15, 2004 7:21 pm
Location: Florida
Contact:
Contact nesl247
Website

  • Quote

Post by nesl247 » Wed Jun 23, 2004 1:51 pm

Does that patch make the mm go slower? Cause now it doesnt feel as fast..

[EDIT]Talking about the one for the keyboard[/EDIT]
Top
huw
Apprentice
Apprentice
User avatar
Posts: 220
Joined: Mon May 13, 2002 10:18 am
Location: UK

  • Quote

Post by huw » Wed Jun 23, 2004 3:03 pm

hmm

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

Vim segfaults too!
Top
ank
Apprentice
Apprentice
User avatar
Posts: 185
Joined: Wed Aug 06, 2003 12:14 pm
Location: Maribor, Slovenia

  • Quote

Post by ank » Wed Jun 23, 2004 3:41 pm

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;
Top
ayuer
n00b
n00b
Posts: 2
Joined: Tue Nov 18, 2003 12:29 pm

  • Quote

Post by ayuer » Wed Jun 23, 2004 4:14 pm

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
Top
luqas
Guru
Guru
User avatar
Posts: 588
Joined: Fri Jan 02, 2004 12:15 am
Location: /US/Texas/Beaumont

  • Quote

Post by luqas » Wed Jun 23, 2004 4:22 pm

I don't think the love-sources are ready yet. Anyway goto #love-sources on freenode in IRC or http://www.love-sources.org.
Top
DZello
n00b
n00b
User avatar
Posts: 46
Joined: Sun Feb 09, 2003 11:30 pm
Location: Québec, Canada
Contact:
Contact DZello
Website

  • Quote

Post by DZello » Wed Jun 23, 2004 5:15 pm

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
Top
Artherio
n00b
n00b
User avatar
Posts: 65
Joined: Fri Jan 09, 2004 4:33 am
Contact:
Contact Artherio
Website

  • Quote

Post by Artherio » Wed Jun 23, 2004 6:09 pm

Sorryy for being a nooob,,, bbut howw ddOOO Ii applllly thhe patch? This is kind of annyoiing.
Top
Post Reply

57 posts
  • 1
  • 2
  • 3
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic