From owner-freebsd-multimedia@FreeBSD.ORG Mon Jun 4 13:37:50 2007 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from misaki (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with SMTP id 5826716A421; Mon, 4 Jun 2007 13:37:49 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Date: Mon, 4 Jun 2007 21:37:27 +0800 From: Ariff Abdullah To: Norberto Meijome Message-Id: <20070604213727.11a809c5.ariff@FreeBSD.org> In-Reply-To: <20070604230754.5f223044@localhost> 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> <20070604230754.5f223044@localhost> Organization: FreeBSD X-Mailer: /usr/local/lib/ruby/1.8/net/smtp.rb Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__4_Jun_2007_21_37_27_+0800_tlYec5Q2lbT2BiFM" 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:37:50 -0000 --Signature=_Mon__4_Jun_2007_21_37_27_+0800_tlYec5Q2lbT2BiFM Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 4 Jun 2007 23:07:54 +1000 Norberto Meijome wrote: > On Mon, 4 Jun 2007 16:44:20 +0800 > Ariff Abdullah wrote: >=20 > > >=20 > > > 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. > > > =20 > >=20 > > I forgot to mention that enabling/disabling vchans are matters as > > well, so please take note on that. >=20 > ok - back to the klds from the src tree. >=20 > [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 >=20 > [betom@ayiin] [Mon Jun 4 22:30:43 2007] > /usr/home/betom > $ kenv | grep buffer > hint.pcm.0.buffersize=3D"4096" >=20 > I tried 4096, 8192, 16384. In all cases, stress -m 1 brings up > immediate choppiness/chirping. :( >=20 >=20 > 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. >=20 > thanks!! > B >=20 All I can say is that the code in -current are much.. much improved compared to anything we have before or in releng6. There's no easy way to MFC all the improvements due to radical changes, but at least, you still have the option to apply the patch or use my binary modules. As usuall: http://people.freebsd.org/~ariff/ The current theme is: Giant Eradication :) -- Ariff Abdullah FreeBSD ... Recording in stereo is obviously too advanced and confusing for us idiot ***** users :P ........ --Signature=_Mon__4_Jun_2007_21_37_27_+0800_tlYec5Q2lbT2BiFM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGZBWXlr+deMUwTNoRAgqpAJ9X7cmVo/iUcH30EuNDJ5xk7xD6aACdEW2T yWph7JAdO0YtlgmXRmke6ds= =RWx1 -----END PGP SIGNATURE----- --Signature=_Mon__4_Jun_2007_21_37_27_+0800_tlYec5Q2lbT2BiFM--