Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Kernels 2.6.35+ very slow on an i7.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Mon Sep 06, 2010 10:39 pm    Post subject: Reply with quote

stuNNed2 wrote:
if you don't mind me asking what frontend app were you using for the cpu frequency scaling?


I have not used a frontend application in 3 to 4 years. Just set the kernel governor to ondemand and let the kernel handle everything.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Mon Sep 06, 2010 10:41 pm    Post subject: Reply with quote

zx2c4 wrote:
At least partially... There's still some slowness, but overall it seems improved.

Can someone else try this and report back?


That did not work for me. Also disabling speedstep and c1x in the bios did not work.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
zx2c4
Developer
Developer


Joined: 09 Jun 2005
Posts: 177

PostPosted: Tue Sep 07, 2010 1:02 am    Post subject: Reply with quote

stuNNed2 wrote:
if you don't mind me asking what frontend app were you using for the cpu frequency scaling?

The problem started on boot, before any programs were loaded. Both for performance governer and userspace governer.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Sep 07, 2010 1:06 am    Post subject: Reply with quote

BTW the post at the end of the following thread had links to two posts and a submitted bug upstream for this problem:

https://forums.gentoo.org/viewtopic-t-838842-highlight-.html
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
zx2c4
Developer
Developer


Joined: 09 Jun 2005
Posts: 177

PostPosted: Wed Sep 08, 2010 5:26 pm    Post subject: Reply with quote

Disabling cpufreq in fact did not fix the issue. :-(
Back to top
View user's profile Send private message
optiluca
Guru
Guru


Joined: 16 Jan 2006
Posts: 551
Location: Rivergaro, Italy

PostPosted: Wed Sep 08, 2010 6:38 pm    Post subject: Reply with quote

Hi all. I was suffering the random soft lockups at boot time, and I replaced my kernel with zen sources, which is working just fine. The only obvious changes I made from stock gentoo kernel was to enable tuxonice/BFS/BFQ/SQLB

In any case, find my .config here:

http://pastebin.com/qj8ZBpWb

Hope that works for someone :)
_________________
# "Hmm, sounds like your system froze up."
# "I don't know why. It's about 80 degrees in here!"

http://www.rinkworks.com/stupid/cs_mincing.shtml
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Wed Sep 08, 2010 7:16 pm    Post subject: Reply with quote

optiluca wrote:
Hi all. I was suffering the random soft lockups at boot time, and I replaced my kernel with zen sources, which is working just fine. The only obvious changes I made from stock gentoo kernel was to enable tuxonice/BFS/BFQ/SQLB

In any case, find my .config here:

http://pastebin.com/qj8ZBpWb

Hope that works for someone :)


