[SOLVED]egrep used lots of CPU,what did it grep ?
-
Ok so replacing egrep with ripgrep seems to work fine and should be significantly faster. However I'm only able to test with a relatively small number of states.
If you're able to test it install the ripgrep pkg:
pkg install ripgrep
Then edit /etc/inc/rrd.inc and replace the 5 instances of
egrep
withrg
I'll keep testing that here.
Steve
-
perl -p -i -e 's/egrep/rg/g' /var/db/rrd/updaterrd.sh /etc/inc/rrd.inc
I kill and restart the updaterrd.sh.
The rg still cost lots of CPU every minus.
[23.05-RELEASE][root@GW.Tel]/tmp: wc -l pfctl_ss_out
162234 pfctl_ss_out -
But for a shorter time?
Did he updater script get re-written? It would if you make any changes to the graph settings.
-
But for a shorter time?
Yes,so if I did not use netdata to monitor the system very minus,I can not find it in the "top" command.Did he updater script get re-written? It would if you make any changes to the graph settings.
I did not "save view",just update graph.