mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
poll-loop: Reduce high-CPU log messages from WARN to INFO.
These can happen occasionally in normal circumstances. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -165,8 +165,8 @@ log_wakeup(const char *where, const struct pollfd *pollfd, int timeout)
|
|||||||
cpu_usage = get_cpu_usage();
|
cpu_usage = get_cpu_usage();
|
||||||
if (VLOG_IS_DBG_ENABLED()) {
|
if (VLOG_IS_DBG_ENABLED()) {
|
||||||
level = VLL_DBG;
|
level = VLL_DBG;
|
||||||
} else if (cpu_usage > 50 && !VLOG_DROP_WARN(&rl)) {
|
} else if (cpu_usage > 50 && !VLOG_DROP_INFO(&rl)) {
|
||||||
level = VLL_WARN;
|
level = VLL_INFO;
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user