From owner-freebsd-current@FreeBSD.ORG Thu Dec 11 01:43:17 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02BE516A4D2 for ; Thu, 11 Dec 2003 01:43:16 -0800 (PST) Received: from mailspool.ops.uunet.co.za (mailspool.ops.uunet.co.za [196.7.0.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 807E043D1F for ; Thu, 11 Dec 2003 01:43:14 -0800 (PST) (envelope-from ianf@za.uu.net) Received: from copernicus.so.cpt1.za.uu.net ([196.30.72.32]) by mailspool.ops.uunet.co.za with esmtp (Exim 3.36 #1) id 1AUNLI-000OTz-00; Thu, 11 Dec 2003 11:42:44 +0200 Received: from localhost ([127.0.0.1] helo=za.uu.net) by copernicus.so.cpt1.za.uu.net with esmtp (Exim 3.36 #1) id 1AUNLH-000HaA-00; Thu, 11 Dec 2003 11:42:43 +0200 To: Mathew Kanner In-reply-to: Your message of "Wed, 10 Dec 2003 11:49:57 EST." <20031210164957.GJ11072@cnd.mcgill.ca> References: <20031210164957.GJ11072@cnd.mcgill.ca> From: Ian Freislich X-image-url: http://www.freislich.nom.za/gallery/ian-small.gif X-BOFH: true X-LART: Depleted uranium X-No-Junk-Mail: I do not want to get *any* junk mail. You have been deleted Date: Thu, 11 Dec 2003 11:42:42 +0200 Message-ID: <67589.1071135762@za.uu.net> Sender: ianf@za.uu.net cc: freebsd-current@freebsd.org Subject: Re: Why are sound ioctl calls so slow? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Dec 2003 09:43:17 -0000 Mathew Kanner wrote: > On Dec 10, Ian Freislich wrote: > > Mathew Kanner wrote: > > > My first guess would be the device is rebuilding feeder/mixer > > > chains every time mpg123 changes format. I would run the test one > > > more time, disabling vchans and rate conversion. > > > > > > sysctl hw.snd.report_soft_formats=0 hw.snd.maxautovchans=0 > > > > That didn't make a (noticeable) difference: > > > > 4090 mpg123 0.000603 CALL ioctl(0x3,SNDCTL_DSP_STEREO,0xbfbff864) > > 4090 mpg123 0.026047 RET ioctl 0 > > 4090 mpg123 0.000582 CALL ioctl(0x3,SNDCTL_DSP_SPEED,0xbfbff864) > > 4090 mpg123 0.017735 RET ioctl 0 > > 4090 mpg123 0.000414 CALL ioctl(0x3,SNDCTL_DSP_SETFMT,0xbfbff864) > > 4090 mpg123 0.026004 RET ioctl 0 > > You complained that mpg123 was doing hundered of system calls. > Did that remain constant aswell? Yes it it did. Ian