From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
Thomas Gleixner <tglx@linutronix.de>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>,
Steven Rostedt <srostedt@redhat.com>
Subject: Re: [PATCH 1/2] ftrace: single CPU tracers use CPU clock
Date: Sat, 26 Jul 2008 17:26:50 +0200 [thread overview]
Message-ID: <20080726152650.GA7823@elte.hu> (raw)
In-Reply-To: <Pine.LNX.4.58.0807261034590.13726@gandalf.stny.rr.com>
* Steven Rostedt <rostedt@goodmis.org> wrote:
> > other tracers care too - for example to have the right chronology of
> > trace events. The scheduler cares too. What kind of worst-case
> > cross-CPU effects have you observed?
>
> 1: bash-3498 [01] 5459.824565: 0:140:R + 7971:120:R
> 2: <idle>-0 [00] 5459.824836: 0:140:R ==> 7971:120:R
> 3: bash-3498 [01] 5459.824984: 3498:120:S ==> 0:140:R
> 4: <idle>-0 [01] 5459.825342: 0:140:R ==> 7971:120:R
> 5: ls-7971 [00] 5459.825380: 7971:120:R + 3: 0:S
> 6: ls-7971 [00] 5459.825384: 7971:120:R ==> 3: 0:R
> 7: migration/0-3 [00] 5459.825401: 3: 0:S ==> 0:140:R
> 8: ls-7971 [01] 5459.825565: 7971:120:R + 598:115:S
>
> The above was from my tutorial at OLS. I added the annotated numbers
> at the beginning of the line. This is the sched_switch tracer.
so it's off by 60 usecs. That matters to the chronology of SMP events,
and to the irqsoff and preemptoff tracers - if we update the clock
incorrectly - i.e. if we modify the clock across CPUs so that a running
CPU can see an 'involuntary' jump in local time.
that should be fixed then - and all tracers (and the scheduler) will
improve - instead of having this special-case.
Ingo
next prev parent reply other threads:[~2008-07-26 15:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-25 22:00 [PATCH 0/2] ftrace minor updates Steven Rostedt
2008-07-25 22:00 ` [PATCH 1/2] ftrace: single CPU tracers use CPU clock Steven Rostedt
2008-07-26 12:40 ` Ingo Molnar
2008-07-26 13:15 ` Steven Rostedt
2008-07-26 13:21 ` Ingo Molnar
2008-07-26 15:03 ` Steven Rostedt
2008-07-26 15:26 ` Ingo Molnar [this message]
2008-07-26 18:23 ` Steven Rostedt
2008-07-25 22:00 ` [PATCH 2/2] ftrace: disable tracing on acpi idle calls Steven Rostedt
2008-07-26 12:42 ` Ingo Molnar
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=20080726152650.GA7823@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=srostedt@redhat.com \
--cc=tglx@linutronix.de \
--cc=torvalds@osdl.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