From owner-freebsd-questions@FreeBSD.ORG Sun Nov 14 10:26:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCD7516A4CE for ; Sun, 14 Nov 2004 10:26:42 +0000 (GMT) Received: from hosea.tallye.com (joel.tallye.com [216.99.199.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id E57A643D3F for ; Sun, 14 Nov 2004 10:26:41 +0000 (GMT) (envelope-from lorenl@alzatex.com) Received: from hosea.tallye.com (hosea.tallye.com [127.0.0.1]) by hosea.tallye.com (8.12.8/8.12.10) with ESMTP id iAEAQeYs021590 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 14 Nov 2004 02:26:41 -0800 Received: (from sttng359@localhost) by hosea.tallye.com (8.12.8/8.12.10/Submit) id iAEAQe49021588 for freebsd-questions@freebsd.org; Sun, 14 Nov 2004 02:26:40 -0800 X-Authentication-Warning: hosea.tallye.com: sttng359 set sender to lorenl@alzatex.com using -f Date: Sun, 14 Nov 2004 02:26:40 -0800 From: "Loren M. Lang" To: FreeBSD Mailing list Message-ID: <20041114102640.GC20277@alzatex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.4.1i X-GPG-Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C Subject: Scheduling Issues with Multimedia Apps X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Nov 2004 10:26:43 -0000 Certain tasks that have been doing on FreeBSD like installing ports seem to interrupt my music playing. Particually when portupgrade is extracting/checksumming and when it is updating the package database. Now to try and solve this I tried to set xmms to use realtime priority and made it setuid root. According to top it's running at priority 20 nice -76 so it seems to be running realtime, but portupgrade can still interrupt the audio occasionally. I've tried nicing portupgrade before, but I usually forget, though I'm not even sure if nicing it fixed the problem. I've had this problem with FreeBSD 4.9 to 5.3 on two completely different machines. Also I've had to stop distibuted.net running before because I couldn't play movies with mplayer smoothly. This was on a P4 3.0 GHz, 1G DDR 400 MHz ram. dnet always runs with a nice value of 20 which puts it at about priority 131. Why are these programs able to interrupt my multimedia programs so much. The multimedia programs don't need to use much CPU time with systems as fast as these, but they just need to make sure they get X work done in Y amount of time. If their scheduled apropriately there should be no conflicts, I've never really had this issues with linux, AFAIK. Is there any better way to fix this? --=20 I sense much NT in you. NT leads to Bluescreen. Bluescreen leads to downtime. Downtime leads to suffering. NT is the path to the darkside. Powerful Unix is. Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C =20