From: "Stephen C. Tweedie" <sct@redhat.com>
To: linux-sound@vger.kernel.org
Subject: Re: [rtl] Low-latency patches working GREAT (<2.9ms audio latency), see testresults ,but ISDN troubl
Date: Mon, 30 Aug 1999 11:13:02 +0000 [thread overview]
Message-ID: <marc-linux-sound-93601180925552@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-93588421815439@msgid-missing>
Hi,
On Mon, 30 Aug 1999 00:09:51 -0600, yodaiken@chelm.cs.nmt.edu said:
> I don't see how your code avoids reschedules from non SCHED_FIFO/RR
> processes. And I'm not convinced tha even then, it is reasonable to
> allow this. But first explain why a screen saver will not trigger
> the same behavior. The screen saver will do fast writes to the screen,
> and these will trigger io for X and for the saver itself. Both operations
> will set needs_resched. So we expect io performance to get worse
> in this case. Right?
Is the screensaver consuming significant CPU time? If so, it is running
with fewer scheduling credits than (say) the bdflush code. A wakeup of
the screensaver will not cause need_resched to be set (reschedule_idle
doesn't set need_resched unless the woken process has significantly more
scheduling credits than the running task).
Is the screensaver using even less CPU than bdflush? In that case, it
is assumed to be a more latency-critical task, and if woken up, it will
set need_resched. With Ingo's diff, the only change here is that the
reschedule will now occur sooner rather than later, which is exactly
correct for a mostly-idle task. If the screensaver is in fact waking up
like this all the time, then it should rapidly consume enough scheduling
credits to fall below the bdflush priority and to stop preempting.
I don't understand why this behaviour is undesirable.
--Stephen
next prev parent reply other threads:[~1999-08-30 11:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-28 23:55 [rtl] Low-latency patches working GREAT (<2.9ms audio latency), see testresults ,but ISDN troubl yodaiken
1999-08-29 0:24 ` Alan Cox
1999-08-29 1:59 ` yodaiken
1999-08-29 6:21 ` [rtl] Low-latency patches working GREAT (<2.9ms audio latency), Linus Torvalds
1999-08-29 7:13 ` [rtl] Low-latency patches working GREAT (<2.9ms audio latency), see testresults ,but ISDN troubl Ingo Molnar
1999-08-29 7:15 ` Ingo Molnar
1999-08-29 7:17 ` Ingo Molnar
1999-08-29 13:59 ` yodaiken
1999-08-29 14:22 ` David Olofson
1999-08-29 20:48 ` yodaiken
1999-08-30 6:09 ` yodaiken
1999-08-30 6:55 ` Ingo Molnar
1999-08-30 7:30 ` Ingo Molnar
1999-08-30 8:18 ` yodaiken
1999-08-30 9:45 ` Ingo Molnar
1999-08-30 11:13 ` Stephen C. Tweedie [this message]
1999-09-04 20:41 ` yodaiken
1999-09-06 7:43 ` [rtl] Low-latency patches working GREAT (<2.9ms audio latency), Andrea Arcangeli
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=marc-linux-sound-93601180925552@msgid-missing \
--to=sct@redhat.com \
--cc=linux-sound@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