From owner-freebsd-questions@FreeBSD.ORG Thu Nov 17 08:38:47 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8FAB106566C for ; Thu, 17 Nov 2011 08:38:47 +0000 (UTC) (envelope-from peter@vereshagin.org) Received: from mx1.skyriver.ru (ns1.skyriver.ru [89.108.118.221]) by mx1.freebsd.org (Postfix) with ESMTP id 971A28FC19 for ; Thu, 17 Nov 2011 08:38:46 +0000 (UTC) Received: from localhost (exit-01d.noisetor.net [173.254.216.69]) by mx1.skyriver.ru (Postfix) with ESMTPSA id 022135A95 for ; Thu, 17 Nov 2011 12:04:05 +0400 (MSK) Date: Thu, 17 Nov 2011 12:38:26 +0400 From: Peter Vereshagin To: freebsd-questions@freebsd.org Message-ID: <20111117083825.GA5467@external.screwed.box> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Organization: ' X-Face: 8T>{1owI$Byj]]a; ^G]kRf*dkq>E-3':F>4ODP[#X4s"dr?^b&2G@'3lukno]A1wvJ_L(~u 6>I2ra/<,j1%@C[LN=>p#_}RIV+#:KTszp-X$bQOj,K Subject: realtime priority for subspawned process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 08:38:47 -0000 Hello. I want to have a realtime priority for the particular daemon process launched from X11 application. Daemon is: jackd and app is: audio/ardour. Previous ardour version(s) allowed me to go well with sox but no more for now. It tries to execute: jackd -d oss and the error is: cannot use real-time scheduling (FIFO at priority 10) [for thread 169873472, from thread 169873472] (1: Operation not permitted) It's ok though if i run the jack as a root. But I need not it like this for jack started from ardour. I tried to find a thing like 'realtime group': http://jackaudio.org/linux_rt_config but such a thing on a freebsd doesn't seem to exist. Or is it? I grepped for 'nice', 'rt', 'realtime' in login.conf but nothing like that so far. Thus I have to trick 'jackd' command in the path to use the sudo and run jackd with: nice(1), rtprio(1) or the user with the same uid but with nicer initial priority in a login.conf.db. Which of those 3 ways will work and will be the least evil? Am I missing something and there are more ways to get with ardour? Shall I file a gnats PR as the regular desktop user doesn't seem to be able to use the audio/ardour? Thank you. -- Peter Vereshagin (http://vereshagin.org) pgp: A0E26627