微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何启动与新贵实时优先杰克的过程?

我试图用启动脚本启动实时优先级,但迄今为止没有成功。 我正在使用Ubuntu的服务器14.04。 我的新贵版本是1.12.1。

如果我没有实时启动jackstd脚本,按预期工作。 我用来在脚本中启动jackd的用户和组被允许使用实时优先级,但是当启动运行它似乎并不重要。 每当我试图通过暴发户运行,我得到这个暴发户日志:

jackdmp 1.9.10 copyright 2001-2005 Paul Davis and others. copyright 2004-2013 Grame. jackdmp comes with ABSOLUTELY NO WARRANTY This is free software,and you are welcome to redistribute it under certain conditions; see the file copYING for details Cannot create thread 1 Operation not permitted Cannot create thread 1 Operation not permitted Cannot create thread 1 Operation not permitted JACK server starting in realtime mode with priority 70 Cannot lock down 82274202 byte memory area (Cannot allocate memory) Cannot create thread 1 Operation not permitted ERROR: messagebuffer not initialized: libffado 2.1.9999- built Oct 19 2013 16:01:07 ERROR: messagebuffer not initialized: 1408466326248438: Error (PosixThread.cpp)[ 161] Start: Cannot create realtime thread (1: Operation not permitted) ERROR: messagebuffer not initialized: 1408466326248486: Error (PosixThread.cpp)[ 162] Start: priority: 75 firewire ERR: FFADO: Error creating virtual device Cannot attach audio driver JackServer::Open Failed with -1 Failed to open server

如果我只是运行在terminal的暴发户脚本我的可执行行中相同的命令,它工作正常。

我的新贵脚本是一个非常简单的脚本:

C / C ++中的实时间隔

在非实时操作系统/内核上执行接近实时任务的最佳方法是什么?

实时使用Linux实时调度优先级(SCHED_FIFO和SCHED_RR)?

如何在Linux实时进程之间进行通信?

控制程序执行

description "jackd" start on stopped rc stop on runlevel [06] exec su radiola -c "jackd -R -P 70 -d firewire -r 44100 -n 3 -p 2048"

我也尝试过使用setuid和setguid节以及start-stop-daemon,但最终得到的结果与我刚刚描述的相同。 我的文件/etc/security/limits.d/audio.conf如下:

@audio - rtprio 95 @audio - memlock unlimited #@audio - nice -19

我试图启动的用户属于audio组。

有没有办法让新手开始一个实时的过程? 如果没有,是否有解决这个问题的其他办法?

谢谢。

在Linux上实时防止小页面错误

在Linux 2.6.33.9 rt上一段时间后,UDP广播中断

是mq_sendprimefaces?

Linux中间隔定时器的精度是多less?

低延迟中断处理(预计从内核返回到用户间的平均时间是?)

/etc/security/limits.d/audio.conf文件仅在用户正在打开会话时(例如,当加载pam_limits.so时)被读取。

您可以使用limit指令直接从upstart脚本中设置相同的限制:

limit memlock unlimited unlimited limit rtprio 95 95

另外,为了切换到radiola,而不是使用su,你可以使用setuid / setgid指令:

setuid radiola setgid audio

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