From owner-freebsd-multimedia@FreeBSD.ORG Mon Jun 4 13:08:00 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B31816A47E for ; Mon, 4 Jun 2007 13:08:00 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.freebsd.org (Postfix) with ESMTP id 0DBE613C48A for ; Mon, 4 Jun 2007 13:07:59 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 6094 invoked from network); 4 Jun 2007 23:07:59 +1000 Received: from 203-214-138-113.perm.iinet.net.au (HELO localhost) (203.214.138.113) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 4 Jun 2007 23:07:58 +1000 Date: Mon, 4 Jun 2007 23:07:54 +1000 From: Norberto Meijome To: Ariff Abdullah Message-ID: <20070604230754.5f223044@localhost> In-Reply-To: <20070604164420.5104fbaa.ariff@FreeBSD.org> References: <20070529134158.7b221ae2@localhost> <20070529131503.3b70a8e2.ariff@FreeBSD.org> <20070529163949.091c340f@localhost> <20070604140630.35eb3a5e@localhost> <20070604160928.0abb098b.ariff@FreeBSD.org> <20070604164420.5104fbaa.ariff@FreeBSD.org> X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org Subject: Re: [snd_hda] Choppiness under high cpu - STABLE X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 13:08:00 -0000 On Mon, 4 Jun 2007 16:44:20 +0800 Ariff Abdullah wrote: > > > > Have you tried with 4096 ? Note: this should go into > > hint.pcm.0.buffersize kernel hint, not sysctl variable. After > > setting it (using kenv), you must reload the sound module or reboot > > if it going through /boot/device.hints. The sysctl buffersize is > > there purely as indicator. > > > > I forgot to mention that enabling/disabling vchans are matters as > well, so please take note on that. ok - back to the klds from the src tree. [betom@ayiin] [Mon Jun 4 22:30:37 2007] /usr/home/betom $ sysctl -a | grep snd hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.verbose: 1 hw.snd.maxautovchans: 4 hw.snd.unit: 0 hw.snd.pcm0.buffersize: 4096 hw.snd.pcm0.vchans: 1 [betom@ayiin] [Mon Jun 4 22:30:43 2007] /usr/home/betom $ kenv | grep buffer hint.pcm.0.buffersize="4096" I tried 4096, 8192, 16384. In all cases, stress -m 1 brings up immediate choppiness/chirping. :( I'm now back to the binary blob... I repeated the tests (with default buffersize of 16K, and 8 vchans as before), and it seems that with stress -m 2 there is an ever so slight chirpiness, more noticeable with -m 3 , definitely there @ -m 4 - but definitely better than the other one. thanks!! B _________________________ {Beto|Norberto|Numard} Meijome Life is not measured by the number of breaths we take, but by the moments that take our breath away. I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.