Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp611508pxb; Thu, 23 Sep 2021 07:11:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwa0J1qtCbwv+lm5pXljRmUCa//gJU82N3CuEwqJN/8r8M/hdbbGxD3NrEkF1XxmJi+hXg8 X-Received: by 2002:a5d:9601:: with SMTP id w1mr4025634iol.209.1632406301122; Thu, 23 Sep 2021 07:11:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632406301; cv=none; d=google.com; s=arc-20160816; b=fhK2TKQhtjTG3Z/MejY07x3vROcSrRRSRltniRFsjFc+7doYgN3xTRS5xOA7x8oQk8 3IYciyTLyYn4oti77Oi82r6sUI6NKiS3pEQz0h4U0KDvwJdeS34cZIwj0pA/LtYlZ4Yu BHtuUTHDOXfmvaq8WStMwVaHYBpIbn47snc6ecZUGs3CE/GxJvb/iJQxhjydP9gETGUl Ch4efjJ+ZVxBTRCSmQ8U4gWJVHHRzvnCUAh8CSPpQcqRsWsj6AwB1tQ/0JV+iQBTR3fE bpFN8Fi2lp9kMXvuf5gYS1ZMuZRTKucaz2DpT686vVkcXFF4OqTqh5Es7Rnys+JlJZup mlkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dXLhZn1wFHua7Y6zmu0cukBlTLmytd0Y7EiHkyoZbvU=; b=Xq2LOn/VWygEejlgKqpOlZMJOp7UQlzSNdMYDZWsIGW3mp4c/2ppUFIKrbjTLRB2RO 7xClqSDxz5BMfuTj8XUlc8kWOXP6bP9HnD7wGbaGXtppDmy+sdn57H1An72oo3SX8RD/ 8Fkf2OMZWkik0C2dSaxeggabyFBKmbK+nqD1TiFPuEpcgBZ1VDT1euVwgZv1cZgViSKZ 5l2uJi6r2Hh0a6cZXPFyE1SdqDs/+o+qvB3yD7YqcAMUI5zRICT1oOjrf3ctQa7p8kUX EO3nvLRqPKUjNFrzHelmNjzZpKkeKYbhV8Z5/oZL9Bv0xpHk7AlIcbP4qPukqNFqs+fX wflA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RxK7Top7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si3540562ioe.31.2021.09.23.07.11.24; Thu, 23 Sep 2021 07:11:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RxK7Top7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241672AbhIWOLV (ORCPT + 99 others); Thu, 23 Sep 2021 10:11:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:35764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241603AbhIWOLU (ORCPT ); Thu, 23 Sep 2021 10:11:20 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 22F9360F44; Thu, 23 Sep 2021 14:09:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632406188; bh=ZTXZf30T3ZUc5R8VZRJeJBfdae5TPW0th0RClDFdmdM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RxK7Top7vHYOES/amPXJnFenVjo0z1GxYXGT3k/Pyxf3hwK+9RBPl2JQBMvA3rhgj ztdDDfIrLIkkNbZ4oLXX2AhB/qQ8rB/TQz4SMfzg5+od+heVr1b1aInMgefEGzDDjv xjSTc4pdVdE2p+fxWCl5UKcuHhuGEoZ0fIk4RucM= Date: Thu, 23 Sep 2021 16:09:46 +0200 From: Greg KH To: "Mehta, Sohil" Cc: "Hansen, Dave" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "Luck, Tony" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , "Lutomirski, Andy" , Jens Axboe , Christian Brauner , Peter Zijlstra , Shuah Khan , Arnd Bergmann , Jonathan Corbet , "Raj, Ashok" , Jacob Pan , "Kammela, Gayatri" , "Zeng, Guang" , "Williams, Dan J" , "Witt, Randy E" , "Shankar, Ravi V" , "Thomas, Ramesh" , "linux-api@vger.kernel.org" , "linux-arch@vger.kernel.org" , "linux-kselftest@vger.kernel.org" Subject: Re: [RFC PATCH 00/13] x86 User Interrupts support Message-ID: References: <20210913200132.3396598-1-sohil.mehta@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 23, 2021 at 02:19:05PM +0200, Greg KH wrote: > On Tue, Sep 14, 2021 at 07:03:36PM +0000, Mehta, Sohil wrote: > > Resending.. There were some email delivery issues. > > > > On 9/13/2021 1:27 PM, Dave Hansen wrote: > > > User Interrupts directly deliver events to user space and are > > > 10x faster than the closest alternative. > > > > Thanks Dave. This is definitely more attention-grabbing than the > > previous intro. I'll include this next time. > > > > One thing to note, the 10x gain is only applicable for User IPIs. > > For other source of User Interrupts (like kernel-to-user > > notifications and other external sources), we don't have the data > > yet. > > > > I realized the User IPI data in the cover also needs some > > clarification. The 10x gain is only seen when the receiver is > > spinning in User space - waiting for interrupts. > > > > If the receiver were to block (wait) in the kernel, the performance > > would drop as expected. However, User IPI (blocked) would still be > > 10% faster than Eventfd and 40% faster than signals. > > > > Here is the updated table: > > +---------------------+-------------------------+ > > | IPC type | Relative Latency | > > | |(normalized to User IPI) | > > +---------------------+-------------------------+ > > | User IPI | 1.0 | > > | User IPI (blocked) | 8.9 | > > | Signal | 14.8 | > > | Eventfd | 9.7 | > > | Pipe | 16.3 | > > | Domain | 17.3 | > > +---------------------+-------------------------+ > > Relative is just that, "relative". If the real values are extremely > tiny, then relative is just "this goes a tiny tiny bit faster than what > you have today in eventfd", right? > > So how about "absolute"? What are we talking here? > > And this is really only for the "one userspace task waking up another > userspace task" policies. What real workload can actually use this? Also, you forgot to list Binder in the above IPC type. And you forgot to mention that this is tied to one specific CPU type only. Are syscalls allowed to be created that would only work on obscure cpus like this one? thanks, greg k-h