Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
CPU usage /usr/local/opnsense/scripts/filter/update_tables.py
« previous
next »
Print
Pages: [
1
]
Author
Topic: CPU usage /usr/local/opnsense/scripts/filter/update_tables.py (Read 586 times)
jphylips
Newbie
Posts: 10
Karma: 4
CPU usage /usr/local/opnsense/scripts/filter/update_tables.py
«
on:
June 25, 2024, 11:47:40 pm »
Hi all,
When an alias is changed via Firewall -> Aliases -> Apply, the script /usr/local/opnsense/scripts/filter/update_tables.py is run from the cron every minute to make sure that pf actually picks up the change, as I understand it.
However, running this script takes about 10 to 20 seconds during which the CPU gets stressed quite severly. This behavior is seen for quite some years now and I have not been able to fix this.
I did a python trace on the update_tables.py script and it is executing the /usr/local/opnsense/scripts/filter/lib/alias/pf.py file for example about 13 million times. That surely explains the CPU load, I guess. I do have some aliases (of 'URL Table (IPs)' type) some of which are quite big (more than 200,000 IP addresses). Am I doing something wrong with my firewall alias settings? I have seen some other mentions by people seeing similar behavior with the update_tables.py script, but unfortunately not with a fix.
Hopefully someone can help me with odd behavior. If I need to provide more information, please let me know. Thank you very much.
Logged
luc-
Newbie
Posts: 1
Karma: 0
Re: CPU usage /usr/local/opnsense/scripts/filter/update_tables.py
«
Reply #1 on:
August 02, 2024, 02:03:49 pm »
I just noticed the same and found this thread while looking for answers. Because the router breaks and needs a config restore via serial console half the time I apply any config change, I'm a bit hesitant to change things unnecessarily to debug the situation, but I'd also be rather curious why this high CPU usage for ~15 seconds per minute occurs
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
CPU usage /usr/local/opnsense/scripts/filter/update_tables.py