From: Peter Zijlstra <peterz@infradead.org>
To: Nicholas Mc Guire <der.herr@hofr.at>
Cc: Thomas Gleixner <tglx@linutronix.de>,
LKML <linux-kernel@vger.kernel.org>,
linux-rt-users <linux-rt-users@vger.kernel.org>,
Ingo Molnar <mingo@elte.hu>, Carsten Emde <ce@ceag.ch>,
Clark Williams <williams@redhat.com>,
"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
Kumar Gala <galak@gate.crashing.org>,
Ralf Baechle <ralf@linux-mips.org>, rostedt <rostedt@goodmis.org>
Subject: Re: On migrate_disable() and latencies
Date: Mon, 25 Jul 2011 10:21:50 +0200 [thread overview]
Message-ID: <1311582110.2617.40.camel@laptop> (raw)
In-Reply-To: <20110722174500.GB32014@opentech.at>
On Fri, 2011-07-22 at 19:45 +0200, Nicholas Mc Guire wrote:
> > Therefore the worst case latency is in the order of
> > max-migrate-disable-period * nr-cpus.
>
> + something like sum of (interrupt rate [n] /
> max-migrate-disable-period * nr-cpus) * top-half handler [n]. if you
> go on with theoretical WCET analysis on multicore systems you will
> always end up at the conclusion that only UP is suitable for RT....
+ preemption cost + migration costs etc.. :-)
> > Currently we have no means of measuring these latencies, this is
> > something we need to grow, I think Steven can fairly easy craft a
> > migrate_disable runtime tracer -- it needs to use t->se.sum_exec_runtime
> > for measure so as to only count the actual time spend on the task and
> > ignore any time it was blocked.
>
> well this is a similar problem as with the WCET "calculations" - you can
> calculate theoretical worst cases - but the question is what the actual
> distribution of "stacking" is and thus what the probability is that you
> manage to stack tasks in this way.
Sure, and yes those are thing to look at.
> One could I guess put some relatively simple instrumentation in to monitor
> this stacking problem - quit independant of actually measuring the times
Yes, that would be very easy to do.
> > Once we have this, its back to the old game of 'lock'-breaking.
> >
> if the stacking problem does not practically exist then it might not be worth
> the effort to resolve it with elaborate lock breaking.
Fully agreed, its just that I wanted to share my understanding of the
problem space (both Thomas and I thought on-list email was a better
location that private IRC logs ;-), and we need to get the know the
problem before we can decide to ignore it ;-)
Ignoring unknowns always leads to surprises.
next prev parent reply other threads:[~2011-07-25 8:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-22 10:19 On migrate_disable() and latencies Peter Zijlstra
2011-07-22 10:49 ` Peter Zijlstra
2011-07-22 14:57 ` Peter Zijlstra
2011-07-22 17:45 ` Nicholas Mc Guire
2011-07-25 8:21 ` Peter Zijlstra [this message]
2011-07-23 0:39 ` Paul E. McKenney
2011-07-25 8:30 ` Peter Zijlstra
2011-07-25 21:17 ` Paul E. McKenney
2011-07-27 11:13 ` Peter Zijlstra
2011-07-27 18:30 ` Paul E. McKenney
2011-07-28 5:50 ` Yong Zhang
2011-07-28 7:01 ` Thomas Gleixner
2011-07-28 7:10 ` Yong Zhang
2011-07-28 7:54 ` Nicholas Mc Guire
2011-07-28 12:05 ` Paul E. McKenney
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=1311582110.2617.40.camel@laptop \
--to=peterz@infradead.org \
--cc=ce@ceag.ch \
--cc=der.herr@hofr.at \
--cc=galak@gate.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulmck@linux.vnet.ibm.com \
--cc=ralf@linux-mips.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=williams@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).