From owner-freebsd-current@freebsd.org Mon Mar 12 20:36:06 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8AAEAF46150 for ; Mon, 12 Mar 2018 20:36:06 +0000 (UTC) (envelope-from arshan@freebsdfoundation.org) Received: from mail-qk0-x235.google.com (mail-qk0-x235.google.com [IPv6:2607:f8b0:400d:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 223226FEC8 for ; Mon, 12 Mar 2018 20:36:06 +0000 (UTC) (envelope-from arshan@freebsdfoundation.org) Received: by mail-qk0-x235.google.com with SMTP id j4so12994022qke.10 for ; Mon, 12 Mar 2018 13:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsdfoundation.org; s=gfnp-20170908; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JLKGy77fQ1IVhDF2Fr1/czR4MAPPHfn3I3Gn4Q6mgY4=; b=kf/TSh9Jbo/Pf7Jam2iFEJ40IbhT/bw59xmyZIfayzd4fNVUZncRsYK8zpQVY2AtKA 3pbbYTgRnn6HEhArH4XRujOy9HcT5yIW/0BZb402GIUKMFIzBZWFD9IFtFvgCtMjAtrl PB5HNo2MJImRx1TySglz3OpkQnxf4oWaS70X8E+qWg1NsX9nKTTY2KAfqxLm21ved5AN Utc52e0wwFYvFNnsS9zSf5PNAfafhuXnlCYy/KZR0Y7IzdhfqrnbAURij6qJtAcrIPUG KNuJrOxczGh9Wb62s47ildlG1Uaqcb29fIX68e1whQ6PcpKLGecivrziTySzZo8Mlmnf Eodw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JLKGy77fQ1IVhDF2Fr1/czR4MAPPHfn3I3Gn4Q6mgY4=; b=E4qpW3zlXZHawJlU6/+kXJmrjCkSjoW6oUbKHZ59m2+MeFml0Ruw5mJtSx37wI9uog WET6TEd53pLEGbRzCAj3hpjEwUj0MbWExSKEypnG+0kKef+uSzC2hxj6emcxJrFUaE+Z fDvMOIlAqOcQYIuyAgQJSGc64P8j9r5P2y3ZqsrQupWyKk25fMERYfuOdBD+VbgN+z9J yqwqDXDa3ts++EVFjLAI/Kv3cxP+37e/ZLbHjplePnu6m5WCoEH6QPe1uDr/1+8y/xvi 9fLlcqongVg6vnS3K+/prjewVEs3RKHPPL1o9hkURmsMsqT6u/ecjqPrlRORQdS27fkr 4i6g== X-Gm-Message-State: AElRT7GCJ+egMCyp+p0Ue51ulk4Ac8YYl4X6tpoc+auuv3xYmcT6lCT7 AhTVBL7uc8vgxBdawMAKRUIekjfMdGbMSLME6TSW1Q== X-Google-Smtp-Source: AG47ELtXili7n98wCekFr90qXji95DIPPwWPL+TbKSg5a1/KAmWx1QeQiz6ThOpRAb4zcfswLOsmnJKrW7nfj7ou/6Y= X-Received: by 10.55.47.7 with SMTP id v7mr12895651qkh.53.1520886965733; Mon, 12 Mar 2018 13:36:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.34.82 with HTTP; Mon, 12 Mar 2018 13:36:05 -0700 (PDT) In-Reply-To: <20180309151606.GP81872@zxy.spb.ru> References: <20180309120131.GA38546@zxy.spb.ru> <20180309151606.GP81872@zxy.spb.ru> From: Arshan Khanifar Date: Mon, 12 Mar 2018 16:36:05 -0400 Message-ID: Subject: Re: Performance Benchmark for PTI (aka Meltdown mitigation) To: Slawa Olhovchenkov Cc: Ed Maste , FreeBSD Current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Mar 2018 20:36:06 -0000 I did some benchmarking for the two revisions: results are here: https://github.com/ArshanKhanifar/pti-benchmark/tree/master/stable-11-pre-after/results first file is before pti patch and second file is after pti patch. On Fri, Mar 9, 2018 at 10:16 AM, Slawa Olhovchenkov wrote: > On Fri, Mar 09, 2018 at 09:58:55AM -0500, Ed Maste wrote: > > > On 9 March 2018 at 07:01, Slawa Olhovchenkov wrote: > > > On Thu, Mar 08, 2018 at 05:04:11PM -0500, Arshan Khanifar wrote: > > > > > >> Executive Summary: > > >> - The PTI feature increases the system call times by more than 100%. > > >> - As a macrobenchmark, buildworld was used. Wall clock and user time > > >> showed no statistically-significant changes, while system time > > >> increased by less than 5%. > > >> > > >> This email contains the results for benchmarking the performance of > the > > >> PTI patch on FreeBSD 12-current. As a microbenchmark, timing of > > >> getppid(2) system call was used, and as a macrobenchmark, a number of > > >> buildworld tasks were timed. > > >> > > > > > > Can you also run pre-patched kernel? > > > > It's not easy to do an apples-to-apples comparison as there were a few > > followup changes to the PTI work, interspersed with unrelated changes. > > That said, I think Arshan has some benchmarks obtained during the > > development of the PTI changes that may be illustrative. > > > > The best approach is probably to compare stable/11 at r329450 (last > > stable/11 revision before the merge) with r329462 with PTI and IBRS > > disabled. > > Stable/11 more interesting to me, nice to see. > >