From owner-freebsd-stable@FreeBSD.ORG Wed Aug 16 20:18:55 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FF7B16A4DF; Wed, 16 Aug 2006 20:18:55 +0000 (UTC) (envelope-from mi+mx@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id C29B443D45; Wed, 16 Aug 2006 20:18:54 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.7/8.13.7) with ESMTP id k7GKIlSw005187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 16 Aug 2006 16:18:53 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from [172.21.130.86] (mx-broadway [38.98.68.18]) by corbulon.video-collage.com (8.13.6/8.13.6) with ESMTP id k7GKIfIo001504 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 16 Aug 2006 16:18:41 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) From: Mikhail Teterin Organization: Virtual Estates, Inc. To: stable@freebsd.org Date: Wed, 16 Aug 2006 16:18:34 -0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_b234EWiI62Dw0Xc" Message-Id: <200608161618.35199.mi+mx@aldan.algebra.com> X-Virus-Scanned: ClamAV 0.88.4/1670/Wed Aug 16 09:49:00 2006 on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: threads@freebsd.org, sound@freebsd.org Subject: Extremely high-load -- due to pcm's IRQ-handling X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2006 20:18:55 -0000 --Boundary-00=_b234EWiI62Dw0Xc Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline kmail prompted me for password, which I supplied. Then, all of a sudden, the system slowed to a crawl -- even the mouse curse was barely moving. It took many minutes to login from the outside and some more to start top. Below you can see kmail in kserel keeping the processor(s) EXTREMELY busy. Note also, the "load" figures. According to `systat -vm', exactly 50% of the time is spent in "user", and the other 50% -- either "sys" or in "irq" -- all of them in the pcm driver. [...] 1.6%Sys 43.7%Intr 49.1%User 0.0%Nice 5.7%Idl 1903516 inact 12: psm | | | | | | | | | | 122920 cache 15: ata =++++++++++++++++++++++>>>>>>>>>>>>>>>>>>>>>>>> 15688 free 16: ahc daefr 86002 17: pcm [...] The computer has two Opterons (single chip 275 with two cores) and is running a recent 6.1-stable (amd64). This happens about once a week. Sometimes a reboot is required, sometimes killing the stuck process and kldunload-ing the snd_ich is sufficient... Kmail is not using the audio in any way and the irq-17 is not shared with any other device (dmesg attached). When snd_ich is loaded, it says, as expected: pcm0: port 0xc800-0xc8ff,0xcc00-0xcc3f irq 17 at device 7.5 on pci0 pcm0: What's going on? Thanks! -mi last pid: 5150; load averages: 49.23, 52.22, 45.23 up 13+03:13:30 16:01:30 158 processes: 2 running, 154 sleeping, 1 stopped, 1 zombie CPU states: 50.0% user, 0.0% nice, 1.7% system, 22.6% interrupt, 25.8% idle Mem: 1487M Active, 1859M Inact, 303M Wired, 120M Cache, 214M Buf, 16M Free Swap: 4465M Total, 52K Used, 4465M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 5893 mi 3 20 0 298M 177M kserel 1 323:18 7634.18% kmail 90397 root 1 5 0 7400K 1768K ttyin 1 97:01 1.12% systat 80809 i 1 120 0 238M 224M select 0 160:18 0.68% firefox-bin 2265 root 1 96 0 261M 144M select 0 49.0H 0.00% Xorg 2267 root 1 96 0 184M 76428K select 0 149:40 0.00% Xorg 18203 mi 4 20 0 179M 67696K kserel 0 135:45 0.00% kopete 2336 i 1 96 0 134M 32132K select 0 71:43 0.00% kdeinit 87056 i 1 96 0 118M 64392K select 0 52:09 0.00% acroread [...] --Boundary-00=_b234EWiI62Dw0Xc--