Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp553615imn; Thu, 28 Jul 2022 08:43:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDT5XuGRajRZ/o4NlldYNGrxMHKmnxkLup2q53RrONG2VtHtkZeQDEINXGGLsiKnIueDPD X-Received: by 2002:a05:6402:5c9:b0:420:aac6:257b with SMTP id n9-20020a05640205c900b00420aac6257bmr28279273edx.128.1659022990620; Thu, 28 Jul 2022 08:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659022990; cv=none; d=google.com; s=arc-20160816; b=QBS+jlP540uElHxTpGWcAwrPawhi/bT4EEfzwqrJLnbepyHk3R+xbF/l8siKOiG/wj bM5GW8P9/UCxeHia5jtRt6azvMAD04/wuHtPSm0HNmff6TVYs5z30cXqihjBgMLLO2Q3 1cg0pyxWx3IjoGDzzHm9VXbrSpArorLfhFMWE0NIFLuMwHzjKXSTB5aamIz8RPs+U9LS 03LQMNhibG0jNFpUeXgO614B+IHQHPj6xnfA0t2xj8Ukf4WVtQ8lR2NyTQlUWLaM/dHm 8Flemdptt293WoHaNmRXkojm5WP9NfSch68ccf3EmWNVHjZ4frW69X4cyo+exXkw5df3 bzZg== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=SRF9MyYDxSMz1004MAxo6xxMYmTRoIn6prKJRfvdun8=; b=wvnf6hwdMoJCD+RxiEwViKop4c+skFGScjpGo/pID+5nh/SqMH9uMvYVj7WoTE9SOY LJv893IUkLQYmUnRxukmh9HQXelevdWX2zs8ZvD8dQ69KeUMjpK8QZ62eLA1WHm7ilZ6 T7lXtd3Oj87/VaM8V7xB3FY77+LuvWS6MSW4r9fMShvaWGGAa/Aq1mjgCuMNV3Ypg1Gl BZU4kEQaGc8ZGj6+d5IueV5LcezQJZKqg9v6BDDmOkibqvFNAQ8DHealGUQV1EH+EoP9 zN0BHAzLKcUVgOURhhiKbW0FvHcOPvQuJSr5d01/1NZN4PzooKqeuL+ZsmwpgkO+idWx 9A5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Q1KNd85c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o23-20020aa7d3d7000000b0043bb806f5c2si894727edr.134.2022.07.28.08.42.45; Thu, 28 Jul 2022 08:43:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=Q1KNd85c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229806AbiG1PYG (ORCPT + 99 others); Thu, 28 Jul 2022 11:24:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbiG1PX7 (ORCPT ); Thu, 28 Jul 2022 11:23:59 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FADB664C7; Thu, 28 Jul 2022 08:23:58 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 7878A33F11; Thu, 28 Jul 2022 15:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1659021837; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SRF9MyYDxSMz1004MAxo6xxMYmTRoIn6prKJRfvdun8=; b=Q1KNd85cVzSSFmi42M5onWHVuxuR4JxQDTShGHvzT1UF7YE5YJzw5A621cajhDejtlunGg cF3/xOafEk+snEKjU50p1two9rp8NCu6vZNHWEk4ViJjp6+mM/vvZjVfLrpXYqEsSJgAXV 9/tOOOmYkta+W2r/j5AnczQdehm85hc= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2D69913427; Thu, 28 Jul 2022 15:23:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id ek4rCg2q4mLJdwAAMHmgww (envelope-from ); Thu, 28 Jul 2022 15:23:57 +0000 Date: Thu, 28 Jul 2022 17:23:55 +0200 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Waiman Long Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Tejun Heo , Zefan Li , Johannes Weiner , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] cgroup/cpuset: Keep current cpus list if cpus affinity was explicitly set Message-ID: <20220728152355.GB25894@blackbody.suse.cz> References: <20220728005815.1715522-1-longman@redhat.com> <20220728144420.GA27407@blackbody.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 28, 2022 at 10:59:01AM -0400, Waiman Long wrote: > Cgroup v1 doesn't have this problem. v1 analogy would be: echo 2-3 >$dst/cpuset.cpus # job runs in $dst # one task T in $dst sets affinity just to one cpu # I rethink my config, I want to allow $dst more space echo 2-5 >$dst/cpuset.cpus Most tasks in $dst happily utilize the new cpus but it breaks affinity for T -- this must have been broken since ever. (Or I'd argue that per-thread affinities are just recommendations, if I have a task for nohz CPU, I should enforce its placement with cpuset from the beginning.) Michal