OPCFoundation / UA-LDS

Local Discovery Server
45 stars 48 forks source link

"High" CPU load #84

Open MD-V opened 7 months ago

MD-V commented 7 months ago

On our machine we have around 6-8 OPC UA servers installed that register with the LDS every 30 seconds. This results in a rather high CPU usage (LDS is the process with the most CPU usage on the whole machine): UA-LDS CPU usage

I have installed a prototype of my .NET based LDS (https://github.com/MD-V/LightLDSCore) on the machine. It uses much less CPU (see image): LightLDS CPU usage

Is there any way to optimize the CPU usage for the UA-LDS?

erhardgrishaber commented 7 months ago

@MD-V : At this point, there are no plans for any performance improvements (1% CPU is not critical). Other than the periodical OPC-UA Server registration, the LDS is also communicating with other LDS instances on the local network (via Bonjour/Avahi), so it is normal for it to have a higher load that the .Net based implementation.

MD-V commented 7 months ago

@erhardgrishaber Okay, 1% doesn't seem critical but in the context that the LDS uses the most CPU overall (even more than our main control applications) means many wasted CPU cycles (for simple discovery functionality).