From nobody@FreeBSD.org  Fri Oct 20 18:38:33 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8FC4616A4E0
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Oct 2006 18:38:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8600E43D7D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Oct 2006 18:38:08 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9KIc6UM038265
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 20 Oct 2006 18:38:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9KIc6Nf038264;
	Fri, 20 Oct 2006 18:38:06 GMT
	(envelope-from nobody)
Message-Id: <200610201838.k9KIc6Nf038264@www.freebsd.org>
Date: Fri, 20 Oct 2006 18:38:06 GMT
From: "O. Hartmann"<ohartman@zedat.fu-berlin.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Sound, mouse and keyboard badly interrupted while I/O (disk, net)
X-Send-Pr-Version: www-3.0

>Number:         104624
>Category:       kern
>Synopsis:       Sound, mouse and keyboard badly interrupted while I/O (disk, net)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 20 18:40:17 GMT 2006
>Closed-Date:    Wed Dec 15 18:29:28 UTC 2010
>Last-Modified:  Wed Dec 15 18:29:28 UTC 2010
>Originator:     O. Hartmann
>Release:        FreeBASD 6.2-PRE/AMD64 and /i386
>Organization:
FU Berlin
>Environment:
FreeBSD foo.fu-berlin.de 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #98: Thu Oct 19 10:46:52 CEST 2006     root@foo.fu-berlin.de:/usr/obj/usr/src/sys/FOO  i386

FreeBSD foo.org 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Thu Oct 19 22:23:30 UTC 2006     root@foo.org:/usr/obj/usr/src/sys/FOO  amd64
>Description:
When boxes are under light oder heavy load (compiling kernel/world with
-j2, compiling kernel, running a torrent additionally or not), sound,
graphics output, mouse and keyboard input gets badly interrupted. Pressing
deletion key for deleing areas of bad input results in stopping moving
coursor as the key would not be pressed, sound stops, mouse pointer gets
'jumping' over the screen and sometimes it seems that graphics output also
stops working for a second.

This behaviour is on two boxes with different hardware: my lab's box, a
Intel P4, 3.0 GHz, 2GB RAM, ATA100 120 GB drives and my home's box, AMD64,
Athlon 64 3500+, 2 GB RAM, SATA300 drives.

This weird phenomenon occured within the last 3 weeks and is present with
SCHED_ULE and SCHED_4BSD and also occurs when both boxes are not under heavy
load but just compiling a kernel.

On AMD64 disk IO seems to be worse, since this problem occurs in a bad
manner when heavy disk I/O is done. Sometimes it occurs also when simply
save a file. 

Since I do weekly  cvsupdating and compiling and having in parallel jobs
running, this behaviour was never seen before.

AMD64 seems to have problems, so I ignored these problems, but since they
also are present on my lab's box, which is a 32 bit i386 architecture, I
suspect a problem in FreeBSD.

Both boxes uses AC97 (snd_ich).
>How-To-Repeat:
Doing disk IO or load over network while playing sound or moving mouse or
typing keyboard it will result in interrupts and jumping mouse-pointer,
sometimes screen seems to freeze.
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jh 
State-Changed-When: Sun Dec 12 09:46:57 UTC 2010 
State-Changed-Why:  
Is this still a problem for you? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104624 

From: Alexander Best <arundel@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/104624: Sound, mouse and keyboard badly interrupted while I/O (disk, net)
Date: Sun, 12 Dec 2010 11:03:05 +0000

 hi jaakko,
 
 i can confirm that a similar issue exists for me running a very recent HEAD
 snapshot on amd64. when the disk is performing heavy i/o (make -j8 buildworld
 e.g.) sound starts stuttering and the system goes semi-responsive. mostly the
 mouse input (usb) is lagging, but sometimes the cursor freezes in it's current
 position for 10 seconds or so. in addition to that mouse input seems to get
 corrupted and spontanious mouse clicks get generated. i talked to hps once and
 he suspected that some mice require a certain polling rate. since under heavy
 i/o the system seems unable to comply to that polling rate the mouse behavior
 becomes whacky. i see this behavior both under ULE and 4BSD. this is the
 output of vmstat -i on my system:
 
 interrupt                          total       rate
 irq16: vgapci0++                  644115          6
 irq18: uhci2 ehci0+               130730          1
 irq19: ath0 ahci0+              24562200        259
 irq20: hpet0                    85278624        900
 irq21: uhci1                     2478835         26
 irq256: ahci1                   22677130        239
 irq257: hdac0                    5554487         58
 Total                          141326121       1492
 
 this is my soundcard:
 
 hdac0@pci0:0:27:0:	class=0x040300 card=0xa0021458 chip=0x293e8086 rev=0x02 hdr=0x00
     vendor     = 'Intel Corporation'
     device     = '82801IB/IR/IH (ICH9 Family) HD Audio Controller'
     class      = multimedia
     subclass   = HDA
 
 cheers.
 alex
 
 -- 
 a13x
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Wed Dec 15 18:21:57 UTC 2010 
State-Changed-Why:  
Submitter doesn't experience the problem anymore. Reportedly similar 
issues still exist but I think it's better to open new PR(s) with 
relevant details for them. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104624 
>Unformatted:
