Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 367985 - several kworker threads up one cpu every 4 seconds
Summary: several kworker threads up one cpu every 4 seconds
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 05:22 UTC by Stefan Hübner
Modified: 2011-08-23 08:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of emerge --info (emerge--info.txt,4.83 KB, text/plain)
2011-05-19 05:22 UTC, Stefan Hübner
Details
Picture of ksystemmonitor - mostly idle, 1px = 0.2s (ksystemmonitor.png,303.31 KB, image/png)
2011-05-19 05:25 UTC, Stefan Hübner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Hübner 2011-05-19 05:22:01 UTC
Created attachment 273907 [details]
output of emerge --info

Since gentoo-sources-2.6.37 I experience several kworker threads eating up one core of my cpu like every 4s. I've tried with 2.6.37-r4, 2.6.38, 2.6.38-r5 - always the same picture. (see attachments: screenshot of ksystemmonitor).  I've read in other forums that this might be acpi-wakeup-related.  Any clues or workarounds?  What more information do you need?
Comment 1 Stefan Hübner 2011-05-19 05:25:47 UTC
Created attachment 273909 [details]
Picture of ksystemmonitor - mostly idle, 1px = 0.2s
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-19 16:06:33 UTC
(In reply to comment #1)
> Created attachment 273909 [details]
> Picture of ksystemmonitor - mostly idle, 1px = 0.2s

We appear to be looking at CPU temperature there.
Comment 3 Stefan Hübner 2011-05-20 05:06:05 UTC
That is indeed right, this laptop has thermal problems.  But it worked well enough with earlier kernels.

The second line of system monitor output is cpu-load for both cores.  the last line is clock frequency and fan-speed in one.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-24 13:53:49 UTC
It would help if you figured out what was causing these spikes. Also, it looks kind of like the generic power consumption problems with recent Linux kernels we've all been reading about in the press about.
Comment 5 Stefan Hübner 2011-05-24 17:05:40 UTC
I'd like to.  How can I "decode" what a kworker thread actually is doing?

Another update: I reverted back to gentoo-sources-2.6.37-r4 and those spikes are gone.  I used the same config as with the 2.6.38-r5 ("make oldconfig").
Comment 6 Stratos Psomadakis (RETIRED) gentoo-dev 2011-08-20 16:38:18 UTC
Can you try with gentoo-sources-3.0.3?

Thanks.
Comment 7 Anthony Basile gentoo-dev 2011-08-20 17:38:57 UTC
(In reply to comment #5)
> I'd like to.  How can I "decode" what a kworker thread actually is doing?
> 
> Another update: I reverted back to gentoo-sources-2.6.37-r4 and those spikes
> are gone.  I used the same config as with the 2.6.38-r5 ("make oldconfig").

Use Kernel Hacking -> Tracers -> Kernel Function Tracer (and friends) to see where the kernel is spending its time.  Look at Documentation/trace/ftrace.txt.  Its involved, but you'll find it.

You can also try PERF_COUNTERS, but that's specific to some process that you might suspect is responsible for heavy sys calls.  General setup -> Kernel Performance Events And Counters.  You'll need the userland utility tools/perf.
Comment 8 Stefan Hübner 2011-08-22 21:25:30 UTC
Actually this issue has resolved.  I went back to 2.6.37-r4 where I had no problems.  Then later on I went to 2.6.38-r6 with no problems either.  I have not bothered yet to update the kernel further because of some lack of time.

Thank you anyhow.
Comment 9 Stratos Psomadakis (RETIRED) gentoo-dev 2011-08-23 08:06:48 UTC
Ok. I'm closing this for now. If you encounter the same issue with newer kernels, feel free to reopen.

Thanks.