From owner-freebsd-questions@FreeBSD.ORG Sun Nov 14 10:42:33 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 38F3116A4CE for ; Sun, 14 Nov 2004 10:42:33 +0000 (GMT) Received: from mindfields.energyhq.es.eu.org (73.Red-213-97-200.pooles.rima-tde.net [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 376A343D3F for ; Sun, 14 Nov 2004 10:42:32 +0000 (GMT) (envelope-from flynn@energyhq.es.eu.org) Received: from scienide.energyhq.es.eu.org (scienide.energyhq.es.eu.org [192.168.100.1]) by mindfields.energyhq.es.eu.org (Postfix) with SMTP id 69EEE362B2; Sun, 14 Nov 2004 11:42:30 +0100 (CET) Date: Sun, 14 Nov 2004 11:42:15 +0100 From: Miguel Mendez To: "Loren M. Lang" Message-Id: <20041114114215.452b7576.flynn@energyhq.es.eu.org> In-Reply-To: <20041114102640.GC20277@alzatex.com> References: <20041114102640.GC20277@alzatex.com> X-Mailer: Sylpheed version 0.9.99-gtk2-20041024 (GTK+ 2.4.13; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Sun__14_Nov_2004_11_42_15_+0100_JDgHxYtl32zMbjKb" cc: freebsd-questions@freebsd.org Subject: Re: 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:42:33 -0000 --Signature=_Sun__14_Nov_2004_11_42_15_+0100_JDgHxYtl32zMbjKb Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Sun, 14 Nov 2004 02:26:40 -0800 "Loren M. Lang" wrote: Hi, > 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, [...] > 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? Some person recently asked this in freenode's #FreeBSD irc channel, and the solution that worked for him was to increase xmms's buffer. Go the preferences menu, Audio I/O plugins, increase the buffer size and see if it makes a difference. You don't mention what kind of disks you use, but I guess they're IDE disks. Make sure DMA is working. I usually read my mp3 files from a NFS server and they never skip, even when the machine is doing heavy i/o (e.g. unpacking firefox) and/or under load (avg load of 10), but I've noticed audio skips when the mp3 file was on a local disk that was being currently in use. I don't think increasing xmms's priority will fix the problem. Why you don't see that problem in Linux could be due to the anticipatory i/o scheduler in 2.6. HTH, -- Miguel Mendez | Extreme ways are back again http://www.energyhq.es.eu.org | Extreme places I didn't know PGP Key: 0xDC8514F1 | I broke everything new again Note: All HTML mail goes to /dev/null | Everything that I'd owned --Signature=_Sun__14_Nov_2004_11_42_15_+0100_JDgHxYtl32zMbjKb Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBlzaKnLctrNyFFPERArFhAKCxFU3XzLo03+msceTpNj41xhfC5wCePiFi hKG0k2PgQW1yFdoVasHa50g= =p7ZA -----END PGP SIGNATURE----- --Signature=_Sun__14_Nov_2004_11_42_15_+0100_JDgHxYtl32zMbjKb--