From: Con Kolivas <kernel@kolivas.org>
To: "Jack O'Quin" <joq@io.com>
Cc: linux kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>, Ingo Molnar <mingo@elte.hu>,
Alexander Nyberg <alexn@dsv.su.se>,
Zwane Mwaikambo <zwane@linuxpower.ca>
Subject: Re: [PATCH] sched - Implement priority and fifo support for SCHED_ISO
Date: Tue, 01 Feb 2005 15:56:14 +1100 [thread overview]
Message-ID: <41FF0BEE.7080106@kolivas.org> (raw)
In-Reply-To: <87u0owc2iy.fsf@sulphur.joq.us>
Jack O'Quin wrote:
> Con Kolivas <kernel@kolivas.org> writes:
>
>
>>Good work. Looks like you're probably right about the accounting. It
>>may be as simple as the fact that it is on the timer tick that we're
>>getting rescheduled and this ends up being accounted as more since the
>>accounting happens only at the scheduler tick. A test run setting
>>iso_cpu at 100% should tell you if it's accounting related - however
>>the RLIMIT_RT_CPU patch is accounted in a similar way so I'm not sure
>>there isn't another bug hanging around.
>
>
>>I'm afraid on my hardware it has been behaving just like SCHED_FIFO
>>for some time which is why I've been hanging on your results.
>
>
> My guess is that most of this test fits inside that huge cache of
> yours, making it run much faster than on my system. You probably need
> to increase the number of clients to get comparable results.
Bah increasing the clients from 14 to 20 the script just fails in some
meaningless way
Killed
[con@laptop jack_test4.1]$ [1/1] jack_test4_client (17/20) stopped.
[1/1] jack_test4_client (18/20) stopped.
./run.sh: line 153: 7504 Broken pipe ${CMD} >>${LOG} 2>&1
[1/1] jack_test4_client ( 2/20) stopped.
./run.sh: line 153: 7507 Broken pipe ${CMD} >>${LOG} 2>&1
even before it starts :(
>
> When you say just like SCHED_FIFO, do you mean completely clean? Or
> are you still getting unexplained xruns? If that's the case, we need
> to figure out why and eliminate them.
On my P4 with the results I posted I am getting no xruns whatsoever with
either SCHED_FIFO or ISO. As for the pentiumM I've given up trying to
use that for latency runs since even with everything shut down and the
file system with journal off running SCHED_FIFO I get 8ms peaks every 20
seconds. I'll keep blaming reiserfs for that one. Only dropping to
single user mode and unmounting filesystems can get rid of them.
> The reason I can measure an effect here is that the test is heavy
> enough to stress my system and the system is RT-clean enough for
> SCHED_FIFO to work properly. (That's no surprise, I've been running
> it that way for years.)
Yeah I understand. I'm kinda stuck with hardware that either doesn't
have a problem, or an installation too flawed to use.
> It did work better. On the first run, there were a couple of real bad
> xruns starting up. But, the other two runs look fairly clean.
>
> http://www.joq.us/jack/benchmarks/sched-iso-fix.100
>
> With a compile running, bad xruns and really long delays become a
> serious problem again.
>
> http://www.joq.us/jack/benchmarks/sched-iso-fix.100+compile
>
> Comparing the summary statistics with the 90% run, suggests that the
> same problems occur in both cases, but not as often at 100%.
>
> http://www.joq.us/jack/benchmarks/.SUMMARY
>
> With these latency demands, the system can't ever pick the wrong
> thread on exit from even a single interrupt, or we're screwed. I am
> pretty well convinced this is not happening reliably (except with
> SCHED_FIFO).
Looking at the code I see some bias towards keeping the cpu count too
high (it decays too slowly) but your results confirm a bigger problem
definitely exists. At 100% it should behave the same as SCHED_FIFO
without mlock, and it is not in your test. I simply need to look at my
code harder.
Cheers,
Con
prev parent reply other threads:[~2005-02-01 4:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-26 9:47 [PATCH] sched - Implement priority and fifo support for SCHED_ISO Con Kolivas
2005-01-31 18:54 ` Jack O'Quin
2005-01-31 20:15 ` Con Kolivas
2005-01-31 20:30 ` Con Kolivas
2005-01-31 21:04 ` Jack O'Quin
2005-01-31 22:51 ` Jack O'Quin
2005-01-31 23:01 ` Con Kolivas
2005-02-01 2:27 ` Jack O'Quin
2005-02-01 2:46 ` Con Kolivas
2005-02-01 4:44 ` Jack O'Quin
2005-02-01 4:56 ` Con Kolivas [this message]
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=41FF0BEE.7080106@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@osdl.org \
--cc=alexn@dsv.su.se \
--cc=joq@io.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=zwane@linuxpower.ca \
/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