From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754699AbcBXBhz (ORCPT ); Tue, 23 Feb 2016 20:37:55 -0500 Received: from terminus.zytor.com ([198.137.202.10]:53580 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754058AbcBXBhy (ORCPT ); Tue, 23 Feb 2016 20:37:54 -0500 Subject: Re: [PATCH v4 0/5] getcpu_cache system call for 4.6 To: Mathieu Desnoyers , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar References: <1456270120-7560-1-git-send-email-mathieu.desnoyers@efficios.com> Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Paul Turner , Andrew Hunter , Peter Zijlstra , Andy Lutomirski , Andi Kleen , Dave Watson , Chris Lameter , Ben Maurer , Steven Rostedt , "Paul E. McKenney" , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk From: "H. Peter Anvin" Message-ID: <56CD091A.4060009@zytor.com> Date: Tue, 23 Feb 2016 17:36:26 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <1456270120-7560-1-git-send-email-mathieu.desnoyers@efficios.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2016 03:28 PM, Mathieu Desnoyers wrote: > Hi, > > Here is a patchset implementing a cache for the CPU number of the > currently running thread in user-space. > > Benchmarks comparing this approach to a getcpu based on system call on > ARM show a 44x speedup. They show a 14x speedup on x86-64 compared to > executing lsl from a vDSO through glibc. > > I'm added a man page in the changelog of patch 1/3, which shows an > example usage of this new system call. > > This series is based on v4.5-rc5, submitted for Linux 4.6. > > Feedback is welcome, > What is the resulting context switch overhead? -hpa