From owner-freebsd-bugs@freebsd.org Thu May 30 05:44:20 2019 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 54B1F15B8B88 for ; Thu, 30 May 2019 05:44:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DB249720A7 for ; Thu, 30 May 2019 05:44:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 970C315B8B87; Thu, 30 May 2019 05:44:19 +0000 (UTC) Delivered-To: bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6FDF115B8B86 for ; Thu, 30 May 2019 05:44:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 06825720A4 for ; Thu, 30 May 2019 05:44:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 3B240C62 for ; Thu, 30 May 2019 05:44:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x4U5iI6G091168 for ; Thu, 30 May 2019 05:44:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x4U5iIWf091167 for bugs@FreeBSD.org; Thu, 30 May 2019 05:44:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 238235] Interrupt storms from USB bluetooth dongle Date: Thu, 30 May 2019 05:44:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: naito.yuichiro@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2019 05:44:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238235 Bug ID: 238235 Summary: Interrupt storms from USB bluetooth dongle Product: Base System Version: 12.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: naito.yuichiro@gmail.com I'm using a bluetooth keyboard for FreeBSD 12.0-R box. I found that lot's of interrupts come from USB bluetooth dongle. $ env LC_ALL=3DC systat -vmstat 1 users Load 0.13 0.25 0.24 May 30 14:21 Mem usage: 42%Phy 28%Kmem Mem: KB REAL VIRTUAL VN PAGER SWAP PAG= ER Tot Share Tot Share Free in out in o= ut Act 489720 74344 528043K 92740 4635728 count All 491424 75860 528066K 115680 pages Proc: Interrupts r p d s w Csw Trp Sys Int Sof Flt ioflt 2072 total 151 4454 5 166 2035 53 3 cow uart0= 4 zfod 2 vgapc= i0 16 0.2%Sys 0.2%Intr 0.0%User 0.0%Nice 99.6%Idle ozfod 13 cpu0:timer | | | | | | | | | | %ozfod 3 cpu1:timer daefr 8 cpu2:timer dtbuf 3 prcfr 14 cpu3:timer Namei Name-cache Dir-cache 212045 desvn 3 totfr 1999 xhci0= 264 Calls hits % hits % 52909 numvn react 1 ahci0= 265 45 45 100 41582 frevn pdwak hdac0= 266 59 pdpgs 32 em0:i= rq0 Disks ada0 cd0 pass0 pass1 pass2 intrn KB/t 0.00 0.00 0.00 0.00 0.00 2381176 wire tps 0 0 0 1 0 153500 act MB/s 0.00 0.00 0.00 0.00 0.00 818332 inact %busy 0 0 0 0 0 252 laund 4635728 free buf When I remove the bluetooth dongle, `systat -vmstat` show as follows. 1 users Load 0.25 0.14 0.16 May 30 14:33 Mem usage: 42%Phy 28%Kmem Mem: KB REAL VIRTUAL VN PAGER SWAP PAG= ER Tot Share Tot Share Free in out in o= ut Act 527812 75424 528176K 93956 4613172 count All 529516 76940 528199K 116896 pages Proc: Interrupts r p d s w Csw Trp Sys Int Sof Flt ioflt 64 total 156 313 4 155 33 51 1 cow uart0= 4 zfod 1 vgapc= i0 16 0.0%Sys 0.1%Intr 0.1%User 0.0%Nice 99.8%Idle ozfod 15 cpu0:timer | | | | | | | | | | %ozfod 5 cpu1:timer daefr 5 cpu2:timer dtbuf 8 prcfr 7 cpu3:timer Namei Name-cache Dir-cache 212045 desvn 8 totfr xhci0= 264 Calls hits % hits % 52916 numvn react 1 ahci0= 265 35 35 100 41591 frevn pdwak hdac0= 266 67 pdpgs 30 em0:i= rq0 Disks ada0 cd0 pass0 pass1 pass2 intrn KB/t 0.00 0.00 0.00 0.00 0.00 2387644 wire tps 0 0 0 1 0 178324 act MB/s 0.00 0.00 0.00 0.00 0.00 810580 inact %busy 0 0 0 0 0 252 laund 4613172 free buf `dmesg` shows my USB controller as follows. xhci0: mem 0xe1020000-0xe102ffff at dev ice 20.0 on pci0 xhci0: 32 bytes context size, 64-bit DMA `usbconfig dump_device_desc` shows my bluetooth dongle as follows. ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd=3DFUL= L (12Mbps) pwr=3DON (100mA) bLength =3D 0x0012 bDescriptorType =3D 0x0001 bcdUSB =3D 0x0200 bDeviceClass =3D 0x00e0 bDeviceSubClass =3D 0x0001 bDeviceProtocol =3D 0x0001 bMaxPacketSize0 =3D 0x0040 idVendor =3D 0x0a12 idProduct =3D 0x0001 bcdDevice =3D 0x8891 iManufacturer =3D 0x0000 iProduct =3D 0x0002 iSerialNumber =3D 0x0000 bNumConfigurations =3D 0x0001 I have tried 'sysctl hw.usb.xhci.use_polling=3D1', but nothing changed. --=20 You are receiving this mail because: You are the assignee for the bug.=