From cf1b8a921b4a1b660648925377783b7bbe92fb3e Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 25 May 2012 13:54:38 -0700 Subject: [PATCH] poll-loop: More strictly rate-limit high CPU use logging. 120 messages per minute just isn't helpful. Signed-off-by: Ben Pfaff --- lib/poll-loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/poll-loop.c b/lib/poll-loop.c index ba6c3a1a..516cf13d 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; -- 2.30.2