OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: QBANIN on February 03, 2021, 07:23:27 PM

Title: list_arp.py json high cpu usage
Post by: QBANIN on February 03, 2021, 07:23:27 PM
Hi,

After update to 21.1 list_arp.py process cpu usage is very high.

Quote17704   root   95   0   33M   24M   CPU3   3   0:14   75.68%   /usr/local/bin/python3 /usr/local/opnsense/scripts/interfaces/list_arp.py json (python3.7)
   11   root   155   ki31   0   64K   CPU1   1   8:37   64.60%   [idle{idle: cpu1}]
   89573   root   77   0   29M   20M   CPU0   0   0:02   18.26%   /usr/local/bin/python3 /usr/local/opnsense/scripts/interfaces/list_arp.py json (python3.7)

It looks like it's kind a process restarting loop because PID number is increasing every few seconds.
Title: Re: list_arp.py json high cpu usage
Post by: Paul.Hirons on February 04, 2021, 09:23:29 PM
I'm seeing the same issue.  The list_arp.py script is being called several times a minute. If I run it manually from a shell it maxes out a single processor core for 2 to 3 seconds. I found that disabling System Configuration Daemon (configd) stops the issue happening but obviously disables some features of the web UI.
Title: Re: list_arp.py json high cpu usage
Post by: Paul.Hirons on February 12, 2021, 04:33:54 PM
I've taken a look in the list_arp.py file and found the following area being the cause of the high cpu usage:

        try:
            record['manufacturer'] = manufacturer_mac.oui.registration().org
        except netaddr.NotRegisteredError:
            pass

Specifically the call to .registration()

What I don't know is why this is now appearing as a problem or how it should be solved.  I've commented those lines out for the time being and it prevents the periodic high CPU usage.
Title: Re: list_arp.py json high cpu usage
Post by: dedi on February 19, 2021, 09:37:16 AM
I do have the same problem on 21.1.1