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

[macOS] kernel_task and gotop #33

Closed
xxxserxxx opened this issue Feb 15, 2020 · 7 comments
Closed

[macOS] kernel_task and gotop #33

xxxserxxx opened this issue Feb 15, 2020 · 7 comments
Labels
bug Something isn't working needs:review To determine inclusion or wont-fix os:macOS

Comments

@xxxserxxx
Copy link
Owner

xxxserxxx commented Feb 15, 2020

Required information:

  • gotop version (gotop -V):
    3.0.0
  • The output of uname -a:
    Darwin catfromhell-pro.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
  • Terminal emulator (e.g. iTerm or gnome terminal):
    iTerm
  • Any relevenat hardware info:
    image

image

Gotop was overload kernel_task on macOS(default gotop settings)

Original task cjbassi#142
Original submitter @barbariska108

@xxxserxxx
Copy link
Owner Author

I'm not very familiar with macOS, but isn't kernel_task just a kernel thread? Is the issue that gotop was causing kernel_task to use a lot of resources or was it something else?

@xxxserxxx
Copy link
Owner Author

I'm not very familiar with macOS, but isn't kernel_task just a kernel thread? Is the issue that gotop was causing kernel_task to use a lot of resources or was it something else?

Use-case:

  • Start gotop

  • Wait 5 mins

  • kernel_task overload CPU

  • Closing gotop and kernel_task stops overloading CPU

@xxxserxxx xxxserxxx added the bug Something isn't working label Feb 19, 2020
@jmuchovej
Copy link

kernel_task has PID 0, I'm not sure what that maps to in Linux, but launchd is analogous to /sbin/init, I believe – as it's PID 1 and all processes are children of it.

Not sure if it helps, but I do have access to MacOS, so I think I can contribute at least on the exploration and understanding side of things.

@xxxserxxx
Copy link
Owner Author

@ionlights have you been able to replicate this issue?

@barbariska108 Do you still see this?

@xxxserxxx xxxserxxx added the needs:review To determine inclusion or wont-fix label May 1, 2020
@jmuchovej
Copy link

jmuchovej commented May 3, 2020

So, I don't believe this is an issue? Ideally, @barbariska108 could comment on the behavior?

The percentages are UNIX-style, so 100% could just mean that a single thread is at 100%. Based on the specs I believe the maximum % would be 800%? The image attached shows ~500%, so over half their machine is being utilized.

I honestly don't think this is a bug? I've had gotop running with high load on kernel_task, but whenever I launch gotop, I'm also doing some pretty intense work on my machine anyways. 😅

@barbariska108
Copy link

@xxxserxxx @ionlights, I've now install the last update and this issue resolved.

@xxxserxxx
Copy link
Owner Author

@ionlights & @barbariska108 , thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs:review To determine inclusion or wont-fix os:macOS
Projects
None yet
Development

No branches or pull requests

3 participants