From owner-svn-src-head@FreeBSD.ORG Wed Jun 4 05:04:48 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 944F6A5 for ; Wed, 4 Jun 2014 05:04:48 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5890F2242 for ; Wed, 4 Jun 2014 05:04:48 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s5454mdT071270 for ; Wed, 4 Jun 2014 05:04:48 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s5454lec071264 for svn-src-head@freebsd.org; Wed, 4 Jun 2014 05:04:47 GMT (envelope-from bdrewery) Received: (qmail 35739 invoked from network); 4 Jun 2014 00:04:45 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 4 Jun 2014 00:04:45 -0500 Message-ID: <538EA8E4.1070300@FreeBSD.org> Date: Wed, 04 Jun 2014 00:04:36 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Alexander Motin , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r267029 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs References: <201406032106.s53L63oR085624@svn.freebsd.org> In-Reply-To: <201406032106.s53L63oR085624@svn.freebsd.org> X-Enigmail-Version: 1.6 OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pCObaMKpaP8FXAblIcCRAjj2NVNaNtiGb" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2014 05:04:48 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --pCObaMKpaP8FXAblIcCRAjj2NVNaNtiGb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 6/3/2014 4:06 PM, Alexander Motin wrote: > Author: mav > Date: Tue Jun 3 21:06:03 2014 > New Revision: 267029 > URL: http://svnweb.freebsd.org/changeset/base/267029 >=20 > Log: > Replace gethrtime() with cpu_ticks(), as source of random for the tas= kqueue > selection. gethrtime() in our port updated with HZ rate, so unusable= for > this specific purpose, completely draining benefit of multiple taskqu= eues. > =20 > MFC after: 2 weeks >=20 > Modified: > head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c >=20 > Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Tue Jun = 3 21:02:19 2014 (r267028) > +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c Tue Jun = 3 21:06:03 2014 (r267029) > @@ -953,7 +953,7 @@ spa_taskq_dispatch_ent(spa_t *spa, zio_t > if (tqs->stqs_count =3D=3D 1) { > tq =3D tqs->stqs_taskq[0]; > } else { > - tq =3D tqs->stqs_taskq[gethrtime() % tqs->stqs_count]; > + tq =3D tqs->stqs_taskq[cpu_ticks() % tqs->stqs_count]; > } > =20 > taskq_dispatch_ent(tq, func, arg, flags, ent); >=20 FYI r267038. --=20 Regards, Bryan Drewery --pCObaMKpaP8FXAblIcCRAjj2NVNaNtiGb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTjqjoAAoJEDXXcbtuRpfPBDkIALkJ7A+OSts7Jh8BjLix2D63 Kp5snxnJOwruIKfeSpDvE8VXFwVHPTpoXltl7YgoepvlEdLoFTq2+IDvWqyROiX+ rgd2AWn5xgM7pV67HZe8YtZRBTXZ0HNyzQ40Sy2ZbS0udeq1hLqjMUBUy/12cmDG +Jw8oVylwsP62CJiLzaX/GBuLGPq4sitBn3yqj0sMgp9zsJHQ2brS/UXkcy07vhz kqqoVSLZT3Lnmefs9u/2NDc0l0g0RCfbxqi7UMQPN9qHyFpXXEuUnjL1YiQNG80S /z/cKe8wOklXEkqShtsNleiyVlXPrag8yqw51UkpEVci+MzyhW9SKhRxAVdHgOw= =8+rR -----END PGP SIGNATURE----- --pCObaMKpaP8FXAblIcCRAjj2NVNaNtiGb--