Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2124999ybi; Thu, 20 Jun 2019 09:28:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxd68b1MWdXUrz0loV+1bqDPtM3OHUJ8d6WEBnwg6WWU8aXkjlTP9eGfZxT/48GxwMpPwMy X-Received: by 2002:a17:902:1003:: with SMTP id b3mr127471399pla.172.1561048099908; Thu, 20 Jun 2019 09:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561048099; cv=none; d=google.com; s=arc-20160816; b=mfzEvnsWOWjrsmHMS407Ixuu1XiLc7UryRRJnqAjjM9HfQCARNXUTMinuCig6wz31y 1+01FZ0yLEnc4Wr5zOX2wNfjKVo5/a4XjrQmc58JUMDr6XqYHpC1ynJ8+MBpDE+AG/J9 WAXmUsNeAyar4E39pzYRDRJz11Y96R9GaB499Zl73QMF1gduGMvJ7XUl3HLxmSoctoso 0tATbW/jJQTW0ECfdWdvk41UFFIKD3Fr7/KfKSeWVBpMgYLP7RVgSJbLdyGKPC83HeR6 /8IDSaAzrUC2HLu3v/pBN0FeCP3z7n7b30/JH9QJ6x7fezSFcLQZiqBRNOk7YnJBsHRl 1T9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=84uZY5UuLs03vDIH81teBAR0G2/P6A89Y+aD2GnrRjc=; b=jGwl+Ip/zWDRtlz4axRErmWFleiOYYVWh+CVGj5U0y6+4fmWRtqBIRFJVt6/NTh1zi oRmyxWN/MdIIFJ29s/2MR3A8CkwjKrXHDhQY3hKTxBWXe2Riy4cUbkMC3wFhJgoY2f+G gCwGeZhDTZFs1wVy8NpeXnN4GRfxzdeFFC3/nGsrW2WIEo6L+2+ILJxmnBtedGP/B8Pt 6oDGBz/q/dn3o9ycp8z4thK4mS7wqTuYYL5Kb2+FC3ciOzjEck9l6NpAuFRLyvg7H6// Dkfyi0tyl0BQKc3zsQfWqPSeC6TWuykux2hL4dRV59nunIPMdUVTit7mJ7DgJ/sTciST dp0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si182880plb.8.2019.06.20.09.28.03; Thu, 20 Jun 2019 09:28:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732191AbfFTQ15 (ORCPT + 99 others); Thu, 20 Jun 2019 12:27:57 -0400 Received: from foss.arm.com ([217.140.110.172]:47646 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726675AbfFTQ15 (ORCPT ); Thu, 20 Jun 2019 12:27:57 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 497012B; Thu, 20 Jun 2019 09:27:56 -0700 (PDT) Received: from donnerap.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E69803F246; Thu, 20 Jun 2019 09:27:53 -0700 (PDT) Date: Thu, 20 Jun 2019 17:27:46 +0100 From: Andre Przywara To: Vincenzo Frascino Cc: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan , Arnd Bergmann , Huw Davies , Catalin Marinas , Daniel Lezcano , Will Deacon , Russell King , Ralf Baechle , Mark Salyzyn , Paul Burton , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Thomas Gleixner , Peter Collingbourne Subject: Re: [PATCH v6 00/19] Unify vDSOs across more architectures Message-ID: <20190620172746.7f92cb14@donnerap.cambridge.arm.com> In-Reply-To: <20190530141531.43462-1-vincenzo.frascino@arm.com> References: <20190530141531.43462-1-vincenzo.frascino@arm.com> Organization: ARM X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; aarch64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 May 2019 15:15:12 +0100 Vincenzo Frascino wrote: Hi, > vDSO (virtual dynamic shared object) is a mechanism that the Linux > kernel provides as an alternative to system calls to reduce where > possible the costs in terms of cycles. > [ ... ] > The porting has been benchmarked and the performance results are > provided as part of this cover letter. I can't reveal the absolute numbers here, but vdsotest-bench gives me quite some performance gain on my board here ("time needed on v6" divided by "time needed on 5.2-rc1", so smaller percentages are better): clock-gettime-monotonic: 23 % clock-gettime-monotonic-raw: 30 % clock-gettime-tai: 5 % clock-getres-tai: 5 % clock-gettime-boottime: 5 % clock-getres-boottime: 5 % clock-gettime-realtime: 25 % gettimeofday: 26 % The other numbers stayed the same or differed by just 1 ns, which seems to be within the margin of error, as repeated runs on the same kernel suggest. The 5% numbers are of course those were we went from a syscall-only to the newly added arm64 VDSO implementation, but even the other calls improved by a factor of 3 or more. Sounds like a strong indicator that this is a good thing to have. Not sure if "running some benchmark a couple of times on a single machine" qualifies for this, but I guess it means: Tested-by: Andre Przywara Cheers, Andre.