Code Monkey home page Code Monkey logo

Comments (15)

Explorer09 avatar Explorer09 commented on June 14, 2024 2

@jorgechamorro When a CPU bar is created, it's online/offline status should update in the same interval as CPU percentages. Not doing so would be a bug.

from htop.

BenBE avatar BenBE commented on June 14, 2024 1

Please retry with a newer version like 3.3.0. There has been quite a bit of changes since 3.0.5 was released.

from htop.

BenBE avatar BenBE commented on June 14, 2024

The number of cores is read at startup, but cores that go offline while htop is running should be indicated accordingly.

Thus the question: If you start htop with all CPUs online and put one core offline while htop is running, does the CPU meter show the corresponding core as offline?

from htop.

Explorer09 avatar Explorer09 commented on June 14, 2024

@jorgechamorro

the # of cores displayed properly, unless I close and open it again.

What's the "# of cores" field you are referring to?
Please be precise on which field is displayed wrong. A screenshot can also be helpful on explaining the bug.

from htop.

jorgechamorro avatar jorgechamorro commented on June 14, 2024

Say there are eight cores and eight cpu bargraphs showing in htop, and in another window I turn off a core, htop keeps displaying eight cores as if nothing had happened. Now, say I'm seeing only seven because I turned off one before launching htop, and I turn that core back on, again, htop keeps displaying only seven cores when in reality there are now eight online.

from htop.

Explorer09 avatar Explorer09 commented on June 14, 2024

Say there are eight cores and eight cpu bargraphs showing in htop, and in another window I turn off a core, htop keeps displaying eight cores as if nothing had happened. Now, say I'm seeing only seven because I turned off one before launching htop, and I turn that core back on, again, htop keeps displaying only seven cores when in reality there are now eight online.

Adjusting the number of bars in the display can ruin the meter layouts the user may have carefully set. I would argue that this is "not a bug".

from htop.

BenBE avatar BenBE commented on June 14, 2024

Unless hiding offline CPUs is active, all 8 cores (even if some offline) should be displayed; with some of the cores labelled as offline. If that's not the case, this is a bug and should be investigated.

If hiding of offline cores is active, then updating the layout may cause significant flicker if one or more cores are activated/deactivated in quick succession. IIRC there was some discussion about this a while back, when hiding of offline CPUs was implemented. @fasterit ???

from htop.

fasterit avatar fasterit commented on June 14, 2024

Yes, there is no technical reason for "[w]henever I switch off cores" but playing around. So I see no need for htop to scan the topology every cycle for that niche use case.
/DLange

from htop.

jorgechamorro avatar jorgechamorro commented on June 14, 2024

Yep, no need to re-scan so often, maybe just once every n secs? That would be great.

from htop.

jorgechamorro avatar jorgechamorro commented on June 14, 2024

And perhaps behind a flag 're-check # of (active/enabled) cores every [n] secs' ?

from htop.

Explorer09 avatar Explorer09 commented on June 14, 2024

@jorgechamorro Why the "re-check number of cores every n secs" option? It seems like we are tackling the wrong problem. It's unlikely that the "maximum supported CPUs" can be changed for a particular hardware, and the real option we need is "show all offline CPUs" so the meters will allocate space for CPUs that are offline at the moment.

Dynamically adding or removing meter bars can break the layout, which is something we should avoid doing.

from htop.

jorgechamorro avatar jorgechamorro commented on June 14, 2024

You mean always show all cores even disabled ones, but the disabled ones' bargraph shows 'offline' or something? That of course would be great. But still, then, how often would you check/update the online/offline status of the cores?

from htop.

jorgechamorro avatar jorgechamorro commented on June 14, 2024

@jorgechamorro When a CPU bar is created, it's online/offline status should update in the same interval as CPU percentages. Not doing so would be a bug.

Ok! But that's not what's happening here. htop --v gives me htop 3.0.5 maybe that's the problem? Thanks.

from htop.

jorgechamorro avatar jorgechamorro commented on June 14, 2024

I tried with htop 3.2.2 and it does as you say: shows bargraphs for all cores regardless of online state, and marks as 'offline' those that are, and updates as soon as the on/offline state changes. Great! Thanks.

from htop.

jorgechamorro avatar jorgechamorro commented on June 14, 2024

Ergo, closing.

from htop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.