I changed to the CK sources and it seems alot smoother. Every now and again there is a slight reduced responsiveness (this actually corresponds to a change in a core's freq - conky showing 4cores FTW)
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Fri Sep 10, 2010 12:17 am    Post subject: Reply with quote

I believe with the help of Nix on the following thread I have sloved this:

http://lkml.org/lkml/2010/9/9/541

If I add the following kernel parameter I have no slowness in a ssh session (and no 200+ second boots): clocksource=acpi_pm
Code:
[   25.301748] r8169 0000:08:00.0: eth0: link up
[   25.301758] r8169 0000:08:00.0: eth0: link up
[   25.510863] Bridge firewalling registered
[   25.518425] device eth0 entered promiscuous mode
[   25.523103] device vbox0 entered promiscuous mode
[   25.524055] br0: new device vbox0 does not support netpoll (disabling)
[   25.526106] br0: port 2(vbox0) entering forwarding state
[   25.526111] br0: port 2(vbox0) entering forwarding state
[   25.526115] br0: port 1(eth0) entering forwarding state
[   25.526119] br0: port 1(eth0) entering forwarding state
[   30.554156] ip_tables: (C) 2000-2006 Netfilter Core Team
[   30.646698] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[   30.646916] CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
[   30.646919] nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
[   30.646922] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[   34.129901] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[   34.130029] NFSD: starting 90-second grace period
[   35.630049] nvidia: version magic '2.6.35-zen2-sleep SMP mod_unload ' should be '2.6.35-zen2-sleep SMP preempt mod_unload '

_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Genewb
Apprentice
Apprentice


Joined: 09 Jan 2007
Posts: 165

PostPosted: Fri Sep 10, 2010 10:57 am    Post subject: Reply with quote

Replying to this thread as it seems to have surpassed the other:

drescherjm wrote:
Genewb

Thanks. The second thread led me to the solution. Nix found by bisecting the kernel that this problem was with the clocksource. In his case it was hpet. I was using tsc. Switching to acpi_pm and all is well.

https://forums.gentoo.org/viewtopic-t-842775-highlight-.html


I tried using apci_pm and the problem seemed to have been solved initially, but once X started it was apparent that it'd just been improved somewhat. Passing hpet=verbose to the kernel worked wonders though, problem solved. :)
_________________
I don't give a darn about "experience", just functional copyleft software.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Fri Sep 10, 2010 12:59 pm    Post subject: Reply with quote

I am downgrading it from solved to improved to do more testing. Also I need to test in X windows. I will look into the Passing hpet=verbose and see if that changes things.. There now is some developer activity on the lkml about this so hopefully soon workarounds will not be needed..
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
zx2c4
Developer
Developer


Joined: 09 Jun 2005
Posts: 177

PostPosted: Fri Sep 10, 2010 5:32 pm    Post subject: Reply with quote

Code:
cd /usr/src/linux && curl 'http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=patch;h=30a564be9d9554c168a654eddc2165869cc0d7bf' | patch -R -p1
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Fri Sep 10, 2010 5:48 pm    Post subject: Reply with quote

So you are removing the commit that Nix bisected and believes was the cause. Keep us informed..
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
zx2c4
Developer
Developer


Joined: 09 Jun 2005
Posts: 177

PostPosted: Fri Sep 10, 2010 6:38 pm    Post subject: Reply with quote

So far so good!

But someone else should try as well to confirm.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Fri Sep 10, 2010 7:26 pm    Post subject: Reply with quote

Were you using hpet as your clocksource?
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
zx2c4
Developer
Developer


Joined: 09 Jun 2005
Posts: 177

PostPosted: Sat Sep 11, 2010 6:11 am    Post subject: Reply with quote

Code:
zx2c4@ZX2C4-Laptop ~ $ cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc






my dmesg has some things about hpet
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Sat Sep 11, 2010 10:10 am    Post subject: Reply with quote

Code:


HPET: 8 timers in total, 5 timers will be used for per-cpu timer
hpet0: at MMIO 0xfed00000, IRQs 2, 8, 24, 25, 26, 27, 28, 0
hpet0: 8 comparators, 64-bit 14.318180 MHz counter
hpet: hpet2 irq 24 for MSI
hpet: hpet3 irq 25 for MSI
hpet: hpet4 irq 26 for MSI
hpet: hpet5 irq 27 for MSI
hpet: hpet6 irq 28 for MSI
Switching to clocksource tsc

from dmesg


yet later on:
CE: hpet increased min_delta_ns to 7500 nsec
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Sat Sep 11, 2010 2:45 pm    Post subject: Reply with quote

This is what I have for acpi_pm clocksource.

Code:
jmd1 linux # cat /sys/devices/system/clocksource/clocksource0/current_clocksource
acpi_pm
jmd1 linux # dmesg | grep hpet
[    0.971338] hpet clockevent registered
[    1.376607] rtc0: alarms up to one month, 242 bytes nvram, hpet irqs
[   10.858552] CE: hpet increased min_delta_ns to 7500 nsec
[ 1006.469327] CE: hpet increased min_delta_ns to 11250 nsec
jmd1 linux # 


Right now I am using 2.6.35-zen-r2 without reversing the commit (reversing did not apply cleanly on zen):

Code:
jmd1 linux # uname -a
Linux jmd1 2.6.35-zen2-acpi_pm #8 ZEN SMP PREEMPT Thu Sep 9 20:47:54 EDT 2010 x86_64 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux
jmd1 linux #


It still seems to be working almost as good as 2.6.34. I say almost because I have seen a little random seconds of slowdown via ssh. I have not used it in X long enough to see any bad behavior. Also KVM seems to be working fine also. I have had the most use in that.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Tue Sep 14, 2010 10:25 pm    Post subject: Reply with quote

I just got the email from the kernel mailing list for the thread that describes this issue:

Code:
FYI, we got a reasonable explanation now what's going on in hardware
land. Patch is in the works.

_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
zx2c4
Developer
Developer


Joined: 09 Jun 2005
Posts: 177

PostPosted: Tue Sep 14, 2010 10:28 pm    Post subject: Reply with quote

Hurray!
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Sep 15, 2010 12:26 am    Post subject: Reply with quote

Here is a link to the discussion about the fix (including patch):
http://lkml.org/lkml/2010/9/14/443

Here is the commit:
http://git.kernel.org/?p=linux/kernel/git/x86/linux-2.6-tip.git;a=commitdiff;h=54ff7e595d763d894104d421b103a89f7becf47c


:) My name is mentioned in the commit.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Wed Sep 15, 2010 10:48 am    Post subject: Reply with quote

