Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp896320ybi; Fri, 14 Jun 2019 05:17:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsS993OoKNNjTguNF0h73wOrPWTQ2r8t26Zjx21zFV2Ynd7bBNa5S3vBafvKxg9XD0Q5YI X-Received: by 2002:a17:902:8609:: with SMTP id f9mr86504061plo.252.1560514628340; Fri, 14 Jun 2019 05:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560514628; cv=none; d=google.com; s=arc-20160816; b=pc7pCacUyXYv6sShP5p9u4AguzNo1XjpTXhpe9LD0LmPzNh6PRP0gVikYiEyDR+MFd EtgNDeEqq9imH+beDVUeyw8J9ZJsboIbtu+WQwtIHkBomTnUsEo1xkS2YeRm0vgJo5LX xQU27hZjYGu2khc3T7dHma2yo5yLiqZ555RZeriaDb9EoQlk5zJZ+4RnsM4qN0xp7xZl 4Dju18enHtzVK2RxcbXfdWp03VXffWUUUf+fZ/egU8c8AuSULoXj5+PWn7rO9KWE1XCj 8L1sCpAD4m1o03fFrUjtKZ8mdH95Zg6MdANL5opG8X1IjjRpS/QoJfepTa5ovIkdwfab 7bSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=B811PLVy1xxJbrX0+NQjFR7Qhz5sMRMrD0sROKnadN4=; b=cs+8AH3FsCg1eta/upEE2tlG7C+cz2oLA55xagQpsiCMYMhFjKPKWgC+diWJQ81+wi wScpo1z/LyG3WMcvR4BgdbpSQjnOgj8/lgXowejdXizdrW46oldQrK8ybIg66whNMZrH 0S4F1n/30qElz5Q4Vd9kHBLU5XE4XkqmOcNxOmnv3ib/Rp1RXwDccjJwDZ9pq0ISARQr rVP1qpw9Pf5J8p1anR5JW1zrXjlZmRlXXhYokVRFftmunAlxu0GWeB9K0dlTb5jRRYmI 9sE75Ls9IddKk37DhcbNfAxXoewc7kD+jJR3BXt/ldlTYwFWky4KdpBpZKezQjqC7h08 Nkgw== 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 p3si2181278plo.185.2019.06.14.05.16.52; Fri, 14 Jun 2019 05:17:08 -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 S1727721AbfFNMQF (ORCPT + 99 others); Fri, 14 Jun 2019 08:16:05 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:37706 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727573AbfFNMQF (ORCPT ); Fri, 14 Jun 2019 08:16:05 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hbl7g-0002bC-Mi; Fri, 14 Jun 2019 14:16:00 +0200 Date: Fri, 14 Jun 2019 14:16:00 +0200 (CEST) From: Thomas Gleixner To: Vincenzo Frascino cc: Arnd Bergmann , linux-arch , Linux ARM , Linux Kernel Mailing List , linux-mips@vger.kernel.org, "open list:KERNEL SELFTEST FRAMEWORK" , Catalin Marinas , Will Deacon , Russell King , Ralf Baechle , Paul Burton , Daniel Lezcano , Mark Salyzyn , Peter Collingbourne , Shuah Khan , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , Huw Davies Subject: Re: [PATCH v6 00/19] Unify vDSOs across more architectures In-Reply-To: Message-ID: References: <20190530141531.43462-1-vincenzo.frascino@arm.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 4 Jun 2019, Vincenzo Frascino wrote: > On 31/05/2019 09:46, Arnd Bergmann wrote: > > One open question I touched in my review is whether we want to > > have a vdso version of clock_getres() in all architectures or not. > > I'd prefer to leave it out because there is very little advantage to > > it over the system call (the results don't change at runtime and > > can easily be cached by libc if performance ever matters), and > > it takes up a small amount of memory for the implementation. > > > > I thought about it and I ended up with what proposed in this patchset mainly for > symmetry across all the architectures since in the end they use the same common > code. > > It seems also that there is some performance impact (i.e.): > > clock-getres-monotonic: libc(system call): 296 nsec/call > clock-getres-monotonic: libc(vdso): 5 nsec/call clock_getres() is usually not a hot path operation. > I agree with you though when you say that caching it in the libc is a > possibility to overcome the performance impact. > > > We shouldn't just need it for consistency because all callers > > would require implementing a fallback to the system call > > anyway, to deal with old kernels. libc has the fallback already. Let's aim for 1:1 replacement of the architecture code first and then add the extra bits in separate patches. Thanks, tglx