CPU spike from update_tables.py on APU2e4

Started by marcog, January 30, 2021, 12:40:02 PM

Previous topic - Next topic
Hi,
I installed OpnSENSE on an APUe2 platform. It seems to run well but I noticed that every 60 seconds the CPU goes from 1-4% to 30%. This happens when the python "script update_tables.py" runs. Is this normal? The issue was already reported in July here: https://forum.opnsense.org/index.php?topic=18215.msg82722#msg82722 but the user provided only a workaround. This happened to me both on a fresh install without any configuration (only WAN/LAN interfaces) and a full operative instance. I attached a couple of screenshots which show the cpu graph and the process that causes the spike.
Thanks

Well, do you have a number of aliases set? It may be looking for a reason to update and/or carrying out updates.


Cheers,
Franco

Hi franco, thanks for your answer. I have many aliases set, but the spike happened even on a fresh install without any aliases set. Is it possible that just the python call causes these spikes? Do you think that this cpu behaviour is normal? I am worried that on high throughputs this behaviour could cause issues. For example consider if I am downloading at gigabit speed and the cpu is on 80% usage. If the script takes 20% of the cpu every minute it would maximize the cpu usage resulting on packet loss. Am I right?
Thanks again.
Best regards