interesting.
by ati do they mean a crossfire mobo? cause i have intel cpu and nv card.

also they talk about u32 and not casting. my bios has an option for 64 or 32bit hpet. i have it set to 64b at the moment i might try as 32b as well as this patch.

also any word if this patch is making into 2.6.36?
might be worth a gentoo bug and ask this patch to go into the gentoo patchset
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Sep 15, 2010 11:18 am    Post subject: Reply with quote

Quote:
by ati do they mean a crossfire mobo? cause i have intel cpu and nv card.

A patch in 2.6.35 to fix a a bug with the high resolution timer on ati/amd motherboards broke the high resolution timer on intel boards under certain conditions.

Quote:
also they talk about u32 and not casting. my bios has an option for 64 or 32bit hpet. i have it set to 64b at the moment i might try as 32b as well as this patch.

I believe they were talking about the C source code of the patch. Specifically a redundant statement that converted the output to unsigned 32 bit integer when it already was a 32 bit unsigned integer.

Quote:
also any word if this patch is making into 2.6.36?

This has been pushed to the -tip tree which is described by the following:
Quote:
The -tip tree: maintenance and integration tree for scheduler, timer, tracing, genirq, x86 and other subsystems.


I expect this to hit the mainline git (for 2.6.36) within the day or so.
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
mengzhao
n00b
n00b


Joined: 18 Mar 2004
Posts: 13

PostPosted: Wed Sep 15, 2010 1:11 pm    Post subject: Reply with quote

I think it is the sata driver problem, the disk become not responsive intermitently.
Back to top
View user's profile Send private message
drescherjm
Advocate
Advocate


Joined: 05 Jun 2004
Posts: 2790
Location: Pittsburgh, PA, USA

PostPosted: Wed Sep 15, 2010 1:30 pm    Post subject: Reply with quote

Read the last page of this thread. A bug has been found in the kernel and it is caused by a change in the code for the system high resolution timer.

BTW, Just now there is a new patch in the works that does not have an extra read penalty but seems to fix the ati/amd bug. I have volunteered to test this on my i7 machine tonight..
_________________
John

My gentoo overlay
Instructons for overlay
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3525

PostPosted: Wed Sep 15, 2010 2:08 pm    Post subject: Reply with quote

Will this patch get backported into the "stable" kernel series, or should CoreI7 users stay <2.6.35 until 2.6.36 is out. (I've heard that this hits 2.6.35+.)

I'm a new CoreI7 user, installing a Thinkpad W510 now.
_________________
.sigs waste space and bandwidth
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 Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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