Menu

#408 Jack OSX cpu load

v0.41
open
5
2009-05-28
2009-05-14
boonier
No

In Jack mode, Blank empty patch

Toggling Compute Audio on and then off results in cpu load jumping up to ~25% from a nominal 1%. Turn Compute Audio back on, and cpu drops back to nominal 1%.

Tested on 2.4ghz iMac , OS 10.5.6. Pd-0.41.4-extended-rc1

Discussion

  • Hans-Christoph Steiner

    • milestone: --> 897307
    • status: open --> pending
     
  • Hans-Christoph Steiner

    For me, Pd without Jack, i.e. just using coreaudio/portaudio, it will use 25% of my CPU just idling. That's a known issue. With Jack, it goes down to 5-7% at idle. So my guess is that the first time the 25% spike is caused by the same think.

    Is this causing any problems for you?

     
  • Nobody/Anonymous

    hi - sorry for delay

    hmm i don't understand why when Pd is runing in Jack mode and you switch audio off, why it would revert to a Portaudio state? I that what you are saying?

     
  • Nobody/Anonymous

    Ah, sorry, I misunderstood, I also get similar behavior using Pd version 0.41.4-extended-rc2. Using Jack, I get ~3% CPU when audio is ON and ~8% CPU when audio is OFF.

     
  • Hans-Christoph Steiner

    ------------------------------------------------------------------
    1. start jack server and attach Pd to it
    jackdmp 2.7%
    pd 1.7%

    - 21.6%, ml_set_interrupts_enabled, mach_kernel
    - 7.6%, __nanotime, libSystem.B.dylib
    - 6.2%, __memcpy, libSystem.B.dylib
    5.6%, lo_unix_scall, mach_kernel

    ------------------------------------------------------------------
    2. then turn on Compute Audio
    jackdmp 4.2%
    pd 2.1%

    - 20.0%, ml_set_interrupts_enabled, mach_kernel
    7.1%, lo_unix_scall, mach_kernel
    - 6.3%, __nanotime, libSystem.B.dylib
    - 4.0%, __memcpy, libSystem.B.dylib
    - 4.0%, __gettimeofday, libSystem.B.dylib
    - 2.8%, select$DARWIN_EXTSN$NOCANCEL, libSystem.B.dylib
    2.2%, lo_alltraps, mach_kernel
    2.0%, lo_mach_scall, mach_kernel

    ------------------------------------------------------------------
    3. turn off Compute Audio after its on
    jackdmp 4.2%
    pd 7.5-10.5%
    + 81.4%, __bzero, libSystem.B.dylib
    | + 80.9%, process, pd
    | | + 80.9%, Jack::JackClient::Execute(), Jackmp
    | | | + 80.9%, Jack::JackPosixThread::ThreadHandler(void*), Jackmp
    | | | | + 80.9%, _pthread_start, libSystem.B.dylib
    | | | | | 80.9%, thread_start, libSystem.B.dylib

     
  • Hans-Christoph Steiner

     
  • Hans-Christoph Steiner

    shark report

     
  • Hans-Christoph Steiner

    shark report

     
  • Hans-Christoph Steiner

    • labels: --> pd-extended
    • milestone: 897307 --> v0.41
    • assigned_to: nobody --> zmoelnig
    • status: pending --> open
     

Anonymous
Anonymous

Add attachments
Cancel