From owner-freebsd-multimedia Tue Jul 16 9:19:39 2002 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AB7737B405 for ; Tue, 16 Jul 2002 09:19:36 -0700 (PDT) Received: from puma.icir.org (puma.icir.org [192.150.187.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B2243E42 for ; Tue, 16 Jul 2002 09:19:36 -0700 (PDT) (envelope-from hodson@puma.icir.org) Received: from puma.icir.org (localhost [127.0.0.1]) by puma.icir.org (8.11.6/8.11.3) with ESMTP id g6GGJKb30653; Tue, 16 Jul 2002 09:19:20 -0700 (PDT) (envelope-from hodson@puma.icir.org) Message-Id: <200207161619.g6GGJKb30653@puma.icir.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: "Jose M. Alcaide" Cc: FreeBSD-multimedia@freebsd.org From: Orion Hodson Subject: Re: interrupts from pcm(4) while no sound is being played In-Reply-To: Your message of "Tue, 16 Jul 2002 12:22:58 +0200." <20020716102258.GC259@v-ger.we.lc.ehu.es> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 16 Jul 2002 09:19:20 -0700 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org /-- "Jose M. Alcaide" wrote: | On Mon, Jul 15, 2002 at 09:52:37AM -0700, Orion Hodson wrote: | | My only concern is the possible impact of a high interrupt rate (~705 per | second after playing a 44KHz, 16 bit sound) on the system performance. | For example, that adds a CPU load of ~1.5% in my laptop (Celeron 433) | while esd is holding the audio device open (I configured esd for using | -and never freeing- /dev/dsp0.1). In the case of esd, if you want to fix this, have it do an AIOSTOP ioctl shortly after it stops writing audio data and a SNDCTL_DSP_SETTRIGGER when it's ready to write data again. This corresponds to pausing and unpausing the device by halting and restarting interrupts. - Orion To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message