From owner-freebsd-multimedia@FreeBSD.ORG Mon Jun 4 04:06:37 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 0A61416A400 for ; Mon, 4 Jun 2007 04:06:37 +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 CA94A13C469 for ; Mon, 4 Jun 2007 04:06:36 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: (qmail 6786 invoked from network); 4 Jun 2007 14:06:36 +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 14:06:36 +1000 Date: Mon, 4 Jun 2007 14:06:30 +1000 From: Norberto Meijome To: Ariff Abdullah Message-ID: <20070604140630.35eb3a5e@localhost> In-Reply-To: <20070529163949.091c340f@localhost> References: <20070529134158.7b221ae2@localhost> <20070529131503.3b70a8e2.ariff@FreeBSD.org> <20070529163949.091c340f@localhost> 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 04:06:37 -0000 On Tue, 29 May 2007 16:39:49 +1000 Norberto Meijome wrote: > > > > Anyway, you can try adjusting buffer size > > with "hint.pcm.0.buffersize" . Start with 4096, 8192, 16384, etc.. Use > > either kenv(8) and reload, or slap it into /boot/device.hints and > > reboot. > > Thanks, I'll have a play and inform back :) ok, so I've had some time to test (apologies for the delay) SYSTEM updated my kernel to latest -STABLE : FreeBSD ayiin.octantis.com.au 6.2-STABLE FreeBSD 6.2-STABLE #4: Mon Jun 4 12:45:01 EST 2007 root@ayiin.octantis.com.au:/usr/obj/usr/src/sys/AYIIN i386 (EST == AU EST, GMT +10) I am testing with snd_hda in this tree. World was built from sources of May 30th. no kernel hints tweaking. ( not sure if this is related, but sysctl shows: hw.snd.pcm0.buffersize: 16384 ) TOOLS: installed sysutils/stress to have a somewhat more reliable method of test, rather than buildworld. It seems the issue is not necessarily high user CPU usage, but system cpu usage , which is triggered by stress' -m switch (more specifically, virtual memory stress testing). I tested with xmms-esound, esd running from my X session, playing a (Smashing Pumkins :D) CD on my CD drive. Presents problem. ------- [betom@ayiin] [Mon Jun 4 13:39:59 2007] /usr/ports/sysutils/stress $ stress -m 1 -c 1 stress: info: [8731] dispatching hogs: 1 cpu, 0 io, 1 vm, 0 hdd ^C ------- No Problems at all: ------ [betom@ayiin] [Mon Jun 4 13:40:15 2007] /usr/ports/sysutils/stress $ stress -c 1 stress: info: [8735] dispatching hogs: 1 cpu, 0 io, 0 vm, 0 hdd ^C -------- Problems again. -------- [betom@ayiin] [Mon Jun 4 13:40:26 2007] /usr/ports/sysutils/stress $ stress -m 1 stress: info: [8738] dispatching hogs: 0 cpu, 0 io, 1 vm, 0 hdd ^C ---- Changing buffersize makes no difference at all (tried up to 24K). when I loaded the binary blob provided in your site, I can run up to stress -m 3 with no problems at all. -m 4 shows some issues if i start heavily using the system. -m 5 is somewhat similar to -m 1 with the non-low-latency driver. Please let me know if there's anything else u'd like me to try. Best, _________________________ {Beto|Norberto|Numard} Meijome "At times, to be silent is to lie." Miguel de Unamuno 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.