Open silenius opened 2 years ago
@silenius Thanks for the report. What kind of CPU load are you seeing? Based on the above information this sounds like what you're seeing is the Salt interval loop which runs once a second. This is used by Salt components such as the scheduler and beacons. It is configurable with the loop_internval
configuration option in the minion configuration.
I have a lot of jails and each salt-minion takes ~0.30% CPU. I tried to raise loop_interval
from 1
to 10
but it doesn"t change anything (I've still a kevent(...) followed by a getpid() every second). (getpid() used to be slow under FreeBSD, I don't know if it's still the case)
I have a FreeBSD host with many jails. In each jail a salt-minion is installed. Although each minion consumes something like 0.1% CPU it starts to have an impact on the load average.
Running
truss -p <pid_of_minion>
I noticed the following:It happens every second (kevent followed by a getpid). I'm wondering if this could be the cause of CPU usage and why should it be run every second? Is it configurable?
This is on FreeBSD 13.0-RELEASE with: