Comments (15)
@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.
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.
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.
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.
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.
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.
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.
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.
Yep, no need to re-scan so often, maybe just once every n secs? That would be great.
from htop.
And perhaps behind a flag 're-check # of (active/enabled) cores every [n] secs' ?
from htop.
@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.
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 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.
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.
Ergo, closing.
from htop.
Related Issues (20)
- Feature request: print pid and exit HOT 1
- Memory leak at Settings.c:867 (legacyDotfile) HOT 1
- Why, when I run the htop with doas, do I have this look? HOT 1
- Sudden Segementation Fault HOT 16
- Preventing implicitly initialised values in lookup tables and structs
- FR: temperature monitoring (min,max,avg)
- "CPU usage bar" help is misaligned
- htop 3.3 not showing overall process cpu percentage in collapsed tree mode HOT 3
- Htop counting network traffic twice on bonded interface HOT 1
- Seeing incorrect offline and online CPUs HOT 3
- Temps showed only for 1 core of R5 7600 CPU HOT 2
- htop fails to compile with gcc-14.1 unless ncurses has been built with --enable-sigwinch HOT 1
- Swap utilization not being showed HOT 4
- not showing accurate memory usage (MacOS Ventura) HOT 3
- feature request: add an "available columns" to display count of fds HOT 1
- Can no longer invert sort order when displayed as a tree HOT 9
- Feature: Quick toggle for showing userland process' threads HOT 5
- htop is using much cpu itself HOT 3
- Segmentation fault in 3.3.0 under heavy CPU and memory load on Debian Trixie (testing, rolling release) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htop.