From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 7 18:41:37 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3D9E5FA7 for ; Sat, 7 Jun 2014 18:41:37 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B772025FF for ; Sat, 7 Jun 2014 18:41:36 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id s57IfQqe038334; Sat, 7 Jun 2014 21:41:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua s57IfQqe038334 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.8/Submit) id s57IfQ0q038333; Sat, 7 Jun 2014 21:41:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 7 Jun 2014 21:41:26 +0300 From: Konstantin Belousov To: Dutch Ingraham Subject: Re: Fwd: Interrupt Overload Message-ID: <20140607184126.GQ3991@kib.kiev.ua> References: <538A3432.5010303@gmx.us> <53930E19.8090603@gmx.us> <53931963.4040604@selasky.org> <53932314.6010108@gmx.us> <1402153691.709851721.u6k6kkkk@frv35.fwdcdn.com> <53933110.8060300@gmx.us> <1402157083.156846225.m95e69ke@frv35.fwdcdn.com> <53934250.1090403@gmx.us> <20140607175752.GP3991@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jHnPw6A2BvaEmbUM" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jun 2014 18:41:37 -0000 --jHnPw6A2BvaEmbUM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 07, 2014 at 08:21:08PM +0200, Dutch Ingraham wrote: >=20 >=20 > > Sent: Saturday, June 07, 2014 at 1:57 PM > > From: "Konstantin Belousov" > > To: "Dutch Ingraham" > > Cc: freebsd-hackers@freebsd.org > > Subject: Re: Fwd: Interrupt Overload > > > > On Sat, Jun 07, 2014 at 12:48:16PM -0400, Dutch Ingraham wrote: > > > On 06/07/2014 12:04 PM, Vladislav Prodan wrote: > > > >=20 > > > >=20 > > > > =20 > > > > --- Original message --- > > > > From: "Dutch Ingraham" > > > > Date: 7 June 2014, 18:33:12 > > > > =20 > > > >=20 > > > >> > > > >> Thanks for the response. > > > >> > > > >> The output you requested: > > > >> > > > >> kern.eventtimer.choice: HPET1 (440) HPET2 (440) HPET3 (440) HPET4 = (440) > > > >> HPET5 (440) HPET6 (440) LAPIC (400) i8254 (100) RTC (0) > > > >> > > > >> kern.eventtimer.choice: HPET (did not specify 1, 2, etc.) > > > >> > > > >> I also changed the type of timer to LAPIC and rebooted; there was = no > > > >> appreciable change in the interrupt activity. > > > >=20 > > > > After reboot what became timer? :) > > > >=20 > > > > You can change the timer "on the fly", without rebooting the system. > > > >=20 > > > > If LAPIC does not help, then try other timers. > > > >=20 > > > >=20 > > > > -- > > > > Vladislav V. Prodan > > > > System & Network Administrator > > > > support.od.ua > > > > =20 > > > > _______________________________________________ > > > > freebsd-hackers@freebsd.org mailing list > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > > > > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freeb= sd.org" > > > >=20 > > >=20 > > > You're right, it is not persistent. I changed to each different event > > > timer and the only one that made a difference was the i8254; that > > > dropped the cpu load from 30% to 10-12%. Much better, but still of > > > course not acceptable for a Core II-Duo running at 3.0GHz. The load > > > averages shown in do also drop proportionally. Interestingly, > > > though, shows the same interrupt rate - 325K/sec. > > >=20 > > > What do you make of the fact that when I suspend with < > > > and then wake-up, everything is absolutely normal, regardless of event > > > timer type? > >=20 > > You did not shown _useful_ output of vmstat -i. Do it when the storm > > occurs. Also, show the pciconf -lvc output on the machine. > >=20 >=20 > Sorry - I was entering that output by hand, so truncated what I thought w= as not useful. =20 > In addition, the storm is always occurring, unless I put the machine to s= leep and then wake-up. >=20 > Here is the full vmstat -i: >=20 > dutch:~:# vmstat -i > interrupt total rate > irq1: atkbd0 48 0 > irq0: attimer0 12236927 1178 > irq8: atrtc0 146537 14 > irq16: uhci0 3362560857 323946 > irq18: atapci0+ 19828 1 > irq23: uhci3 ehci1 2 0 > cpu0:timer 163301 15 > irq256: hpet0:t0 4516011 435 > irq257: hpet0:t1 83960 8 > irq264: em0 31799 3 > irq265: hdac0 95 0 > irq266: ahci0:ch0 8423 0 > irq267: ahci0:ch1 15620 1 > cpu1:timer 1229 0 > irq274: vgapci0 10041 0 > Total 3379794678 325606 > dutch:~:# >=20 > And here is pciconf -lvc: >=20 > dutch:~:# pciconf -lvc > hostb0@pci0:0:0:0: class=3D0x060000 card=3D0x04201028 chip=3D0x2e108086 r= ev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D '4 Series Chipset DRAM Controller' > class =3D bridge > subclass =3D HOST-PCI > cap 09[e0] =3D vendor (length 12) Intel cap 6 version 1 > pcib1@pci0:0:1:0: class=3D0x060400 card=3D0x04201028 chip=3D0x2e118086 re= v=3D0x03 hdr=3D0x01 > vendor =3D 'Intel Corporation' > device =3D '4 Series Chipset PCI Express Root Port' > class =3D bridge > subclass =3D PCI-PCI > cap 0d[88] =3D PCI Bridge card=3D0x04201028 > cap 01[80] =3D powerspec 3 supports D0 D3 current D0 > cap 05[90] =3D MSI supports 1 message=20 > cap 10[a0] =3D PCI-Express 2 root port slot max data 128(128) link x0= (x16) > speed 0.0(5.0) ASPM disabled(L0s) > ecap 0002[100] =3D VC 1 max VC0 > ecap 0005[140] =3D Root Complex Link Declaration 1 > vgapci0@pci0:0:2:0: class=3D0x030000 card=3D0x04201028 chip=3D0x2e128086 = rev=3D0x03 hdr=3D0x00 > vendor =3D 'Intel Corporation' > device =3D '4 Series Chipset Integrated Graphics Controller' > class =3D display > subclass =3D VGA > cap 05[90] =3D MSI supports 1 message enabled with 1 message > cap 01[d0] =3D powerspec 2 supports D0 D3 current D0 Try to set the tunable hw.drm.msi to 0 before i915 driver is loaded. I.e. the easiest is to set it at loader prompt. If you load driver by starting Xorg, then kenv hw.drm.msi=3D0 would be enough. Either way, helped it or not, post the vmstat -i output while the Xorg is running. --jHnPw6A2BvaEmbUM Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJTk1zVAAoJEJDCuSvBvK1BJ9gP/A/9wsfjzpG5r79c2VoCIIcL BKsLj1YjzG9Vllefxjl5C6jopr/Pc0snbmBArW7I0C7B3EQrvvkrAEQdrUV4VfKQ ppaRDQdgYxy8we4m4mxhYuu9xns/Sr/k7TnfF3ujrxKPjiwovUQDDjZNKBVp7rvN L8FrvqKTKV1AAIanMNQPvKxbrOnBRi1hOD57HABcaK8V81gDCfXgj+n3XPMK0aGR caIGn8rH6NZEmaMAKeYfh5zTeqcHE8RkiX+1r8/4rCUkJ/yKceL7LLBZfvusc4j8 UOZ5nrRxagXlTcmjPfDovcHe2+qdDMIe1vZj0DeOHTq9z3515wkuAcgKDCy4TETK KGNdzGr6xCCMhakJZR6bj20Fly81YPq0qSkGjMC7+3h4APJQsyZeGtuieea58AR4 crqAiDLQML6TXh8Z8UqrsRCaP4r7L/6/AB5NILUaiodHZ+zOk4tqSbXeVALNsFp1 l+Wq8OoiHJ+Ok5VHkgq3Qy91wozYcjUugdWRfPWk+BM/MTuirH42y1D0PDv/jK4S 65E2x286j+/ratLXK/tejVr97XvC1HoJWrPdo4z43C+MS7l5/BqMjqj74Dop1n2q yVupLZPk6lqhiTaHnabLqnJu9u4GQLM3rn7k4z9f9GSaal2Y9mSfuQ73iqwwP/Mj p6Ny/6FiYpNJFgTYBF6+ =Wg7y -----END PGP SIGNATURE----- --jHnPw6A2BvaEmbUM--