mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roger Larsson <roger.larsson@norran.net>
To: "Oliver Xymoron" <oxymoron@waste.org>,
	"Dieter Nützel" <Dieter.Nuetzel@hamburg.de>,
	"Stefan Westerfeld" <stefan@space.twc.de>
Cc: Robert Love <rml@tech9.net>, Andrea Arcangeli <andrea@suse.de>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	ReiserFS List <reiserfs-list@namesys.com>
Subject: Re: [PATCH] Preemption Latency Measurement Tool
Date: Fri, 21 Sep 2001 02:42:56 +0200	[thread overview]
Message-ID: <200109210047.f8L0lkv26045@maile.telia.com> (raw)
In-Reply-To: <Pine.LNX.4.30.0109201756400.20823-100000@waste.org>
In-Reply-To: <Pine.LNX.4.30.0109201756400.20823-100000@waste.org>

On Friday 21 September 2001 01.15, Oliver Xymoron wrote:
> On Fri, 21 Sep 2001, Dieter Nützel wrote:
> > > > > Right, the patch is returning the length preemption was unavailable
> > > > > (which is when a lock is held) in us. So it is indded 4ms.
> > > > >
> > > > > But, I think Dieter is saying he _sees_ 0.5~1s latencies (in the
> > > > > form of audio skips).  This is despite the 4ms locks being held.
> > > >
> > > > Yes, that's the case. During dbench 16,32,40,48, etc...
> > >
> > > You might actually be waiting on disk I/O and not blocked.
> > >
> > > Does your audio source depend on any files (eg mp3s) and if so, could
> > > they be moved to a ramfs? Do the skips go away then?
> >
> > Good point.
> >
> > I've copied one video (MP2) and one Ogg-Vorbis file into /dev/shm.
> > Little bit better but hiccup still there :-(
>
> Is anything else freezing up? Do you see your mouse stop moving, for
> instance? Do other apps stop getting scheduled (eg, ico)?
>
> You might try stracing artsd to see if it hangs at a particular syscall.
> Use -tt or -r for timestamps and pipe the output through tee (to a file on
> your ramfs).


Hi,

I tried playing a mp3 with noatun via artsd. Starting dbench 32 I get the
same kind of dropouts - and no indication with my latency profiling patch =>
no process with higher prio is waiting to run!

One of noatun or artsd is waiting for something else! (That is why I included
Stefan Westerfeld... artsd)

I noticed very nice improvement then reniceing (all) artsd and noatun.
(I did also change the buffer size in artsd down to 40 ms)

(This part most for Stefan...
So I thought - lets try to run artsd with RT prio - changed the option
HOW can it get RT prio when it is not suid? I guess it can not...

So I manually added suid bit - but then noatun could not connect with
artsd... bug?, backed out the suid change... but is behaves as it works,
could be that it has so short bursts that prio never get a chance to drop)

I have been doing some stracing but on noatun. It does some strange things...
It does some non blocking IO...

Then I tried to run Bennos latencytest, with generated output (sine).
pages locked, SCHED_FIFO prio - killed artsd before testing... (so it won't
do secondary buffering)
Result - did only get some very short skips.

Let artsd start - tried again after artsd had started.

Still getting very good results - I have a SB Live (kernel),
it can mix on board...
am I using that or do the sound pass artsd in all cases???

My conclusion is that it is noatun that is waiting for something.
Maybe the priorities can be the cause:

noatun runs => priority goes down over time (increased when all running 
processes has zero prio)
many dbench some with more prio than noatun => blocks the bursty, but CPU 
consuming, noatun
=> dropouts...

Look at top - one artsd stays on top (of top). But noatun drops...
dbenches comes and goes in between...

If this analysis is correct:
We really need to run RT processes with RT priorities!

It is also possible that multimedia applications needs to be rewritten to
this new situation, i.e. remove some workarounds...

/RogerL

-- 
Roger Larsson
Skellefteå
Sweden

  reply	other threads:[~2001-09-21  0:47 UTC|newest]

Thread overview: 66+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200109202253.RAA21082@waste.org>
2001-09-20 23:15 ` Oliver Xymoron
2001-09-21  0:42   ` Roger Larsson [this message]
2001-09-21  1:03     ` Alan Cox
2001-09-21  1:22       ` Andrea Arcangeli
2001-09-21  1:51         ` Rik van Riel
2001-09-21  1:38       ` Roger Larsson
2001-09-21  1:53         ` Roger Larsson
2001-09-21  2:08           ` Roger Larsson
2001-09-21  2:29             ` Rik van Riel
2001-09-21 16:24       ` Jussi Laako
2001-09-21 16:36         ` Alan Cox
2001-09-21 18:46         ` Thomas Sailer
2001-09-22 10:30           ` Jussi Laako
2001-09-21 16:18     ` Stefan Westerfeld
2001-09-21 20:18       ` Dieter Nützel
2001-09-21 21:47       ` Robert Love
2002-04-09  5:23 [PATCH] preemption latency measurement tool Robert Love
     [not found] <200109200758.f8K7wEG13675@zero.tech9.net>
2001-09-19 22:44 ` [PATCH] Preemption Latency Measurement Tool Robert Love
2001-09-20  1:40   ` Ignacio Vazquez-Abrams
2001-09-20  2:23     ` safemode
2001-09-20  1:13       ` David Lang
2001-09-20  2:57         ` Robert Love
2001-09-20  2:38     ` Robert Love
2001-09-20  6:31   ` Dieter Nützel
2001-09-20  6:31   ` Dieter Nützel
     [not found]   ` <20010920063143.424BD1E41A@Cantor.suse.de>
2001-09-20  6:41     ` Andrea Arcangeli
2001-09-20  7:57       ` Dieter Nützel
     [not found]       ` <200109200757.JAA60995@blipp.internet5.net>
2001-09-20 17:37         ` Roger Larsson
2001-09-20 21:29         ` Robert Love
2001-09-20 21:53           ` Dieter Nützel
2001-09-20 21:09       ` Robert Love
     [not found]       ` <20010920075751.6CA791E6B2@Cantor.suse.de>
2001-09-20  8:21         ` Andrea Arcangeli
2001-09-20 20:13           ` george anzinger
2001-09-20 20:38             ` Randy.Dunlap
2001-09-20 21:10         ` Robert Love
2001-09-20 21:35           ` Dieter Nützel
2001-09-20 22:03             ` Oliver Xymoron
2001-09-20 22:51               ` Dieter Nützel
2001-09-21  3:17               ` Robert Love
2001-09-21 15:48                 ` george anzinger
2001-09-22 21:09                   ` Dieter Nützel
2001-09-22 23:40                     ` safemode
2001-09-22 23:46                     ` Dieter Nützel
2001-09-23  0:15                     ` safemode
     [not found]                     ` <200109222340.BAA37547@blipp.internet5.net>
2001-09-23  0:38                       ` Roger Larsson
2001-09-23  1:42                         ` safemode
2001-09-23  3:02                       ` Robert Love
2001-09-23 16:43                         ` Roger Larsson
2001-09-23  0:42                     ` Dieter Nützel
2001-09-23  2:50                     ` Robert Love
2001-09-23  3:14                       ` george anzinger
2001-09-23  4:06                         ` Dieter Nützel
2001-09-23  2:54                     ` Robert Love
2001-09-23  2:58                     ` Robert Love
2001-09-23  2:44                   ` Robert Love
2001-09-20 20:01   ` Tobias Diedrich
2001-09-20 20:27   ` Robert Love
2001-09-20 22:01   ` Robert Love
2001-09-22  3:57   ` Andre Pang
2001-09-22  6:10   ` Robert Love
2001-09-22  7:22     ` Andre Pang
2001-09-23  3:18       ` george anzinger
2001-09-23  3:21       ` Robert Love
2001-09-23  7:05     ` Robert Love
2001-09-23 12:03       ` Andre Pang
2001-09-23 18:31       ` Robert Love

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=200109210047.f8L0lkv26045@maile.telia.com \
    --to=roger.larsson@norran.net \
    --cc=Dieter.Nuetzel@hamburg.de \
    --cc=andrea@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oxymoron@waste.org \
    --cc=reiserfs-list@namesys.com \
    --cc=rml@tech9.net \
    --cc=stefan@space.twc.de \
    /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

all inboxes | Powered by JetHome®