These messages rarely report bugs any longer, but they are still useful
occasionally for debugging, so this commit reduces their severity without
deleting them.

It might make sense to increase the threshold for printing these.

Signed-off-by: Ben Pfaff <b...@nicira.com>
---
 lib/timeval.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/timeval.c b/lib/timeval.c
index 3d339e4..0fd185e 100644
--- a/lib/timeval.c
+++ b/lib/timeval.c
@@ -487,12 +487,12 @@ log_poll_interval(long long int last_wakeup)
     if (n_samples > 10 && interval > mean_interval * 8 && interval > 50 * 16) {
         static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 3);
 
-        if (!VLOG_DROP_WARN(&rl)) {
+        if (!VLOG_DROP_INFO(&rl)) {
             const struct rusage *last_rusage = get_recent_rusage();
             struct rusage rusage;
 
             getrusage(RUSAGE_SELF, &rusage);
-            VLOG_WARN("%lld ms poll interval (%lld ms user, %lld ms system) "
+            VLOG_INFO("%lld ms poll interval (%lld ms user, %lld ms system) "
                       "is over %u times the weighted mean interval %u ms "
                       "(%u samples)",
                       now - last_wakeup,
@@ -504,19 +504,19 @@ log_poll_interval(long long int last_wakeup)
                       (mean_interval + 8) / 16, n_samples);
             if (rusage.ru_minflt > last_rusage->ru_minflt
                 || rusage.ru_majflt > last_rusage->ru_majflt) {
-                VLOG_WARN("faults: %ld minor, %ld major",
+                VLOG_INFO("faults: %ld minor, %ld major",
                           rusage.ru_minflt - last_rusage->ru_minflt,
                           rusage.ru_majflt - last_rusage->ru_majflt);
             }
             if (rusage.ru_inblock > last_rusage->ru_inblock
                 || rusage.ru_oublock > last_rusage->ru_oublock) {
-                VLOG_WARN("disk: %ld reads, %ld writes",
+                VLOG_INFO("disk: %ld reads, %ld writes",
                           rusage.ru_inblock - last_rusage->ru_inblock,
                           rusage.ru_oublock - last_rusage->ru_oublock);
             }
             if (rusage.ru_nvcsw > last_rusage->ru_nvcsw
                 || rusage.ru_nivcsw > last_rusage->ru_nivcsw) {
-                VLOG_WARN("context switches: %ld voluntary, %ld involuntary",
+                VLOG_INFO("context switches: %ld voluntary, %ld involuntary",
                           rusage.ru_nvcsw - last_rusage->ru_nvcsw,
                           rusage.ru_nivcsw - last_rusage->ru_nivcsw);
             }
-- 
1.7.2.5

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to