Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1071441ybf; Fri, 28 Feb 2020 13:26:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwCmNIO+dS8E561FfhUUnt818lKJAmyFQCMImZNJBEraIjwpi6a7koFY/DCJuSLPBwVfwnO X-Received: by 2002:a05:6830:1257:: with SMTP id s23mr4894139otp.241.1582925171225; Fri, 28 Feb 2020 13:26:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582925171; cv=none; d=google.com; s=arc-20160816; b=e0/3PG6Kj17pRhCz7rTEDUmsCs2JMyCaXBSyOdyLi5It2swX9tBOHzek1+qaBrW0Ey XCfQKREiM2AfHUiUQxI8HWTHwWcM5ss9LwL4Q7S/q5y0uuj6FVkj0TAlpRAq1UxxcEoC wg1S2dihzLr0XuuHC60/WJDSVFJkiUZlUFROKhpEWcg0E+f/72Qjyj5o+0EvoQXB5jZ1 zcMXTLWwXLgsNeQ/W2LAeVuq/N5w+obq9vP0yULs24sJxy0XZa0SC15BXCftlDGLg/U4 LRqdGte0ESxztVbrq1Sebn2aSLy+iBNsbF+JGAYs+QajA1fKa7VdzHcMLlOrEfMdaakV RQgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=4kzH4yfmou3epOPGuFeD35MINrIU9oNqL2hUUNuyXsA=; b=okHkKqWSqJhk2hiEXzDgLcHxEdk2dY0Z1hX8e0CKwhOdbl5FLOnNXldPZnza9FbUEa QMoXbQMQetUdPSjgIYlQFp9izLDetezWLVRbfNGo2gRRL9AZSvMIsHEy3l/6CNXRlNTi A2y3Mk7gpEGAIjs6KIKyqf9dTiAEpmr+ecoCHDeA6b8KxA6m7Fd2fgncwnb6gZaMUeQw luv3dGqWuh1S6wl9SoDbtU/YxPcpsDOdKgzdGX4zIFw3Cx74KZc7aymKfX/qOSw9f1b2 snqP3TxQcrSfmeW5oJ8fBfPdV5l+S8PUIb1eL6x1p91C3x8VQNUzpyQHVl+11UQktymC odiA== 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 h17si2498956oib.234.2020.02.28.13.25.58; Fri, 28 Feb 2020 13:26:11 -0800 (PST) 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 S1726991AbgB1VZd (ORCPT + 99 others); Fri, 28 Feb 2020 16:25:33 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:38225 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgB1VZc (ORCPT ); Fri, 28 Feb 2020 16:25:32 -0500 Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] 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 1j7n86-0006fe-Ci; Fri, 28 Feb 2020 22:25:06 +0100 Received: by nanos.tec.linutronix.de (Postfix, from userid 1000) id 77AB0100EA1; Fri, 28 Feb 2020 22:25:05 +0100 (CET) From: Thomas Gleixner To: Peter Zijlstra , =?utf-8?Q?Andr=C3=A9?= Almeida Cc: linux-kernel@vger.kernel.org, kernel@collabora.com, krisman@collabora.com, shuah@kernel.org, linux-kselftest@vger.kernel.org, rostedt@goodmis.org, ryao@gentoo.org, dvhart@infradead.org, mingo@redhat.com, z.figura12@gmail.com, steven@valvesoftware.com, pgriffais@valvesoftware.com, steven@liquorix.net, malteskarupke@web.de Subject: Re: [PATCH v3 1/4] futex: Implement mechanism to wait on any of several futexes In-Reply-To: <20200228194958.GO14946@hirez.programming.kicks-ass.net> References: <20200213214525.183689-1-andrealmeid@collabora.com> <20200213214525.183689-2-andrealmeid@collabora.com> <20200228190717.GM18400@hirez.programming.kicks-ass.net> <20200228194958.GO14946@hirez.programming.kicks-ass.net> Date: Fri, 28 Feb 2020 22:25:05 +0100 Message-ID: <87tv3aflqm.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Peter Zijlstra writes: > On Fri, Feb 28, 2020 at 08:07:17PM +0100, Peter Zijlstra wrote: >> So I have a problem with this vector layout, it doesn't allow for >> per-futex flags, and esp. with that multi-size futex support that >> becomes important, but also with the already extand private/shared and >> wait_bitset flags this means you cannot have a vector with mixed wait >> types. > > Alternatively, we throw the entire single-syscall futex interface under > the bus and design a bunch of new syscalls that are natively vectored or > something. > > Thomas mentioned something like that, the problem is, ofcourse, that we > then want to fix a whole bunch of historical ills, and the probmem > becomes much bigger. We keep piling features on top of an interface and mechanism which is fragile as hell and horrible to maintain. Adding vectoring, multi size and whatever is not making it any better. There is also the long standing issue with NUMA, which we can't address with the current pile at all. So I'm really advocating that all involved parties sit down ASAP and hash out a new and less convoluted mechanism where all the magic new features can be addressed in a sane way so that the 'F' in Futex really only means Fast and not some other word starting with 'F'. Thanks, tglx