From owner-freebsd-questions@FreeBSD.ORG Thu Jan 27 04:18:36 2005 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 5236016A4CE for ; Thu, 27 Jan 2005 04:18:36 +0000 (GMT) Received: from smtp102.rog.mail.re2.yahoo.com (smtp102.rog.mail.re2.yahoo.com [206.190.36.80]) by mx1.FreeBSD.org (Postfix) with SMTP id D37AC43D53 for ; Thu, 27 Jan 2005 04:18:35 +0000 (GMT) (envelope-from derekm.nospam@rogers.com) Received: from unknown (HELO chesed.razorfever.net) (plick@rogers.com@70.25.112.61 with plain) by smtp102.rog.mail.re2.yahoo.com with SMTP; 27 Jan 2005 04:18:34 -0000 Received: from [192.168.0.201] ([192.168.0.201])j0R4IXnA051008; Wed, 26 Jan 2005 23:18:33 -0500 (EST) (envelope-from derekm.nospam@rogers.com) Message-ID: <41F86BA9.4050409@rogers.com> Date: Wed, 26 Jan 2005 23:18:49 -0500 From: Derek User-Agent: Mozilla Thunderbird 1.0 (X11/20050112) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikolas Britton , questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamd / ClamAV version 0.70, clamav-milter version 0.70j Subject: Re: Xmms FreeBSD and buzzing or skipping sound [SOLVED] - sorta 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: Thu, 27 Jan 2005 04:18:36 -0000 Nikolas Britton wrote: > #man sound Ouch. Hurts to be on the receiving end of one of these. Don't get me wrong, I totally appreciate it. Just wish I woulda went that avenue first. > My /boot/loader.conf: > hw.snd.targetirqrate=48 > hint.pcm.0.buffersize="8192" Well after tinkering for a few hours with different combinations of targetirqrate, and buffersize, it turns out I didn't need to modify targetirqrate at all, and I needed to set buffersize to 64k. My working /boot/loader.conf looks like this (for sound stuff): sound_load="YES" snd_emu10k1_load="YES" hint.pcm.0.buffersize="65536" This seems to eliminate the problem of the sound skipping. I used 'unzip jdk-1_5_0-src-scsl.zip' to produce the skipping/jitter effect reliably. I also re-tarred the extracted files using 'tar zcvf new.tar.gz *', and when I extracted using 'tar zxvf new.tar.gz' I had the same difficulties. .... Having said all that .... I think that there is something bigger at work here though, because when I'm running that command, I've noticed it's not just the sound that is choppy, but it seems interactivity (in X) goes down all together, even with just the default loader.conf. The mouse skips, the frame rate on xmms' graphical eq goes down, moving windows around is extremely laggy. Interactivity comes in waves during the unzip process. You would think with the 4.4BSD scheduler, and a SMP system, the machine would still be fairly interactive. I've got no fancy tweaks to the kernel just plain ol' KERNCONF=SMP... I wrote a script that created a bunch of random-sized, random-data files, and tried un-tarring them, but it didn't seem to exercise the same gears that un-(tarr|zipp)ing jdk does (lots of highly compressable small files in a complex directory structure). I would be interested if others wanted to share their results, although I think a new thread name is in order. Thanks for everyone's time, Derek