OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: Spiky_Gladiator on December 31, 2022, 01:03:09 PM

Title: Constant CPU Spikes
Post by: Spiky_Gladiator on December 31, 2022, 01:03:09 PM
I have noticed that I experience random CPU spikes on default OPNSense install. My CPU is Intel J3160 and I noticed it rapidly jumping from 0% usage to 21% or very often 35% then after a second or two goes down again to 0% then the circle begins again after around 20 - 30 seconds as the usage jumps up again. The highest I ever saw was 40%.

Are these types of CPU spikes normal both for OPNSense and the processor in question or should I be concerned with it ?
Title: Re: Constant CPU Spikes
Post by: axsdenied on January 01, 2023, 05:59:32 PM
Normal and nothing to worry about.
Title: Re: Constant CPU Spikes
Post by: jphylips on January 02, 2023, 01:55:39 PM
Hi,
I see them too. Maybe they are caused by this cron job:

*   *   *   *   *   (/usr/local/bin/flock -n -E 0 -o /tmp/filter_update_tables.lock /usr/local/opnsense/scripts/filter/update_tables.py) > /dev/null

This job  runs every minute and causes my CPU (same as yours) to spike for about 10 seconds.