Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp565220imn; Thu, 28 Jul 2022 09:03:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNtl2X2skiY9k+tKiQ6UbIgbYg4A0FHA2sor8iqDS09Pa/KNIv84CtqUBckA2iQWvH/h6y X-Received: by 2002:a17:906:29d:b0:6f0:18d8:7be0 with SMTP id 29-20020a170906029d00b006f018d87be0mr20515455ejf.561.1659024212748; Thu, 28 Jul 2022 09:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659024212; cv=none; d=google.com; s=arc-20160816; b=zj5IX/Fs9gkszDOONo/7eKcYk1r7gtX0LN+rW1p9Loe45iZB81Wm6id+MoMOcjaMbU U/v90HDsTvpsbQ47t3iB+zyI68rZhfGy7HRj7QNoBd9opMfgKUUy0PqFApI4QBcJmrTr RFZMc0rqU8/O8PvHdr02nAW0nRk+EBgCr8HdTWXnTCn4qZ33HqOLtLpwCj9bIRtHKWIV EKHoyINNHARVCHiWDHIt7CKSxfQHaLNiJ6DGoABfVTlJfGP8yPNcanaqOfvOOUsl71hZ ab9PhrMdxl1LVbzLDwvPOWdU3XQq0D+W4MSUCCKOGnAmMsrjiF91QMl/zfkK6sYpmIwr VFsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=x2lk2hqDKcE3DDLOhqbpwiGyywL02+HBUzoqQOKIEfY=; b=jr0l+2L98cvU/rdYmmEFoAGyzyWl+N7ssT09m/Gc3+CsmK2rIYi/earpZ7ye+1qeIr 1JFmAIinkiEDP0FQ63nLsxTTdQ2RXkCjonANd2Z4i8vWOMI7OSXIh0+XlrFy/woJdQpK Tm55/jV+r87cjRMykBX+TkcA4cFxl5n0M7hwnZnrdnq4kD5vuLIn7pGII+ZyPlw4+QaS vOs3Afj1qKIEdCDP7sVui7FtqPGB9XCraZYCkLJNpvXx8UkvLYhFCpOp3hArqBFCLntv 9yZms2lgvKvsan/mMd1THJ7QGzKYjydp/cy42Fua/JdvoqihYvVla93kT5cHMSHCL1Eq f7Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=iCb5vOn5; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a17090607d600b0072b0f4f4b36si892948ejc.611.2022.07.28.09.03.04; Thu, 28 Jul 2022 09:03:32 -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=@redhat.com header.s=mimecast20190719 header.b=iCb5vOn5; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230134AbiG1Pfh (ORCPT + 99 others); Thu, 28 Jul 2022 11:35:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiG1Pff (ORCPT ); Thu, 28 Jul 2022 11:35:35 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 70D2B20F66 for ; Thu, 28 Jul 2022 08:35:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659022533; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x2lk2hqDKcE3DDLOhqbpwiGyywL02+HBUzoqQOKIEfY=; b=iCb5vOn5wMdFQEJyCuwcxsij+ENGJzjsShHIrtCq51UbVEWpUvb/+PXU2CvyME+GjjnSse Mc/bGkzZSWo8iYbuNUl4+V0mhZpH3/3klJlwe9DaDIUGVtc9LyxAv++dSoqlIwyUFT4/jS h+0GeorFyY017SFid/rwWmdO7s99eLU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-557-PA64DZPlMt2YhMyv00gn8g-1; Thu, 28 Jul 2022 11:35:28 -0400 X-MC-Unique: PA64DZPlMt2YhMyv00gn8g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1473E8037B5; Thu, 28 Jul 2022 15:35:28 +0000 (UTC) Received: from [10.22.9.86] (unknown [10.22.9.86]) by smtp.corp.redhat.com (Postfix) with ESMTP id 91DDB2166B26; Thu, 28 Jul 2022 15:35:26 +0000 (UTC) Message-ID: Date: Thu, 28 Jul 2022 11:35:26 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 1/2] cgroup/cpuset: Keep current cpus list if cpus affinity was explicitly set Content-Language: en-US To: =?UTF-8?Q?Michal_Koutn=c3=bd?= 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 References: <20220728005815.1715522-1-longman@redhat.com> <20220728144420.GA27407@blackbody.suse.cz> <20220728152355.GB25894@blackbody.suse.cz> From: Waiman Long In-Reply-To: <20220728152355.GB25894@blackbody.suse.cz> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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 7/28/22 11:23, Michal Koutný wrote: > 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.) I should have clarified that what I meant is systemd on a cgroup v1 environment doesn't cause this cpu list reset to happen. It doesn't mean that cgroup v1 has no similar problem. Sorry for the confusion. Cheers, Longman