From owner-freebsd-geom@FreeBSD.ORG Mon Apr 15 19:18:19 2013 Return-Path: Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 6A1AB754; Mon, 15 Apr 2013 19:18:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D4451157B; Mon, 15 Apr 2013 19:18:18 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.6/8.14.6) with ESMTP id r3FJIFng018857; Mon, 15 Apr 2013 22:18:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.2 kib.kiev.ua r3FJIFng018857 Received: (from kostik@localhost) by tom.home (8.14.6/8.14.6/Submit) id r3FJIFrR018856; Mon, 15 Apr 2013 22:18:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 15 Apr 2013 22:18:15 +0300 From: Konstantin Belousov To: Pawel Jakub Dawidek Subject: Re: devstat overhead VS precision Message-ID: <20130415191815.GR2930@kib.kiev.ua> References: <51692C95.3010901@FreeBSD.org> <20130415184203.GA1839@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6cExhHXXDEBW2NKZ" Content-Disposition: inline In-Reply-To: <20130415184203.GA1839@garage.freebsd.pl> User-Agent: Mutt/1.5.21 (2010-09-15) 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 version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: freebsd-hackers@FreeBSD.org, Alexander Motin , freebsd-geom@FreeBSD.org X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Apr 2013 19:18:19 -0000 --6cExhHXXDEBW2NKZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Apr 15, 2013 at 08:42:03PM +0200, Pawel Jakub Dawidek wrote: > On a mostly unrelated note when two threads (T0 and T1) call get*time() > on two different cores, but T0 does that a bit earlier is it possible > that T0 can get later time than T1? Define earlier first. If you have taken sufficient measures to prevent preemption and interruption, e.g. by entering spinlock before the fragment that calls get*, then no, it is impossible, at least not with any x86 timekeeping hardware we use. On the other hand, if interrupts are allowed, all bets are off. --6cExhHXXDEBW2NKZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBAgAGBQJRbFJ2AAoJEJDCuSvBvK1B23MQAJEv7S5Z6HpuFZZEPrvvoFAJ uoYC+eIVzmQ0tcf6BsCjhd0/hqwjzF34be8wtaAvJdzBoMgJ44RJci2bCl0NHM6L Onwt6L8o4Tdx5gc6LzrERH78aCrpIBtOrg5y/oOr+9ecv4EKLuCm8xQf4SDQyY4F qcteyKQOaWDyZkRZQ7FMH9FpRPHQ+1yVEWsyxoqLck4hASoE87/ogieWPr2/4RGg jMzH8UFgdmnv3FgMZc+9ksHcZZctoOZt613O+LyVX6/vQwHubeefXcRbuGxnbE2h 1LAIlzIUWwm2H6LkWrqBM6TABu17vb1YPRgGtg8hE7Gfktd7QT31IZ3NL5IO9DRE 9esF9Ya32zrCcFOXZb/TkmC9RsdcjCwQHhK/VR1rUe6ZP3C5sq1yTWwMFG2GtXIv zdMrqOlJO69Cw3efrMcPBtRY0U5b48KtOmLqK/ntuRjo7I1np4c+tXEdRpRgSJy3 +aVBJHijtId4jahvwN2+DswXw8gxhYRs692IuR+P5VSg+d5Il/NSve8RFj0SfCO1 SP4eY+MfDBbxQOoxGTjDVNNK9uRKRDAF/6Hx0zB/nvySXLDBMG9whmVXj4pYSFfL dF310fGGxKiUGZ1vr/ESAPB220TNg1O0PS1nb0r9caJHWj+FK/7b4FdrCZi5Dspy p7uuueUvPU+Ja9a5IF/V =XPWU -----END PGP SIGNATURE----- --6cExhHXXDEBW2NKZ--