[ovs-dev] [loss-report 1/4] poll-loop: More strictly rate-limit high CPU use.

Ethan Jackson ethan at nicira.com
Wed May 30 00:42:41 UTC 2012


This has always annoyed me a bit, looks good.

Ethan

On Fri, May 25, 2012 at 2:36 PM, Ben Pfaff <blp at nicira.com> wrote:
> 120 messages per minute just isn't helpful.
>
> 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 ba6c3a1..516cf13 100644
> --- a/lib/poll-loop.c
> +++ b/lib/poll-loop.c
> @@ -1,5 +1,5 @@
>  /*
> - * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc.
> + * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc.
>  *
>  * Licensed under the Apache License, Version 2.0 (the "License");
>  * you may not use this file except in compliance with the License.
> @@ -157,7 +157,7 @@ poll_immediate_wake(const char *where)
>  static void
>  log_wakeup(const char *where, const struct pollfd *pollfd, int timeout)
>  {
> -    static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(120, 120);
> +    static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(10, 10);
>     enum vlog_level level;
>     int cpu_usage;
>     struct ds s;
> --
> 1.7.2.5
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev



More information about the dev mailing list