public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Frans Pop <elendil@planet.nl>
To: Frederik Himpe <fhimpe@telenet.be>
Cc: linux-kernel@vger.kernel.org, Arjan van de Ven <arjan@linux.intel.com>
Subject: Re: Audio skipping with 2.6.24.4 and 2.6.25-rc9
Date: Sun, 13 Apr 2008 00:11:15 +0200	[thread overview]
Message-ID: <200804130011.16616.elendil@planet.nl> (raw)
In-Reply-To: <pan.2008.04.12.20.19.55@telenet.be>

Frederik Himpe wrote:
> I'm not too sure how I should use latencytop and interpret its results. I
> start latencytop, and reproduce the problem while rhythmbox is playing. It
> seems that it automatically changes the selected application in the bottom
> list after a few seconds, probably based on the CPU usage, where it
> selects most of the time either compiz or X. The upper half of latencytop
> is always empty, for all applications. In the lower half, it shows for all
> applications something like:
> 
> Process X (7972)
> Scheduler: waiting for cpu     43.5 msec         43.5 msec
> 
> Only the times differ between the different processes.

Had the same problem until just a few days ago when I figured it out mostly 
by accident.

You need to 'echo -n 1 > /proc/sys/kernel/latencytop' to enable latencytop 
tracing to get more useful info. It's something that's badly documented 
unfortunately. Make sure you disable it again when you're done so you don't 
keep the tracing overhead.
Not sure why starting the latencytop application does not enable tracing 
automatically, or at least provides an option to do so.

I also agree that the automatic switches to other apps are strange. Adding a 
particular app name or PID on the command line does not seem to have any 
effect.

Unfortunately the latencytop website also misses usage info and seems 
generally outdated as it still says that a patch to the kernel is required.

CC'ing Arjen in the hope that he can find some time to improve this.

Cheers,
FJP

      parent reply	other threads:[~2008-04-12 22:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-12 16:13 Audio skipping with 2.6.24.4 and 2.6.25-rc9 Frederik Himpe
2008-04-12 17:51 ` Markus Trippelsdorf
2008-04-12 18:06   ` Frederik Himpe
2008-04-12 18:19     ` Markus Trippelsdorf
2008-04-12 19:19 ` Carlos R. Mafra
2008-04-12 20:19   ` Frederik Himpe
2008-04-12 20:30     ` Carlos R. Mafra
2008-04-12 22:11     ` Frans Pop [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=200804130011.16616.elendil@planet.nl \
    --to=elendil@planet.nl \
    --cc=arjan@linux.intel.com \
    --cc=fhimpe@telenet.be \
    --cc=linux-kernel@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