Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp355932pxu; Thu, 7 Jan 2021 06:50:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfdWL6kL5y0TqtxJ3RnsP3TRARgQBvLSyh6MV7Vq9tAUQqVeXNt4E5+bjw1b9fCFAsIWfO X-Received: by 2002:a05:6402:139a:: with SMTP id b26mr1925022edv.47.1610031005867; Thu, 07 Jan 2021 06:50:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610031005; cv=none; d=google.com; s=arc-20160816; b=LuhlGGWyu/GCrutSem/L3wlavHSwjtfT1ag9Y2zjCkWyQZ0jNtDOsloU48jFV6vMMt aKzg8xGyd5I5G8yAeqToQrWUloNSs5JzXJhikJOq39SpTuYQGSLBqWMWKw+fur+yJE1p OKCb1IVlz9ZmMp7Ew46LJUGu0D1SKya+U4iNCqog7+H+U4cp4kosMvC4sGxRKe5Aj5gr zRn/l+yTemkyMXt1IUDPdrnp2OsnoOd/4usfOka4NKfQ0yXceH/RkLgr+2PKLMKYoSys zsdvxSr3B4jbaHPrjyziLpWEIH8g7t9HTHis9oMTh4fIU11ISvZz48q1RRNsNwc4riEy bikw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=TNn9sklfbiADO3pynsJqKkCyXDfVwOuVoQComoSFnWc=; b=k2KE+ZHPChE0A+uEr78+eE4S8hQ8uYha8r/oyqpPLxWVE/X9KgAVgLyr30W/zNPVCj K1i8+GdP7M3x8Kp9M5CgEix+CBf7Tx4yGmMKlaTrX+uz9agYq4K1LfdEMoeTHOCmhvwL p5v6tSO2aiDEXV/aoKuxyOcqbsOvzY0Hj+CupQ2E0sd06iNCHe44p8p/walv1e+6u+Lz yC/9Y0b2EatCxCv1RMbSlORCgsQFkCMyxDLcD8uikaKWBr3t1gWSFHycq60oNGgceu6B Ee7tyj9RIBqcyBvjlwgN+ptMXff+dSW+jK8bj4YnQToTdS26s2O7tneuBEDPSKIFXiO5 Cu1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hYoXaKVN; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si2357078ejd.409.2021.01.07.06.49.41; Thu, 07 Jan 2021 06:50:05 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=hYoXaKVN; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728478AbhAGOsi (ORCPT + 99 others); Thu, 7 Jan 2021 09:48:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:52996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726338AbhAGOsi (ORCPT ); Thu, 7 Jan 2021 09:48:38 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 89D582158C; Thu, 7 Jan 2021 14:47:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610030877; bh=4GprV8duZGligEHdUJ/5ZiVI5TS+T71Sh11ApVa10bM=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=hYoXaKVNfEkh4E96OUbh01X3rHviFBRGiF6JXy7d0xRpgTxFmrWmV+voaZMKsRD2B H/AqwHOOfzqjHblQuh2Kr1oZ3Jwp5jo03G1vbVP8+G1pyH5W8zcalFbW0ReLtOhFEy UxgVyokCadaSqaRUKaUi7exs5uT4MUMLZFh0zr1QpfGl0ZmD8qROuChFnrU4qNyhPn Ui4ZMleZRxh9gEAeSxc7SernbYnuKQn20c3iBkP2+NjawQRo6qLLW830P0Hw5eJwJa 8CeEOAxd1rThCOoi4c7fQKGoYNCWWmxi/7TmMh8svAS+KExJ9GWH5Hykt75aulSHpT e4TIlw/cS2vHQ== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 4C51B3522584; Thu, 7 Jan 2021 06:47:57 -0800 (PST) Date: Thu, 7 Jan 2021 06:47:57 -0800 From: "Paul E. McKenney" To: Peter Zijlstra Cc: Yury Norov , Linux Kernel Mailing List , kernel-team@fb.com, Paul Gortmaker Subject: Re: [PATCH RFC cpumask 4/5] cpumask: Add "last" alias for cpu list specifications Message-ID: <20210107144757.GK2743@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20210106004850.GA11682@paulmck-ThinkPad-P72> <20210106004956.11961-4-paulmck@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 07, 2021 at 03:18:47PM +0100, Peter Zijlstra wrote: > On Wed, Jan 06, 2021 at 01:16:50PM -0800, Yury Norov wrote: > > On Wed, Jan 6, 2021 at 1:50 AM Peter Zijlstra wrote: > > > > Aside from the comments Yury made, on how all this is better in > > > bitmap_parselist(), how about doing s/last/N/ here? For me something > > > like: "4-N" reads much saner than "4-last". > > > > > > Also, it might make sense to teach all this about core/node topology, > > > but that's going to be messy. Imagine something like "Core1-CoreN" or > > > "Nore1-NodeN" to mean the mask all/{Core,Node}0. > > > > If you just want to teach bitmap_parselist() to "s/Core0/0-4", I think > > it's doable if we add a hook to a proper subsystem in bitmap_parselist(). > > > > > And that is another feature that seems to be missing from parselist, > > > all/except. > > > > We already support groups in a range. I think it partially covers the > > proposed all/except. > > > > Can you share examples on what you miss? > > The obvious one is the "all/Core0" example above, which would be > equivalent to "Core1-CoreN". > > Another case that I don't think we can do today is something like, give > me SMT0 of each core. > > I don't really see the use of the ranges thing, CPU enumeration just > isn't sane like that. Also, I should really add that randomization pass > to the CPU enumeration :-) Please don't!!! Thanx, Paul