From owner-freebsd-multimedia@FreeBSD.ORG Sun Oct 1 16:08:36 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 3FBC916A407; Sun, 1 Oct 2006 16:08:36 +0000 (UTC) (envelope-from creep@desk.pl) Received: from hera.desk.pl (ip321.dc.desk.pl [194.50.83.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E0E743D46; Sun, 1 Oct 2006 16:08:35 +0000 (GMT) (envelope-from creep@desk.pl) Received: from localhost (hera.local [127.0.0.1]) by hera.desk.pl (Postfix) with ESMTP id 2208675C37F; Sun, 1 Oct 2006 18:08:25 +0200 (CEST) Received: from hera.desk.pl ([127.0.0.1]) by localhost (hera [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13198-08; Sun, 1 Oct 2006 18:08:22 +0200 (CEST) Received: from [10.6.14.1] (sifr.dembego6.waw.pl [89.171.73.18]) by hera.desk.pl (Postfix) with ESMTP id E840F75C36E; Sun, 1 Oct 2006 18:08:21 +0200 (CEST) Message-ID: <451FE7F4.8020907@desk.pl> Date: Sun, 01 Oct 2006 18:08:20 +0200 From: Marcin Koziej User-Agent: Thunderbird 1.5.0.5 (X11/20060904) MIME-Version: 1.0 To: freebsd-stable@freebsd.org, freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: Skaner Antywirusowy DESK.pl Cc: Subject: vmstat -i output after solving snd problems. 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: Sun, 01 Oct 2006 16:08:36 -0000 Hello, I use FreeBSD STABLE on Acer Aspire 1525, with VIA K8M400 chipset and VIA1612A on-motherboard sound card. I've beet tracing STABLE from some time ago, and at some point of 5.X series my sound started to be distorted (clicks, lags, metallic sounds) in a random manner, with distortions correlated with network/disk activity. (This was reported before -- kern/81599, and some posts here and there) After setting hint.pcm.0.buffersize to a bigger value and applying patches from http://people.freebsd.org/~ariff/ (BTW: contrary to the message there, these don't seem to be MFC'ed (?)) the sound distortions were completely simultaneous with network activity. Neither CPU load (and acpi_perf changing the cpu speed) nor high disk i/o (unpacking sources, making /usr/libexec/locate.updatedb) affected the sound, but only as I entered IRC or openned some pages in a browser I did hear clicks and lags. Apparently the reason was pcm0 and re0 (Ethernet card) sharing one irq. By setting a different IRQ for some of devices in BIOS and turning off APIC, I got a new irq layout which gives pcm0 an exclusive IRQ. I rejoiced, because the sound is perfect now. However, I have few questions: 1) Is turning off APIC a disadvantage? (I have read the wikipedia page on IO-APIC and I the machine is uniprocessor) Will it bring my performance down? Or do other scary things to me? Maybe there is a better way to force different IRQ layout. 2) vmstat -i now shows: interrupt total rate irq0: clk 6824889 968 irq1: atkbd0 13103 1 irq4: sio0 2 0 irq7: ppc0 71 0 irq8: rtc 890176 126 irq9: nvidia0 cbb* 464262 65 irq10: cbb0 uhci1* 3 0 irq11: ndis0 re0+ 130633 18 irq12: psm0 597273 84 irq14: ata0 118892 16 irq15: ata1 74 0 Total 9039378 1283 Does it look normal? What do '*' and '+' after device names mean? I couldn't find this information in man vmstat, google or even quich grep through vmstat.c. What am I missing? Is there something to be worried about this? Thank's for Your time and sorry for crossposting to -multimedia@ (some people searching it might (?) find this post helpful). Regards, m.