From owner-freebsd-stable@FreeBSD.ORG Sun Nov 28 07:26:30 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A61D106564A for ; Sun, 28 Nov 2010 07:26:30 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail36.syd.optusnet.com.au (mail36.syd.optusnet.com.au [211.29.133.76]) by mx1.freebsd.org (Postfix) with ESMTP id D0CC88FC08 for ; Sun, 28 Nov 2010 07:26:29 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c220-239-116-103.belrs4.nsw.optusnet.com.au [220.239.116.103]) by mail36.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id oAS7QQia009418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 28 Nov 2010 18:26:27 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.4/8.14.4) with ESMTP id oAS7QOsK017417 for ; Sun, 28 Nov 2010 18:26:24 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.4/8.14.4/Submit) id oAS7QONX017416 for freebsd-stable@freebsd.org; Sun, 28 Nov 2010 18:26:24 +1100 (EST) (envelope-from peter) Date: Sun, 28 Nov 2010 18:26:24 +1100 From: Peter Jeremy To: freebsd-stable@freebsd.org Message-ID: <20101128072624.GA76358@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Subject: idprio processes slowing down system 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: Sun, 28 Nov 2010 07:26:30 -0000 --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Since scheduler issues have been popular lately, I thought I'd investigate a ULE issue I've been aware of for a while... I normally have some boinc (ports/astro/boinc) applications running and I'd noticed that my nightly builds appear to end much sooner when there's no boinc work units (this has been common for setiathome). This morning, I timed 4 "make -j3 KERNCONF=3DGENERIC buildkernel" of 8-stable with the following results: boinc running: 1167.839u 287.055s 18:45.69 129.2% 6140+1975k 1+0io 114pf+0w 1166.431u 288.265s 18:00.16 134.6% 6139+1975k 0+0io 106pf+0w 1168.490u 287.599s 17:52.24 135.7% 6137+1975k 0+0io 106pf+0w 1165.747u 287.641s 17:10.38 141.0% 6138+1975k 0+0io 106pf+0w boinc stopped: 1165.052u 291.492s 15:54.72 152.5% 6125+1972k 0+0io 106pf+0w 1166.101u 290.305s 15:42.54 154.5% 6132+1973k 0+0io 106pf+0w 1165.248u 290.335s 15:35.93 155.5% 6132+1974k 0+0io 106pf+0w 1166.100u 289.749s 15:26.35 157.1% 6137+1974k 0+0io 106pf+0w Since the the results were all monotonically reducing in wallclock time, I decided to do a further 4 buildkernels with boinc running: 1168.242u 284.693s 17:33.05 137.9% 6140+1975k 0+0io 106pf+0w 1167.191u 285.332s 17:19.27 139.7% 6140+1976k 0+0io 106pf+0w 1224.813u 291.963s 20:14.90 124.8% 6121+1966k 0+0io 106pf+0w 1213.132u 294.564s 19:48.98 126.8% 6116+1967k 0+0io 106pf+0w ministat(1) reports there is no statistical difference in the user or system time: User time: x boinc_running + boinc_stopped +----------------------------------------------------------------------+ | +* x | | +*xx x x| ||________|A_M___________A_______________________| | +----------------------------------------------------------------------+ N Min Max Median Avg Stddev x 8 1165.747 1224.813 1168.242 1180.2356 24.12896 + 4 1165.052 1166.101 1166.1 1165.6253 0.55457454 No difference proven at 95.0% confidence System time: x boinc_running + boinc_stopped +----------------------------------------------------------------------+ | + | |x x x xx x + + + x x| | |_________________M____A________|___MA_____|__| | +----------------------------------------------------------------------+ N Min Max Median Avg Stddev x 8 284.693 294.564 287.641 288.389 3.3142183 + 4 289.749 291.492 290.335 290.47025 0.73252412 No difference proven at 95.0% confidence But there is a significant difference in the wallclock time: x boinc_running + boinc_stopped +----------------------------------------------------------------------+ |+ + + + x x x x x x x x| ||__AM_| |___________M____A_______________| | +----------------------------------------------------------------------+ N Min Max Median Avg Stddev x 8 1030.38 1214.9 1080.16 1100.5838 69.364795 + 4 926.35 954.72 942.54 939.885 11.915879 Difference at 95.0% confidence -160.699 +/- 79.6798 -14.6012% +/- 7.23977% (Student's t, pooled s =3D 58.4006) Since all the boinc processes are running at i31, why are they impacting a buildkernel that runs with 0 nicety? System information: AMD Athlon(tm) Dual Core Processor 4850e (2511.45-MHz K8-class CPU) running FreeBSD/amd64 from just before 8.1-RELEASE with WITNESS and WITNESS_SKIPSPIN, 8GB RAM, src and obj are both on ZFS. --=20 Peter Jeremy --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkzyBCAACgkQ/opHv/APuIcVIgCfQAui9qy8lYYTfMlrb0iJEhrF cIoAnilj7IezyuvXRIdt3tRgFHrnEQ0A =OJYR -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--