All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frederic Weisbecker <fweisbec@gmail.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	Sitsofe Wheeler <sitsofe@yahoo.com>,
	Lai Jiangshan <laijs@cn.fujitsu.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [TIP,BISECTED] Negative nice values have become big positive numbers
Date: Mon, 9 Mar 2009 09:41:34 +0100	[thread overview]
Message-ID: <20090309084132.GA5914@nowhere> (raw)
In-Reply-To: <20090309070824.GA9516@elte.hu>

On Mon, Mar 09, 2009 at 08:08:24AM +0100, Ingo Molnar wrote:
> 
> * Steven Rostedt <rostedt@goodmis.org> wrote:
> 
> > On Sun, 8 Mar 2009, Sitsofe Wheeler wrote:
> > 
> > > (Forgot to cc lkml. Resending...)
> > > 
> > > Formally negative nice values have started become very big in positive
> > > integers in -tip kernels:
> > > 
> > >     2 root      15 2147483647     0    0    0 S  0.0  0.0   0:00.00 kthreadd    
> > 
> > Is this the output of top?
> 
> seems so.
> 
> > > I've just finished bisecting down to this commit:
> > > 
> > > commit 1427cdf0592368bdec57276edaf714040ee8744f
> > > Author: Lai Jiangshan <laijs@cn.fujitsu.com>
> > > Date:   Fri Mar 6 17:21:47 2009 +0100
> > 
> > $ git show 1427cdf0592368bdec57276edaf714040ee8744f  | diffstat
> >  include/linux/ftrace.h       |    3 +
> >  kernel/trace/Kconfig         |    6 ++
> >  kernel/trace/Makefile        |    1 
> >  kernel/trace/trace.c         |   56 +++++++++++++++++++++++++++
> >  kernel/trace/trace.h         |   12 +++++
> >  kernel/trace/trace_bprintk.c |   87 
> > +++++++++++++++++++++++++++++++++++++++++++
> >  kernel/trace/trace_output.c  |   75 +++++++++++++++++++++++++++++++++++++
> >  7 files changed, 240 insertions(+)
> > 
> > I find it hard to believe that this would cause normal nice 
> > values to be messed up. The only file that could could come 
> > close to messing with nice values in top is ftrace.h:
> 
> Correct - maybe it's these two nearby commits that cause the 
> problems:
> 
>  fef20d9: vsprintf: unify the format decoding layer for its 3 users
>  4370aa4: vsprintf: add binary printf
> 
> they do affect generic code. If we broke vsnprintf (which the 
> nice value output code uses) then that might be a plausible 
> explanation.
> 
> 	Ingo


Thanks for this report Sitsofe. I have some ideas about the origin of this bug.
Anyway I'm in the middle of moving to another town. There are very good chances
that I send a fix tomorrow but not today.

Thanks.


  reply	other threads:[~2009-03-09  8:41 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-08 23:18 [TIP,BISECTED] Negative nice values have become big positive numbers Sitsofe Wheeler
2009-03-08 23:49 ` Steven Rostedt
2009-03-09  7:08   ` Ingo Molnar
2009-03-09  8:41     ` Frederic Weisbecker [this message]
2009-03-09 12:56       ` Sitsofe Wheeler
2009-03-09  8:39   ` Sitsofe Wheeler
2009-03-09 20:15 ` Frederic Weisbecker
2009-03-10  0:12   ` Sitsofe Wheeler
2009-03-10 10:03     ` Frederic Weisbecker
2009-03-10 12:18   ` [tip:core/printk] vsprintf: fix bug in negative value printing Frederic Weisbecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090309084132.GA5914@nowhere \
    --to=fweisbec@gmail.com \
    --cc=laijs@cn.fujitsu.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rostedt@goodmis.org \
    --cc=sitsofe@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.