High basal cpu load on 686 but not 386 kernel

Bug #41373 reported by Harm van Bakel
This bug report is a duplicate of:  Bug #30557: cpu idle time in /proc/stat wrong. Edit Remove
18
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

When running the latest 686 kernel (v20 or v21, haven't tried earlier versions) I noticed that the cpu load was very high, typically 20-30% without top showing any process that could be responsible for this. This high cpu load caused some noticable performance problems, especially in keyboard responsiveness. Keyboard repeat became very sluggish and kscreensaver showed lots of stuttering. After rebooting with the 386 kernel I don't see any problem anymore, so this seems to be specific for the 686 kernel.

A screenshot of top, showing high system load without any process showing much cpu usage, and additional information can be found in the following thread: http://www.ubuntuforums.org/showthread.php?t=165742

I'm running kubuntu on a Dell Latitude D810 (though the problem is not linked to either kde/gnome, since the performance problems are also evident in console mode when X is not started).

Revision history for this message
santo (santo-prive) wrote :

I can confirm this.
As hvbakel mentioned, please refer to http://www.ubuntuforums.org/showthread.php?t=165742 for more details

My system is Ubuntu Dapper (with kubuntu-desktop installed afterwards) on a Dell Inspiron 9300

Revision history for this message
David Corrales (davidcorrales) wrote :

I'm also running Ubuntu Dapper on an Inspiron 9300 and the 686 is giving me high cpu utilization. The temporary fix is to use the 386 one.

Revision history for this message
Harm van Bakel (hvbakel) wrote :

Just checked kernel version 2.6.15-22-686, unfortunately the problem still persists... If anyone has a clue how to get more info on what could be the problem it would be greatly appreciated.

Revision history for this message
cellstije (marco-grimaldi) wrote :

The same problem on a VAIO FS-115M using 2.6.15-22-686

Using the 2.6.15-22-386 kernel, the cpu usage is right

Revision history for this message
towsonu2003 (towsonu2003) wrote :

http://www.ubuntuforums.org/showthread.php?t=172319 suggests this is a widespread issue.

Revision history for this message
Harm van Bakel (hvbakel) wrote :

Did some more searching on the forums, this issue seems to be related to the fact that the dapper 686 kernel has SMP processing enabled by default: http://www.ubuntuforums.org/showthread.php?t=149348&page=2&highlight=cpu+686 (thanks to no1wantdthisname). Could this problem perhaps be specific for laptops?

Revision history for this message
Pausanias (pausanias) wrote :

Somebody please officially confirm this bug. I experience the same problem on a Precision M70. User CPU load while idle in GNOME is 7-20% using the 686 kernel, and 1% when using the 386 kernel. User CPU load when running idle in single user (text terminal) mode is 0%. What is going on?

Revision history for this message
Awaka (egf-vd-geer) wrote :

Same here.

Acer Aspire 3633lc Kernel 2.6.15-22-686.

Revision history for this message
89c51 (barz621) wrote :

the same here on a vaio s4hp

Pausanias (pausanias)
Changed in linux-source-2.6.15:
status: Unconfirmed → Confirmed
Revision history for this message
Ben Collins (ben-collins) wrote :

I haven't noticed this bug on similar setups. Can you all confirm what X driver you are using (or if you are using one of the binary drivers such as fglrx or nvidia-glx)?

Revision history for this message
Harm van Bakel (hvbakel) wrote :

I have an ATI X600 card and I'm using the latest fglrx driver (8.24.8)

Revision history for this message
Ben Collins (ben-collins) wrote :

Can you test with stock xorg ati driver?

Changed in linux-source-2.6.15:
status: Confirmed → Needs Info
Revision history for this message
Harm van Bakel (hvbakel) wrote :

Just tested this by using the 'ati' driver instead of 'fglrx' and rebooting with the 686 kernel, but this doesn't make any difference. Cpu usage with the 686 kernel remains high. Even if I shut down X completely, the high cpu usage still remains. A post by 'no1wantdthisname' (extract pasted below) suggests that this problem is somehow related to the fact that SMP processing is enabled in the 686 kernel by default. Turning of SMP in a custom compiled kernel solved the high cpu load problem in his case. Haven't tried yet if this also works in my case...

-----

"Just a note: Check your CPU load on the 686 kernel. If it's unusually high when you're not doing anything, then you should switch back to 386.

I have a sony vaio laptop with a pentium-m processor. Using the 686 kernel causes my cpu to stay steady at ~50%. Using the 386 kernel: my cpu stays steady at ~1%.

I went ahead and tried building my own kernel. I changed the processor to pentium-m, thinking that the 686 kernel was slow because it was compiling for pentium4. So I went ahead and changed it to pentium m. Even then, the cpu load was still around 50%.
After multiple tries of compiling my own kernel, I noticed that I forgot to turn off SMP. Just by turning off SMP, the load went down to 1%.

Back on breezy, I used the 686 kernel without any problems. However, the dapper 686 kernel includes SMP by default since it theoretically shouldn't be causing any problems even on single processor computers. It seems to be causing the really high cpu load on my laptop though. "

Revision history for this message
Pausanias (pausanias) wrote :

If you read the thread linked to above, it is claimed that the problem goes away after recompiling the 686 kernel without SMP support. See the post by no1wantdthisname.

In any case, on my system I can confirm that I experience the problem with *both* the stock xorg nv driver *and* the proprietary nvidia driver.

It seems so far that the problem is limited to Pentium M processors but I could be wrong.

Revision history for this message
cellstije (marco-grimaldi) wrote :

I compiled myself a kernel from the linux sources in the dapper
repository and it is working fine by disabling the SMP support. But,
it is optimized for Pentium-M, not generic 686 (Pentium-pro).

On 5/16/06, Pausanias <email address hidden> wrote:
> If you read the thread linked to above, it is claimed that the problem
> goes away after recompiling the 686 kernel without SMP support. See the
> post by no1wantdthisname.
>
> In any case, on my system I can confirm that I experience the problem
> with *both* the stock xorg nv driver *and* the proprietary nvidia
> driver.
>
> It seems so far that the problem is limited to Pentium M processors but
> I could be wrong.
>
> --
> High basal cpu load on 686 but not 386 kernel
> https://launchpad.net/bugs/41373
>

Revision history for this message
Pausanias (pausanias) wrote :

I can also verify that recompiling the kernel with SMP disabled fixed this issue.

However, this is not an acceptable solution as you know, because it would mean recompiling the kernel each time a security update is released. Plus there is also the headache of recompiling any closed source drivers as well.

Downgrading to the 386 kernel is not a possibility for me---there is a measurable performance loss in my critical apps with the 386 kernel.

Is there a chance that we could see an SMP-disabled 686 kernel hit the repositories?

Also note that this is a duplicate of bug 30570

Revision history for this message
hardyn (arlenn) wrote :

Ditto,

general performace while using the 686 kernel is also very poor, better performance with 386 kernel.

I am on a P-M system.

Revision history for this message
cellstije (marco-grimaldi) wrote : Re: [Bug 41373] Re: High basal cpu load on 686 but not 386 kernel

this bug is still present on feisty herd2 on a sony vaio fs11m (centrimo 1.6GHz)
kernel:
2.6.20-5-generic

changing max_cstate as follows, resolve the issue:

echo 1 > /sys/module/processor/parameters/max_cstate

On 8/8/06, hardyn <email address hidden> wrote:
> *** This bug is a duplicate of bug 30557 ***
>
> Ditto,
>
> general performace while using the 686 kernel is also very poor, better
> performance with 386 kernel.
>
> I am on a P-M system.
>
> --
> High basal cpu load on 686 but not 386 kernel
> https://launchpad.net/bugs/41373
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux-source-2.6.15 (Ubuntu) because there has been no activity for 60 days.]

Revision history for this message
sibidiba (sibidiba) wrote :

Higy load avarage on idle Gutsy with kernel 2.6.22-14-generic too.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.