poll-loop: More strictly rate-limit high CPU use logging.
authorBen Pfaff <blp@nicira.com>
Fri, 25 May 2012 20:54:38 +0000 (13:54 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 1 Jun 2012 21:40:34 +0000 (17:40 -0400)
120 messages per minute just isn't helpful.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/poll-loop.c

index ba6c3a1..516cf13 100644 (file)
@@ -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;