You are not logged in.

#1 2011-10-26 19:58:32

miggols99
Member
Registered: 2007-06-10
Posts: 424

Cannot use realtime scheduling

I have tried fiddling around with limits.conf and trying everything with the JACK config but I still can't get realtime to work properly. Here is the JACK log

Wed Oct 26 20:51:14 2011: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not run: state = 2
Wed Oct 26 20:51:14 2011: ERROR: JackEngine::XRun: client PulseAudio JACK Source finished after current callback
Wed Oct 26 20:51:14 2011: ERROR: JackEngine::XRun: client a2j finished after current callback
Wed Oct 26 20:51:14 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:14 2011: ERROR: JackEngine::XRun: client = a2j was not run: state = 1
Wed Oct 26 20:51:14 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:15 2011: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not run: state = 2
Wed Oct 26 20:51:15 2011: ERROR: JackEngine::XRun: client PulseAudio JACK Source finished after current callback
Wed Oct 26 20:51:15 2011: ERROR: JackEngine::XRun: client = a2j was not run: state = 1
Wed Oct 26 20:51:15 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:16 2011: Stopping jack server...
Wed Oct 26 20:51:16 2011: ERROR: JackEngine::XRun: client = a2j was not run: state = 1
Wed Oct 26 20:51:16 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:16 2011: Client 'system' with PID 0 is out
Wed Oct 26 20:51:16 2011: Client 'cadence' with PID 1776 is out
Wed Oct 26 20:51:16 2011: Client 'PulseAudio JACK Sink' with PID 4189 is out
Wed Oct 26 20:51:16 2011: Client 'PulseAudio JACK Source' with PID 4189 is out
Wed Oct 26 20:51:16 2011: Client 'a2j' with PID 1848 is out
Wed Oct 26 20:51:16 2011: port deleted: UA-25EX:midi/playback_1
Wed Oct 26 20:51:16 2011: port deleted: USB-Midi-Cable:midi/playback_1
Wed Oct 26 20:51:16 2011: port deleted: Midi-Through:midi/playback_1
Wed Oct 26 20:51:16 2011: port deleted: UA-25EX:midi/capture_1
Wed Oct 26 20:51:16 2011: port deleted: USB-Midi-Cable:midi/capture_1
Wed Oct 26 20:51:16 2011: port deleted: Midi-Through:midi/capture_1
Wed Oct 26 20:51:16 2011: control device hw:1
Wed Oct 26 20:51:16 2011: Released audio card Audio1
Wed Oct 26 20:51:16 2011: control device hw:1
Wed Oct 26 20:51:18 2011: Starting jack server...
Wed Oct 26 20:51:18 2011: JACK server starting in realtime mode with priority 99
Wed Oct 26 20:51:18 2011: control device hw:1
Wed Oct 26 20:51:18 2011: control device hw:1
Wed Oct 26 20:51:18 2011: Acquired audio card Audio1
Wed Oct 26 20:51:18 2011: creating alsa driver ... hw:1|hw:1|128|3|44100|0|0|nomon|swmeter|soft-mode|32bit
Wed Oct 26 20:51:18 2011: control device hw:1
Wed Oct 26 20:51:18 2011: configuring for 44100Hz, period = 128 frames (2.9 ms), buffer = 3 periods
Wed Oct 26 20:51:18 2011: ALSA: final selected sample format for capture: 24bit little-endian
Wed Oct 26 20:51:18 2011: ALSA: use 3 periods for capture
Wed Oct 26 20:51:18 2011: ALSA: final selected sample format for playback: 24bit little-endian
Wed Oct 26 20:51:18 2011: ALSA: use 3 periods for playback
Wed Oct 26 20:51:18 2011: port created: Midi-Through:midi/playback_1
Wed Oct 26 20:51:18 2011: port created: Midi-Through:midi/capture_1
Wed Oct 26 20:51:18 2011: port created: UA-25EX:midi/playback_1
Wed Oct 26 20:51:18 2011: port created: UA-25EX:midi/capture_1
Wed Oct 26 20:51:18 2011: port created: USB-Midi-Cable:midi/playback_1
Wed Oct 26 20:51:18 2011: port created: USB-Midi-Cable:midi/capture_1
Wed Oct 26 20:51:18 2011: ERROR: Cannot use real-time scheduling (RR/99)(1: Operation not permitted)
Wed Oct 26 20:51:18 2011: ERROR: AcquireSelfRealTime error
Wed Oct 26 20:51:18 2011: graph reorder: new port 'system:capture_1'
Wed Oct 26 20:51:18 2011: New client 'system' with PID 0
Wed Oct 26 20:51:18 2011: graph reorder: new port 'system:capture_2'
Wed Oct 26 20:51:18 2011: graph reorder: new port 'system:playback_1'
Wed Oct 26 20:51:19 2011: graph reorder: new port 'system:playback_2'
Wed Oct 26 20:51:19 2011: graph reorder: new port 'system:midi_capture_1'
Wed Oct 26 20:51:19 2011: graph reorder: new port 'system:midi_playback_1'
Wed Oct 26 20:51:19 2011: graph reorder: new port 'system:midi_capture_2'
Wed Oct 26 20:51:19 2011: graph reorder: new port 'system:midi_playback_2'
Wed Oct 26 20:51:19 2011: graph reorder: new port 'system:midi_capture_3'
Wed Oct 26 20:51:19 2011: graph reorder: new port 'system:midi_playback_3'
Wed Oct 26 20:51:19 2011: New client 'cadence' with PID 1776
Wed Oct 26 20:51:20 2011: New client 'PulseAudio JACK Sink' with PID 4289
Wed Oct 26 20:51:20 2011: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not run: state = 1
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not run: state = 1
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackEngine::XRun: client = PulseAudio JACK Sink was not run: state = 1
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error
Wed Oct 26 20:51:20 2011: ERROR: JackAudioDriver::ProcessGraphAsync: Process error

And it goes on forever with xruns...and this is with me doing absolutely nothing.

Also here is my limits.conf

*               -       rtprio          0                                                    
*               -       nice            0                                                    
@audio          -       rtprio          99                                                   
@audio          -       nice           -20                                                   
@audio          -       memlock         1024000  

I can't really work like this because I get excessive xruns and crackles and pops, and this seems to be the source of the problem.

Offline

#2 2011-10-27 07:37:38

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: Cannot use realtime scheduling

I've had this problem too, try:
sysctl -w  kernel.sched_rt_runtime_us=-1
If it solves the issue, you can make it permanent by modifying /etc/sysctl.conf


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB