"clone" syscall in keepalived healthchecking child takes more time after switching
Damien Clabaut <[email protected]> Thu, 28 Sep 2017 16:02:32 -0400
| Newsgroups | gmane.linux.keepalived.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Keepalived devs, While testing Keepalived version 1.3.6 on Debian8, I came accross a strange issue. Tl;DR: It seems that after every vrrp state change, the "clone" system call takes a little more time, slowly eating up all CPU. Details: I start keepalived with 200 instances (100 IPv4 + 100 IPv6). Each instance tracks a different script. The keepalived healthcheck children (as described on http://keepalived.org/documentation.html) has PID 177548: [root@bz-perflab-6-vr /home/dclabaut/mac_flap] echo $(($(cat /var/run/keepalived.pid) + 2)) 177458 All instances are in the MASTER state on this machine. Strace -c gives me the count of system calls on a 60 second time period: [root@bz-perflab-6-vr /home/dclabaut/mac_flap] timeout 60 strace -cp 177458 % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 84.96 2.676412 880 3041 689 clone Using vrrp_scripts, I move all instances to BACKUP state, then back to MASTER state, and run the same command [root@bz-perflab-6-vr /home/dclabaut/mac_flap] timeout 60 strace -cp 177458 % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 97.85 15.866534 4887 3247 901 clone Again, I move all instances to BACKUP then MASTER, and take a trace. There are about the same number of "clone" syscalls, but now they take 8651 usecs/call To make sure this a consequence of state change, I wait 10 then 20 minutes and take new traces. There is still the same number of "clone" syscalls, and now they take 7440 usecs/call. On a separate experiment where I kept changing the VRRP state, I saw an entire core being used by this process. Is this a known issue? What can I do to help fix it? Kind regards, -- Damien Clabaut R&D vRouter ovh.qc.ca ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Keepalived-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/keepalived-devel