From: Ingo Molnar <mingo@elte.hu>
To: Kasper Sandberg <lkml@metanurb.dk>
Cc: Gene Heskett <gene.heskett@gmail.com>,
linux-kernel@vger.kernel.org,
Linus Torvalds <torvalds@linux-foundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
Con Kolivas <kernel@kolivas.org>, Nick Piggin <npiggin@suse.de>,
Mike Galbraith <efault@gmx.de>,
Arjan van de Ven <arjan@infradead.org>,
Peter Williams <pwil3058@bigpond.net.au>,
Thomas Gleixner <tglx@linutronix.de>,
caglar@pardus.org.tr, Willy Tarreau <w@1wt.eu>,
Mark Lord <lkml@rtr.ca>, Zach Carter <linux@zachcarter.com>,
buddabrod <buddabrod@gmail.com>
Subject: Re: [patch] CFS scheduler, -v6
Date: Fri, 27 Apr 2007 15:02:34 +0200 [thread overview]
Message-ID: <20070427130234.GA16558@elte.hu> (raw)
In-Reply-To: <20070427115344.GA30706@elte.hu>
* Ingo Molnar <mingo@elte.hu> wrote:
> > > Compared to mainline? I still think this is a 100% keeper for
> > > desktop users like me.
> >
> > Here its alot worse, just playing an ogg with ogg123 even without
> > anything reniced (X is 0), just pressing a link in konqueror can
> > make audio skip (ogg123 fails to fill the alsa buffer, and thus it
> > skips).
>
> update for lkml readers: this is some really 'catastrophic' condition
> triggering on your box. Here ogg123 just never skips on an older 750
> MHz box, which is 4-5 times slower than your 2GHz box - while i have
> _fourty nice-0 infinite loops_ running. I.e. at this clearly
> ridiculous load, at just 2.5% of CPU time ogg123 is just chugging
> along nicely and never leaves out a beat.
i've done some ogg123 testing on another box, which should be very
similar to yours (2GHz, 1 core used), running your .config on
2.6.21-cfs-v6.
I started an ogg123 instance and i also started up 10 infinite loops (at
nice-0) to create some competition for ogg123:
Audio Device: Advanced Linux Sound Architecture (ALSA) output
Playing: ./music.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Title: Track 01
system utilization:
top - 13:24:24 up 1 min, 3 users, load average: 2.79, 0.10, 0.21
Tasks: 184 total, 12 running, 172 sleeping, 0 stopped, 0 zombie
Cpu(s):100.0%us, 0.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1017616k total, 211548k used, 806068k free, 12936k buffers
ogg123 never skips. Then i cranked up the load to 50 infinite loops (!).
No problems whatsoever. No problems at 100 tasks either. No problems
with 250 (!) nice-0 infinite loops running either:
top - 13:11:54 up 3 min, 3 users, load average: 215.64, 82.67, 30.38
Tasks: 424 total, 254 running, 170 sleeping, 0 stopped, 0 zombie
Cpu(s): 99.8%us, 0.2%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1017616k total, 237868k used, 779748k free, 12916k buffers
Swap: 0k total, 0k used, 0k free, 155472k cached
ogg123 just never leaves out a beat, output buffer never goes below 90%:
Time: 03:14.10 [01:23.84] of 04:37.93 (133.0 kbps) Output Buffer 90.6%
then i increased the load to 350 tasks competing with ogg123 for the CPU
and ogg123 is still going strong:
Time: 04:27.66 [00:10.28] of 04:37.93 (107.1 kbps) Output Buffer 87.5%
at 500 tasks it's still borderline (output buffer sometimes dipping as
low as 50%) and i thought 550 tasks would be it - but it needed 600 (!)
nice-0 (!) infinite loops to compete for one poor CPU for me to hear the
very first skip. And even at 600 tasks:
top - 13:17:17 up 8 min, 3 users, load average: 567.82, 338.00, 151.65
Tasks: 774 total, 604 running, 170 sleeping, 0 stopped, 0 zombie
Cpu(s): 99.9%us, 0.1%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
the music is still enjoyable. It needed 650 tasks for the skipping to
become frequent and unbearable.
so ogg123 under CFS is _ridiculously_ robust in all my testing and all
systems i've tried.
so i think it has to be some other variable that causes that
catastrophic skipping on your system. Could you try a few things to help
me debug this problem:
- make sure ogg123 is the only task accessing the sound hardware. E.g.
check via 'top' that no other task (such as esd) is trying to access
it at the same time.
- please start the ogg123 instance in a plain VGA text console, not
under X. This would take X and the xterm out of the picture. (ogg123
updates the terminal frequently)
- To exclude the possibility of FS and IO interaction, could you copy
your ogg file to /dev/shm and play it from there? Is it still
skipping?
if after these two tests ogg123 is still skipping badly for you then it
would be nice to run ogg123 the following way:
strace -f -ttt -TTT -o ogg123-trace.txt ogg123 ./your-music.ogg
and send me ogg123-trace.txt privately (compressed). Based on that
output i'll try to come up with some more active debugging method.
Thanks!
Ingo
next prev parent reply other threads:[~2007-04-27 13:03 UTC|newest]
Thread overview: 89+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-25 21:47 Ingo Molnar
2007-04-26 2:14 ` Gene Heskett
2007-04-26 3:29 ` Nick Piggin
2007-04-26 3:49 ` Andrew Morton
2007-04-26 4:16 ` William Lee Irwin III
2007-04-26 8:27 ` Ingo Molnar
2007-04-26 9:18 ` Ingo Molnar
2007-04-26 14:06 ` Redeeman
2007-04-26 14:41 ` Gene Heskett
2007-04-26 20:09 ` Kasper Sandberg
2007-04-26 21:21 ` Gene Heskett
2007-04-27 4:02 ` Mike Galbraith
2007-04-27 6:01 ` Mike Galbraith
2007-04-27 11:53 ` Ingo Molnar
2007-04-27 11:55 ` Ingo Molnar
2007-04-27 13:39 ` Thomas Gleixner
2007-04-27 13:41 ` Ingo Molnar
2007-04-27 13:44 ` Thomas Gleixner
2007-04-28 15:35 ` Kasper Sandberg
2007-04-28 20:45 ` Lee Revell
2007-04-29 1:18 ` Kasper Sandberg
2007-04-29 5:30 ` Willy Tarreau
2007-04-29 6:45 ` Mike Galbraith
2007-04-29 6:59 ` Ingo Molnar
2007-04-29 7:16 ` Willy Tarreau
2007-04-29 7:30 ` Ingo Molnar
2007-04-29 7:38 ` Willy Tarreau
2007-04-29 8:00 ` Ingo Molnar
2007-04-29 8:02 ` Willy Tarreau
2007-04-29 9:52 ` Con Kolivas
2007-04-29 10:19 ` Mike Galbraith
2007-04-29 7:54 ` William Lee Irwin III
2007-04-29 8:03 ` Ingo Molnar
2007-04-29 8:16 ` William Lee Irwin III
2007-04-29 8:13 ` Willy Tarreau
2007-04-29 8:58 ` William Lee Irwin III
2007-04-29 8:11 ` Mike Galbraith
2007-04-29 10:30 ` Thomas Gleixner
2007-04-29 10:33 ` William Lee Irwin III
2007-04-29 10:48 ` Kasper Sandberg
2007-04-29 11:25 ` Thomas Gleixner
2007-04-29 10:53 ` Con Kolivas
2007-04-29 11:11 ` Bill Huey
2007-04-29 11:50 ` Thomas Gleixner
2007-04-29 11:11 ` Willy Tarreau
2007-04-29 11:46 ` Con Kolivas
2007-04-29 12:09 ` Paolo Ciarrocchi
2007-04-29 15:39 ` Gene Heskett
2007-04-29 11:59 ` Thomas Gleixner
2007-04-29 12:25 ` Willy Tarreau
2007-04-29 12:00 ` Kasper Sandberg
2007-04-29 12:13 ` Thomas Gleixner
2007-04-29 12:21 ` Kasper Sandberg
2007-04-29 12:55 ` William Lee Irwin III
2007-04-29 13:37 ` Thomas Gleixner
2007-05-01 7:55 ` Nick Piggin
2007-05-01 13:00 ` William Lee Irwin III
2007-04-29 20:30 ` Mark Lord
2007-04-29 15:28 ` Gene Heskett
2007-04-29 7:59 ` Kasper Sandberg
2007-04-29 8:05 ` Ingo Molnar
2007-04-29 15:42 ` Ray Lee
2007-04-29 17:09 ` Kasper Sandberg
2007-04-29 6:47 ` Ingo Molnar
[not found] ` <20070429170908.GA31417@elte.hu>
[not found] ` <20070429173902.GA4349@elte.hu>
2007-04-30 17:45 ` 3d smoothness (was: Re: [patch] CFS scheduler, -v6) Kasper Sandberg
2007-04-30 20:17 ` Ingo Molnar
2007-04-30 20:44 ` Kasper Sandberg
2007-04-27 12:52 ` [patch] CFS scheduler, -v6 William Lee Irwin III
2007-04-27 13:02 ` Ingo Molnar [this message]
2007-04-27 21:16 ` Lee Revell
2007-04-26 22:48 ` Con Kolivas
2007-04-27 0:39 ` Gene Heskett
2007-04-27 0:57 ` Con Kolivas
2007-04-27 1:03 ` Gene Heskett
2007-04-27 20:54 ` Bill Davidsen
2007-04-26 16:05 ` Mike Galbraith
2007-04-26 19:27 ` Thomas Gleixner
2007-04-26 19:35 ` Ingo Molnar
2007-04-26 19:42 ` Thomas Gleixner
2007-04-26 20:11 ` Ingo Molnar
2007-04-27 13:19 ` Mark Lord
2007-04-27 13:22 ` Mark Lord
2007-04-27 13:45 ` Ingo Molnar
2007-04-28 12:45 ` Srivatsa Vaddagiri
2007-04-28 13:53 ` Ingo Molnar
2007-04-28 15:23 ` Srivatsa Vaddagiri
2007-04-28 15:22 ` Ingo Molnar
2007-04-28 15:28 ` Srivatsa Vaddagiri
2007-04-27 21:59 Art Haas
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=20070427130234.GA16558@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@linux-foundation.org \
--cc=arjan@infradead.org \
--cc=buddabrod@gmail.com \
--cc=caglar@pardus.org.tr \
--cc=efault@gmx.de \
--cc=gene.heskett@gmail.com \
--cc=kernel@kolivas.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@zachcarter.com \
--cc=lkml@metanurb.dk \
--cc=lkml@rtr.ca \
--cc=npiggin@suse.de \
--cc=pwil3058@bigpond.net.au \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=w@1wt.eu \
/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®