Bug#633815: jackd2: High CPU usage following sleep (top reports 190% on quad-core)

2011-07-15 Thread Joel Roth
On Thu, Jul 14, 2011 at 07:25:39PM +0200, Adrian Knoth wrote:
> On 07/14/11 01:49, Joel Roth wrote:
> 
> Hi!
> 
> > Package: jackd2
> > Version: 1.9.6~dfsg.1-2
> > Severity: normal
> > 
> > Observed when running jackd with user privileges.
> > 
> > System is extremely sluggish until I kill jackd.
> 
> Can we have some numbers, please?

> Many people run jackd2 with user privileges, that's actually the
> recommended way, and none of them experiences a substantial slowdown.
> 
> So we need to find out what's wrong with your system or particular
> setup.
> 
> I suggest a procedure like this:
> 
>0. Update to the current package version
>1. Stop jackd (killall -9 jackd, if need be)
>2. Start top, htop or another CPU
>3. Start jackd -d dummy
> 
> This must not trigger an considerable increase in CPU usage. Then, stop
> this jackd and start your real jackd. Which parameters do you use? Which
> soundcard is it?
 
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series
Chipset High Definition Audio (rev 06)

A couple of naive attempts with version 1.9.7~dfsg-1
don't show any slowdown.

I'll look into this further. My parameters are mostly defaults:

jackd -d alsa -d hw:0,0 -r 44100 -H

Thanks for your attention.


> Increasing the buffer size will ease the timing and hence lower the CPU
> load. Assuming you use ALSA:
> 
>$ jackd -d alsa -p 2048  --> relaxed timing
>$ jackd -d alsa -p 128   --> stresses the CPU a bit more
> 
> In case of firewire audio interfaces, there has been made a fix recently
> that triggered tons of error messages to be printed on the console, thus
> making the entire system awfully slow. The newest package has the fix.
> 
> 
> Cheers

-- 
Joel Roth



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#633815: jackd2: High CPU usage following sleep (top reports 190% on quad-core)

2011-07-14 Thread Jonas Smedegaard
On 11-07-14 at 07:25pm, Adrian Knoth wrote:
> On 07/14/11 01:49, Joel Roth wrote:
> 
> Hi!
> 
> > Package: jackd2
> > Version: 1.9.6~dfsg.1-2
> > Severity: normal
> > 
> > Observed when running jackd with user privileges.
> > 
> > System is extremely sluggish until I kill jackd.
> 
> Can we have some numbers, please?
> 
> Many people run jackd2 with user privileges, that's actually the 
> recommended way, and none of them experiences a substantial slowdown.

Important detail from subject seems missing in the email content: 
Problem occurs after *sleep*.

I experience the same (just have been lazy and not reported it).

It does not occur always, but I have experienced it with both alsa, 
firewire and net backends.


 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private


signature.asc
Description: Digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#633815: jackd2: High CPU usage following sleep (top reports 190% on quad-core)

2011-07-14 Thread Adrian Knoth
On 07/14/11 01:49, Joel Roth wrote:

Hi!

> Package: jackd2
> Version: 1.9.6~dfsg.1-2
> Severity: normal
> 
> Observed when running jackd with user privileges.
> 
> System is extremely sluggish until I kill jackd.

Can we have some numbers, please?

Many people run jackd2 with user privileges, that's actually the
recommended way, and none of them experiences a substantial slowdown.

So we need to find out what's wrong with your system or particular
setup.

I suggest a procedure like this:

   0. Update to the current package version
   1. Stop jackd (killall -9 jackd, if need be)
   2. Start top, htop or another CPU
   3. Start jackd -d dummy

This must not trigger an considerable increase in CPU usage. Then, stop
this jackd and start your real jackd. Which parameters do you use? Which
soundcard is it?

Increasing the buffer size will ease the timing and hence lower the CPU
load. Assuming you use ALSA:

   $ jackd -d alsa -p 2048  --> relaxed timing
   $ jackd -d alsa -p 128   --> stresses the CPU a bit more

In case of firewire audio interfaces, there has been made a fix recently
that triggered tons of error messages to be printed on the console, thus
making the entire system awfully slow. The newest package has the fix.


Cheers



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#633815: jackd2: High CPU usage following sleep (top reports 190% on quad-core)

2011-07-13 Thread Joel Roth
Package: jackd2
Version: 1.9.6~dfsg.1-2
Severity: normal

Observed when running jackd with user privileges.

System is extremely sluggish until I kill jackd.


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.36.20101128 (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages jackd2 depends on:
ii  coreutils 8.5-1  GNU core utilities
ii  debconf [debconf-2.0] 1.5.38 Debian configuration management sy
ii  libasound21.0.23-2.1 shared library for ALSA applicatio
ii  libc6 2.11.2-11  Embedded GNU C Library: Shared lib
ii  libcelt0-00.7.1-1The CELT codec runtime library
ii  libdbus-1-3   1.4.6-1simple interprocess messaging syst
ii  libexpat1 2.0.1-7XML parsing C library - runtime li
ii  libgcc1   1:4.4.4-17 GCC support library
ii  libjack-jackd2-0  1.9.6~dfsg.1-2 JACK Audio Connection Kit (librari
ii  libncurses5   5.7+20100313-5 shared libraries for terminal hand
ii  libreadline6  6.1-3  GNU readline and history libraries
ii  libsamplerate00.1.7-3Audio sample rate conversion libra
ii  libsndfile1   1.0.23-1   Library for reading/writing audio 
ii  libstdc++64.6.0-10   The GNU Standard C++ Library v3
ii  python-dbus   0.83.1-1   simple interprocess messaging syst

Versions of packages jackd2 recommends:
ii  jackd2-firewire   1.9.6~dfsg.1-2 JACK Audio Connection Kit (FFADO a
ii  libpam-modules1.1.2-2Pluggable Authentication Modules f
ii  qjackctl  0.3.6-1+b1 User interface for controlling the

Versions of packages jackd2 suggests:
ii  jack-tools0.0.2-7+b1 various JACK tools: plumbing, play
ii  meterbridge   0.9.2-8+b1 A collection of Audio meters for t

-- debconf information:
* jackd/tweak_rt_limits: true



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers