]> git.puffer.fish Git - mirror/frr.git/commit
lib: Differentiate between real and cpu bound processes
authorDonald Sharp <sharpd@nvidia.com>
Tue, 2 Feb 2021 17:56:06 +0000 (12:56 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 26 Mar 2021 15:41:57 +0000 (11:41 -0400)
commit039d547f6f1b7fe4b96cc22ac5a6ef8d18d5cf97
treef5614f80d048b8a3c4906f06284c45ef6373ec60
parent694df37daf95940e923905fdd1096541d860bbfd
lib: Differentiate between real and cpu bound processes

When generating SLOW_THREAD warnings let's differentiate between
a cpu bound process and a wall bound process.  Effectively
a slow thread can now be a process in FRR doing lots of work( cpu bound )
or wall bound ( the cpu is heavy load and a FRR process may be pre-empted
and never scheduled ).

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/lib_errors.c
lib/lib_errors.h
lib/thread.c
lib/vty.c