lkml.org 
[lkml]   [2011]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] nohz: remove "Switched to NOHz mode" debugging messages
On Tue, Aug 23, 2011 at 12:15:51PM -0700, Stephen Boyd wrote:
> On 08/23/2011 12:12 PM, Joe Perches wrote:
> > On Tue, 2011-08-23 at 13:20 +0200, Heiko Carstens wrote:
> >> From: Heiko Carstens <heiko.carstens@de.ibm.com>
> >>
> >> When performing cpu hotplug tests the kernel printk log buffer gets flooded
> >> with pointless "Switched to NOHz mode..." messages. Especially when afterwards
> >> analyzing a dump this might have removed more interesting stuff out of the
> >> buffer.
> >> Assuming that switching to NOHz mode simply works just remove the printk.
> >> diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c
> > []
> >> -
> >> - printk(KERN_INFO "Switched to NOHz mode on CPU #%d\n", smp_processor_id());
> > Though I don't know if these are actually particularly
> > useful messages, perhaps pr_info_ratelimited() might
> > be appropriate instead.
>
> Or perhaps a printk_once() would be good. Presumably the second switch
> to NOHz mode wouldn't be as dangerous as the first.

Let's just remove them.


\
 
 \ /
  Last update: 2011-08-24 07:55    [W:0.123 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site