[ovs-dev] [test log scan v2 2/6] poll-loop: Reduce high-CPU log messages from WARN to INFO.

Ethan Jackson ethan at nicira.com
Tue Feb 5 20:59:46 UTC 2013


This has annoyed me for a while, thanks.

Acked-by: Ethan Jackson <ethan at nicira.com>

On Fri, Feb 1, 2013 at 10:48 AM, Ben Pfaff <blp at nicira.com> wrote:
> These can happen occasionally in normal circumstances.
>
> Signed-off-by: Ben Pfaff <blp at nicira.com>
> ---
>  lib/poll-loop.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/poll-loop.c b/lib/poll-loop.c
> index fca1dfa..9855306 100644
> --- a/lib/poll-loop.c
> +++ b/lib/poll-loop.c
> @@ -165,8 +165,8 @@ log_wakeup(const char *where, const struct pollfd *pollfd, int timeout)
>      cpu_usage = get_cpu_usage();
>      if (VLOG_IS_DBG_ENABLED()) {
>          level = VLL_DBG;
> -    } else if (cpu_usage > 50 && !VLOG_DROP_WARN(&rl)) {
> -        level = VLL_WARN;
> +    } else if (cpu_usage > 50 && !VLOG_DROP_INFO(&rl)) {
> +        level = VLL_INFO;
>      } else {
>          return;
>      }
> --
> 1.7.2.5
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list