]> git.proxmox.com Git - mirror_corosync.git/commit
stats: Add stats for scheduler misses
authorChristine Caulfield <ccaulfie@redhat.com>
Fri, 17 Jan 2020 14:22:16 +0000 (14:22 +0000)
committerJan Friesse <jfriesse@redhat.com>
Wed, 22 Jan 2020 16:06:10 +0000 (17:06 +0100)
commit48b6894ef41e9a06ccbb696d062d86ef60dc2c4b
tree3165804cddd3f10769869ed793c86c92814d932a
parent8ce65bf951bc1e5b2d64b60ea027fbdc551d4fc8
stats: Add stats for scheduler misses

This patch add a stats.schedmiss.* set of entries that
are a record of the last 10 times corosync was not scheduled
in time.

These entries are keypt in reverse order (so stats.schedmiss.0.* is
always the latest one kept) and the values, including the timestamp,
are in milliseconds.

It's also possible to use a cmap tracker to follow these events, which
might be useful.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
exec/main.c
exec/stats.c
exec/stats.h
man/cmap_keys.7
tools/corosync-cmapctl.c