More detailed CPU usage?

Started by waxhead, March 30, 2023, 01:36:24 PM

Previous topic - Next topic
Hi,

I run OPNsense on a rather old core2 duo machine. I sometimes see the CPU usage peak at about 70% so what does this tell me? ... well in reality not much, but I am tempted to think that perhaps one CPU core is saturated from time ot time. My load average numbers are <1.0 which is good , but it still does not account for brief 2-3 second peaks that saturate a single CPU core.

Would it be possible to change the CPU usage bar under the system information widget to show if any CPU is saturated for a significant amount of time. The easiest would perhaps be to provide a CPU bar pr. CPU , but another alternative could perhaps be to add something similar to a "clip" indicator just like most audio programs has.

That way it would be easier to know if my system is actually saturated at times. As it is now it is not that easy especially since htop is not available when running pkg search htop as root on my opnsense box.

You can run top. FreeBSD top - while not as feature rich as htop - still can do quite a bit more than Linux top.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Quote from: pmhausen on March 30, 2023, 02:03:32 PM
You can run top. FreeBSD top - while not as feature rich as htop - still can do quite a bit more than Linux top.

Apparently yes.... pressing P give me pr. CPU statistics.... thanks. It would be nice if this was visible via the webgui though ;)

You can very simply install htop....

I have, works great.

pkg install htop

i have to say that i do cinda agree with shorter timespan on graphs

it would be nice to have say 1h - 16 etc when looking att traffic/temperature/cpu usaget etc

not the biggest deal..but i would like 1h ;)
primary - HP 290-p0043w - 9600/32gb
secondary - qotom 7500u
on the shelf HP-730

Collectd --> Influx --> Grafana

Some assembly required ;)
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Maybe overkill, but I use zabbix and then can get alerts if monitored processes die or like the recent discussion, ipv6 routing fails.  Alerts for excessive CPU is also a default alert...I haven't seen anything zabbix can't do but I'm just a home user.

Also for OP, there is a process that processes netflow data that does saturate one core briefly as has been discussed here and maybe more on github (flowd_aggregate.py).  Might be it, and there are probably others.
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

The best one-stop solution I have seen so far is Observium. Enable SNMP, point Observium at all SNMP capable devices, done. Everything is auto-detected and the graphs are useful and nice enough to look at. No as spiffy in terms of design as Netdata or Grafana, but really good enough.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)