From owner-freebsd-stable@FreeBSD.ORG Wed May 25 18:53:40 2005 Return-Path: X-Original-To: freebsd-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 7048516A41C for ; Wed, 25 May 2005 18:53:40 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 088EB43D53 for ; Wed, 25 May 2005 18:53:40 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id EC0E851436; Wed, 25 May 2005 11:54:27 -0700 (PDT) Date: Wed, 25 May 2005 11:54:27 -0700 From: Kris Kennaway To: Matthias Buelow Message-ID: <20050525185427.GB92006@xor.obsecurity.org> References: <84dead7205052420503fded0e9@mail.gmail.com> <4293FD27.90500@incubus.de> <20050525042706.GA60021@xor.obsecurity.org> <4294054C.9080207@incubus.de> <20050525050943.GA64320@xor.obsecurity.org> <42940A81.1030801@incubus.de> <20050525052214.GA76339@xor.obsecurity.org> <42940C87.5000705@incubus.de> <20050525053054.GA76491@xor.obsecurity.org> <4294AB75.9080908@incubus.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DKU6Jbt7q3WqK7+M" Content-Disposition: inline In-Reply-To: <4294AB75.9080908@incubus.de> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org, Kris Kennaway Subject: Re: Performance of 4.x vs 5.x (Re: Lifetime of FreeBSD branches) 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, 25 May 2005 18:53:40 -0000 --DKU6Jbt7q3WqK7+M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 25, 2005 at 06:44:37PM +0200, Matthias Buelow wrote: > Kris Kennaway wrote: >=20 > >>interrupt total rate > >>irq1: atkbd0 586 0 > >>irq13: npx0 1 0 > >>irq14: ata0 94 0 > >>irq17: wi0 54 0 > >>irq20: fxp0 atapci1 62079 99 > >>irq21: uhci0 ehci0 1 0 > >>irq22: uhci1 1102 1 > >>lapic0: timer 1246549 1994 > >>lapic1: timer 1246427 1994 > >>Total 2556893 4091 > >>The only relevant conflict I could see is irc 20; but I had already=20 > >>tested that by removing fxp0 from the kernel. > > > >I wonder if USB is causing the problem all on its own..since that was > >the culprit in other situations when it was being triggered by virtue > >of interrupt sharing. Any chance you can try a non-USB mouse and > >remove USB from your kernel? >=20 > Ok, now USB (both uhci and ehci) is gone. The problem is still the=20 > same. vmstat -i: >=20 > interrupt total rate > irq1: atkbd0 1324 3 > irq12: psm0 8562 21 > irq13: npx0 1 0 > irq14: ata0 94 0 > irq17: wi0 381 0 > irq20: fxp0 atapci1 61956 154 > lapic0: timer 801433 1993 > lapic1: timer 801292 1993 > Total 1675043 4166 >=20 > To be frank, I do not believe it's got anything to do with locking or=20 > interrupts. It somehow seems just like the scheduler is doing a bad job= =20 > of balancing interactive processes vs. disk i/o. I've seen the same=20 > stuff for years on NetBSD (until they changed scheduling around 1.5 or=20 > so) and Linux (until 2.4 kernels). During that time FreeBSD didn't=20 > exhibit these symptoms and only in 5.x have I seen that kind of=20 > behaviour creep back in. Has the classic scheduler been changed=20 > somehow? Maybe I should try and see if the problem persists with the=20 > ULE scheduler? Others don't see this though, and in other cases it was *definitively proven* to be caused by the issue I mentioned. I'll have to think more about what to try next..thanks for running the tests. Kris --DKU6Jbt7q3WqK7+M Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFClMnjWry0BWjoQKURAtwvAKDOueLRUxtwZrozws+j3MyidpK6nwCfabQj UJFjMCqWj1VBW4FjATHc9qA= =znEi -----END PGP SIGNATURE----- --DKU6Jbt7q3WqK7+M--