From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 47F1D13877A for ; Wed, 13 Aug 2014 15:38:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 78835E0994; Wed, 13 Aug 2014 15:38:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 81FD6E0884 for ; Wed, 13 Aug 2014 15:38:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D7C5C340478 for ; Wed, 13 Aug 2014 15:38:54 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.833 X-Spam-Level: X-Spam-Status: No, score=-1.833 tagged_above=-999 required=5.5 tests=[AWL=-0.463, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.668, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable Received: from smtp.gentoo.org ([IPv6:::ffff:127.0.0.1]) by localhost (smtp.gentoo.org [IPv6:::ffff:127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Jd_IJRnc0ka for ; Wed, 13 Aug 2014 15:38:49 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E9002340398 for ; Wed, 13 Aug 2014 15:38:44 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XHadO-00028w-NG for gentoo-desktop@gentoo.org; Wed, 13 Aug 2014 17:38:42 +0200 Received: from ip68-231-22-224.ph.ph.cox.net ([68.231.22.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Aug 2014 17:38:42 +0200 Received: from 1i5t5.duncan by ip68-231-22-224.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Aug 2014 17:38:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-desktop@lists.gentoo.org From: Duncan <1i5t5.duncan@cox.net> Subject: [gentoo-desktop] Re: Sound freezes Date: Wed, 13 Aug 2014 15:38:31 +0000 (UTC) Message-ID: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-desktop@lists.gentoo.org Reply-to: gentoo-desktop@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip68-231-22-224.ph.ph.cox.net User-Agent: Pan/0.140 (Chocolate Salty Balls; GIT d447f7c /m/p/portage/src/egit-src/pan2) X-Archives-Salt: 91af7640-2768-4e68-bebe-caf63d47c012 X-Archives-Hash: 0e14f7264b83ff863ebbdc1ee201d78b Сергей posted on Wed, 13 Aug 2014 15:37:32 +0400 as excerpted: > Hello everybody! When I listen to music using Amarok or Google Chrome > flash player (didn't try any other players) sometimes sound freezes for > a second. I have tried changing phonon backend (gstreamer/vlc) and also > changing kernel parameter CONFIG_SND_HDA_PREALLOC_SIZE from 64 to 2048 > and 4096. Disabling Pulseaudio or using it's older version also didn't > help. > Can you please give me a piece of advice about what to do? On one older system I had, using PCI not the newer PCIE, there was a BIOS setting for size of PCI transaction. I can't remember details such as the exact name of the BIOS setting, but the idea was that this was the largest PCI transaction allowed before it had to give up the bus and let something else have a turn, if there were other things waiting, of course. The tradeoff was between higher efficiency due to lower overhead as more could be done at a time, and higher latency as one task had the bus tied up for longer, keeping others waiting. After I shortened that, the occasional problems with sound freezes I had on that machine disappeared. I had tried other things such as increasing buffer size, etc, that didn't work, but decreasing the PCI transaction size and thus latency time did. As for pulseaudio, I'd guess a lot of gentooers don't use it at all, preferring direct alsa, etc. I know I've never used pulse here. And for kde's phonon backend, while gstreamer is I believe the current default, I don't have gstreamer installed at all here, but remember that switching from the earlier xine backend to the vlc backend helped quite a bit. However, that's likely to help only for kde apps. Firefox and chrome of course aren't kde apps, tho amarok is (but tho I switched away from amarok in the early kde4 period, IIRC it can be configured to use either kde's phonon or direct alsa or pulse, so depending on how it's configured it might not be going thru phonon either). -- Duncan - List replies preferred. No HTML msgs. "Every nonfree program has a lord, a master -- and if you use the program, he is your master." Richard Stallman