From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MFLZc-00018C-KN for garchives@archives.gentoo.org; Sat, 13 Jun 2009 05:14:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A8FA0E046F; Sat, 13 Jun 2009 05:14:34 +0000 (UTC) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by pigeon.gentoo.org (Postfix) with ESMTP id 42DDDE0471 for ; Sat, 13 Jun 2009 05:14:34 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 13so846275fge.14 for ; Fri, 12 Jun 2009 22:14:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=6zDHQSuILv7ZimDJxl5gGljR5BmHh+lxh9xVbocEb1o=; b=oRzwuL48LMVFv5PAUodHn0rTLiUxpxDVQtEEVd3+G+ByrybV5jMzB22+LjTqolNglZ 6eQ6x2u51pKYcbH8MS+t4njNvhizlErXXIR/rHILYlu2dhxdFPLT+x5cYGti6B/pAj/f /WWHsIirXw5z9KGb6WDGzWL2BRkfp1eY1NchA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=HNB92Y7OoyFaTg2jRTluj1QEA1Ynp9AM1Uhw4Il6Lm4yErTO50CTczsHalVZPTRK8d GQo9YDsUCDKYJTDXkOZMq7xNNzgrRm1mxB6yZ5JRpc0CbjMD3egOKhfFrXzqotnOoRPh KWXhsG+SutM9rdXihb/d3kHcJ0UNR5KMGKI7E= Received: by 10.86.91.13 with SMTP id o13mr4668434fgb.7.1244870073588; Fri, 12 Jun 2009 22:14:33 -0700 (PDT) Received: from coercion ([91.191.238.58]) by mx.google.com with ESMTPS id d6sm5836889fga.22.2009.06.12.22.14.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Jun 2009 22:14:32 -0700 (PDT) Date: Sat, 13 Jun 2009 11:11:55 +0600 From: Mike Kazantsev To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Prioritizing mpd Message-ID: <20090613111155.6d042ee9@coercion> In-Reply-To: <49bf44f10906122145k327c03c3jb99731ca1fe818cb@mail.gmail.com> References: <49bf44f10906121602x6b0cf20rfe2731edfdf7d205@mail.gmail.com> <20090613103056.552dc565@coercion> <49bf44f10906122145k327c03c3jb99731ca1fe818cb@mail.gmail.com> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/Q_QuUTqQQfL5scNMFG2sLk0"; protocol="application/pgp-signature" X-Archives-Salt: 9cb188d7-63aa-4d5a-b991-098fb02b3d60 X-Archives-Hash: b2f1b10cc0219a8accee121b7883c8f8 --Sig_/Q_QuUTqQQfL5scNMFG2sLk0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 12 Jun 2009 21:45:02 -0700 Grant wrote: > renice -20 -p `pgrep mpd` >=20 > but my Athlon 2.2Ghz still can't handle it for more than a few > seconds. I don't have SMP enabled because of a bug in madwifi, and > I'm hoping when I get that fixed I'll be able to run the best > libsamplerate resampler. Any other ideas for making this work? AFAIK resampling is expensive operation that's only necessary when your sound card can't handle native stream sample rate, furthermore, it's a lossy operation (degrading quality). So, I'd look for the answer to the question "why mpd is doing it and why I allow it to do that?". For example, you might have enabled it to resample stream to 32 bits depth, while your built-in card can only handle 16 and the stream has also 16, so what happens is userspace-level conversion (with some loss of quality) to 32, loading your CPU, then this stream goes to alsa, and, provided that your card can't play this, driver or the card itself converts it back to 16. Note that the latter case would probably mean "card offloads conversion to your CPU as well", so you'll get CPU load for both ways' conversion anyway, only reducing sound quality, no matter how good converters are. To avoid any processing, try disabling resampling in mpd, since it'll probably be done for you anyway, if necessary (you'll hear "white noise" otherwise). And you can pre-convert all the streams to any given samplerate, but note that you'll probably get far worse results if the target format isn't lossless (flac, ape), even if the source one is lossy, than with worst resampling. And you can get worse CPU/IO load with lossless format in the end, since it's harder to decode and the input data stream is much heavier than with lossy mp3s or oggs. --=20 Mike Kazantsev // fraggod.net --Sig_/Q_QuUTqQQfL5scNMFG2sLk0 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkozNSEACgkQASbOZpzyXnEvmwCfc+EboM2MqdL72tviM313OvWi t7oAn0qpThs4YqKNq2SF7dDpI5ks2m6o =rXZn -----END PGP SIGNATURE----- --Sig_/Q_QuUTqQQfL5scNMFG2sLk0--