From: Andrew Morton <akpm@linux-foundation.org>
To: Corrado Zoccolo <czoccolo@gmail.com>
Cc: linux-kernel@vger.kernel.org, Arjan van de Ven <arjan@infradead.org>
Subject: Re: Negative values in /proc/latency_stats
Date: Mon, 2 Feb 2009 20:55:45 -0800 [thread overview]
Message-ID: <20090202205545.4e1a32ea.akpm@linux-foundation.org> (raw)
In-Reply-To: <4e5e476b0901310542n796dafbem5c656da07a2f8a56@mail.gmail.com>
On Sat, 31 Jan 2009 14:42:20 +0100 Corrado Zoccolo <czoccolo@gmail.com> wrote:
> Hello,
> I found negative numbers sometimes appear in /proc/latency_stats
> (vanilla kernel 2.6.29-rc3, on x86 cpu, configuration attached)
>
> [corrado@localhost ~]$ while sleep 1; do grep -- - /proc/latency_stats
> >> neg_stats; done
> ^Z
> [1]+ Stopped sleep 1
> [corrado@localhost ~]$ cat neg_stats
> 1 -486373534 -486373534 sys_rt_sigsuspend sysenter_do_call
> 1 -486373534 -486373534 sys_rt_sigsuspend sysenter_do_call
> 1 -486373534 -486373534 sys_rt_sigsuspend sysenter_do_call
>
>
> I suspect this can be the cause for
> https://bugs.launchpad.net/ubuntu/+source/latencytop/+bug/297776 , as
> I saw it happening on my machine during a kernel recompilation.
>
<discovers kernel/latencytop.c>
- It implements a kernel/userspace interface yet it has zero documentation.
- It was committed with a 2-line changelog which tells us practically
nothing.
- It implements an up-to-1536-loops loop followed by an
up-to-384-loops loop on a scheduler hotpath.
All under spin_lock_irqsave()!
- store_stacktrace() unnecessarily initalises trace.skip.
- account_scheduler_latency() should be an inline:
if (unlikely(latencytop_enabled))
__account_scheduler_latency(...);
- ditto clear_all_latency_tracing()
- it's schizophrenic in its placement of spaces around semicolons in
`for' statements.
- it seems to only be implemented if CONFIG_FAIR_GROUP_SCHED=y.
- lstats_fops should be const.
And it emits negative numbers too ;)
next prev parent reply other threads:[~2009-02-03 4:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-31 13:42 Negative values in /proc/latency_stats Corrado Zoccolo
2009-02-02 7:42 ` Harik
2009-02-03 4:55 ` Andrew Morton [this message]
2009-02-03 15:19 ` Arjan van de Ven
2009-02-04 0:16 ` Arjan van de Ven
2009-02-04 5:46 ` Andrew Morton
2009-02-04 5:55 ` Arjan van de Ven
2009-02-06 22:50 ` Corrado Zoccolo
2009-02-05 0:57 ` Tim Pepper
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=20090202205545.4e1a32ea.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=arjan@infradead.org \
--cc=czoccolo@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox