Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High kernel_task and WindowServer CPU Usage optimization #101

Closed
lucas-www opened this issue Nov 16, 2020 · 12 comments
Closed

High kernel_task and WindowServer CPU Usage optimization #101

lucas-www opened this issue Nov 16, 2020 · 12 comments

Comments

@lucas-www
Copy link

lucas-www commented Nov 16, 2020

Do I need to optimize my macOS? Sometimes,kernel_task and WindowServer CPU Usage are much more higher than the screenshot below, thank you for your any suggestions.
Reference: https://apple.stackexchange.com/questions/363337/how-to-find-cause-of-high-kernel-task-cpu-usage
image
@tylernguyen @benbender

@lucas-www lucas-www changed the title High kernel_task and windowserver CPU Usage optimization High kernel_task and WindowServer CPU Usage optimization Nov 16, 2020
@velaar
Copy link

velaar commented Nov 16, 2020 via email

@benbender
Copy link
Contributor

Be careful as those description are far too general to be meaningful. Its dangerous to mix up things before they got pinned down as it might lead to false conclusions.

@lucas-www any more specific details? Atm you are saying basically: "sometimes my laptop does work under unspecified conditions"?

@velaar I didn't see constant cpu-load above the usual on those pm-problems atm

@lucas-www
Copy link
Author

@benbender I got it, It is more obvious when the laptop's temperature becomes higher.

@benbender
Copy link
Contributor

Problem is simple: it can be anything from cloudd went crazy, spotlight-index-broken, TB-controller crashed until a faulty network-driver by apple for the unused 100mbit-ethernet-port in your usb-c-to-dp-dongle...

seen everything of the above ;)

@velaar
Copy link

velaar commented Nov 16, 2020

@benbender the CPU load isn't usual but the Idle Wake-Ups are there. This is for my laptop that remained on overnight:
image

@tylernguyen
Copy link
Owner

tylernguyen commented Nov 16, 2020

@lucas-www

Does this issue only happens when you are charging the laptop? And if so, which port, or both?

As far as I've been looking, kernel_task is macOS's mean of throttling the CPU down. I have noticed the process on my system but never as high as 13.4%. Though my machine is re-pasted with after market paste, that would be the first suggestion for you since that should lower temperature of the machine.

In addition, check your machine's fan. See: https://www.reddit.com/r/thinkpad/comments/c7zpah/x1_carbon_6th_gen_horrible_cooling_fan_design/

EDIT: I'll add notes about this in 3_README-other.md

@velaar
Copy link

velaar commented Nov 16, 2020

@tylernguyen
kernel_task manages all kernel interrupts. Including the TMR events, not only thermal. So unfortunately this is not the case. Apple documentation on the subject is misleading. I do have a Delta fan with LM repaste. CPU temp is 55C

image

WindowServer is probably iGPU related so I tried to play quite a bit with GuC loading (might help if works, but it doesn't work at the moment).

@tylernguyen
Copy link
Owner

Got it, thanks for the clarification.

WindowServer is probably iGPU related so I tried to play quite a bit with GuC loading (might help if works, but it doesn't work at the moment).

Unfortunately, I do not think GuC loading will ever work on our machine.

@benbender
Copy link
Contributor

BTW, as this would really help with iGPU-PM, has anyone ever been successful loading apples' GuC (aka working igfxfw=2)?

@velaar
Copy link

velaar commented Nov 16, 2020

@benbender
No. I have somewhat a vector to work on - ptresearch/IntelTXE-PoC#23 it might be possible to extract the ME certificate and re-sign Apple's GuC. acidanthera/bugtracker#586 and acidanthera/bugtracker#987 are also informative as to what is going on.

@tylernguyen
Copy link
Owner

I'll move loading GuC into a separate issue and mark it as help wanted.

@tylernguyen
Copy link
Owner

Linked to #106

Refer to that issue for discussion and solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants