Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1051172rdg; Fri, 13 Oct 2023 08:50:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH54oonUJX0U/Oo51atQgDubvF8be5DMnSZ633sQAVysFX+CX7e3QAyvG9D1bLzuhHIuiAi X-Received: by 2002:a05:6a20:ce9d:b0:14c:c9f6:d657 with SMTP id if29-20020a056a20ce9d00b0014cc9f6d657mr24292622pzb.22.1697212247251; Fri, 13 Oct 2023 08:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697212247; cv=none; d=google.com; s=arc-20160816; b=oWbndHpxiB0eQIUnPkimcuYrlwmezjoaRogFeUMU/kC7nQel9R/n0g1cwYiweJxQIW ynJFzKbZzkMY02ggq4bWL7vRRRIouOKawgo677+3f+lzE6s26Lu6IprzdAQoR2dxDbxV PkovutK5g5tDLySIWqg+lMtzMX81SHy3JGVkptdxt9BleZgHmUxJ78tb8lvfzgTo4PQY 4Hj/Ja4Ia/BbCApPvYYxYZGmu1pLHX+tazylBh5iAgv3eRdTElu68Sah7nNJ3hElFS0e 6ItJBfZwluW2i0Nmncta5ip0nI8V7oi5A0lkk+IcR5/hUPpAc2/XtyA/VRek2UM0d1eq LSvg== 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=z7RHgYxxzJ/pOaovwvv6HlOwhHh2FXPWvC+R+XRmWbc=; fh=dAGaHPokgghRjbRM0yT5hu6FSLPtG4jzfhyLLWfY+Mk=; b=nCNRKkLF/fkykLyk35JBcwokHTxqA1OHsg1I0AZStBuCIHnYUq016wtwwYSF9AVDrq NWoTwCmU2nORFhnHPICxGk/weOIbCLGO4f5HKR/wOou9FxZFnVAdIXYBq3N/ClAjbPMa bdOfnjM+E/WsPwUITUAJg6VOPaxiGjft0gjy7d7jOz98P8LsOtBp3pJECudO0GdNsGgG lv6o1Tj8hWlcsY28xsDBq4zTN6aEjru+XIbR1gy8aiHdZn6/t4K2heRRIBYwgxN4YjaD vkgYB8PFAmDYKzsJYYfiW5Hh+KiGjUY1VKcKiAzv9R1b5qUTFwp8UOsJIOpU5dnmwqLJ ITuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=rdx60rFe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id mq10-20020a17090b380a00b00267ba1c43adsi371793pjb.101.2023.10.13.08.50.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 08:50:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=rdx60rFe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CFC0582B2E90; Fri, 13 Oct 2023 08:50:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232452AbjJMPu1 (ORCPT + 99 others); Fri, 13 Oct 2023 11:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232041AbjJMPu0 (ORCPT ); Fri, 13 Oct 2023 11:50:26 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5FF4BB; Fri, 13 Oct 2023 08:50:23 -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-out2.suse.de (Postfix) with ESMTPS id 3DD141FDA3; Fri, 13 Oct 2023 15:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1697212222; 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=z7RHgYxxzJ/pOaovwvv6HlOwhHh2FXPWvC+R+XRmWbc=; b=rdx60rFehK2i6+arc2yuiZqIq756SIqcqRE5cIrCX+EWupt5oxfx2pNoElAE/FjEWbUFcK CF4xNdSKbYbUsSdq56KIy8rGrsflEgwHE3c5aZvzNfl6jcNpND9eFAUJ470HmKmXGPUzBF OKwmcXz+bdiR/zPShFexlDrS5E1zIMc= 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 06C37138EF; Fri, 13 Oct 2023 15:50:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id hhfdAD5nKWXKWAAAMHmgww (envelope-from ); Fri, 13 Oct 2023 15:50:22 +0000 Date: Fri, 13 Oct 2023 17:50:20 +0200 From: Michal =?utf-8?Q?Koutn=C3=BD?= To: Waiman Long Cc: Tejun Heo , Zefan Li , Johannes Weiner , Christian Brauner , Jonathan Corbet , Shuah Khan , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Juri Lelli , Dietmar Eggemann , Giuseppe Scrivano Subject: Re: [PATCH v8 0/7] cgroup/cpuset: Support remote partitions Message-ID: References: <20230905133243.91107-1-longman@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tesk6d4tqdsww4u2" Content-Disposition: inline In-Reply-To: <20230905133243.91107-1-longman@redhat.com> Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -5.70 X-Spamd-Result: default: False [-5.70 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-3.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCPT_COUNT_TWELVE(0.00)[12]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 13 Oct 2023 08:50:43 -0700 (PDT) --tesk6d4tqdsww4u2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello. (I know this is heading for 6.7. Still I wanted to have a look at this after it stabilized somehow to understand the new concept better but I still have some questions below.) On Tue, Sep 05, 2023 at 09:32:36AM -0400, Waiman Long = wrote: > Both scheduling and isolated partitions can be formed as a remote > partition. A local partition can be created under a remote partition. > A remote partition, however, cannot be formed under a local partition > for now. >=20 >=20 > With this patch series, we allow the creation of remote partition > far from the root. The container management tool can manage the > "cpuset.cpus.exclusive" file without impacting the other cpuset > files that are managed by other middlewares. Of course, invalid > "cpuset.cpus.exclusive" values will be rejected. I take the example with a nested cgroup `cont` to which I want to dedicate two CPUs (0 and 1). IIUC, I can do this both with a chain of local root partitions or as a single remote partion. [chain] root | \ mid1a mid1b cpuset.cpus=3D0-1 cpuset.cpus=3D2-15 cpuset.cpus.partition=3Droot =20 | mid2 cpuset.cpus=3D0-1 cpuset.cpus.partition=3Droot | cont cpuset.cpus=3D0-1 cpuset.cpus.partition=3Droot [remote] root | \ mid1a mid1b cpuset.cpus.exclusive=3D0-1 cpuset.cpus=3D2-15 | mid2 cpuset.cpus.exclusive=3D0-1 | cont cpuset.cpus.exclusive=3D0-1 cpuset.cpus.partition=3Droot In the former case I must configure cpuset.cpus and cpuset.cpus.partition along the whole path and in the second case cpuset.cpus.exclusive still along the whole path and root at the bottom only. What is the difference between the two configs above? (Or can you please give an example where the remote partitions are better illustrated?) > Modern container orchestration tools like Kubernetes use the cgroup > hierarchy to manage different containers. And it is relying on other > middleware like systemd to help managing it. If a container needs to > use isolated CPUs, it is hard to get those with the local partitions > as it will require the administrative parent cgroup to be a partition > root too which tool like systemd may not be ready to manage. Such tools ready aren't ready to manage cpuset.cpus.exclusive, are they? IOW tools need to distinguish exclusive and "shared" CPUs which is equal to distinguishing root and member partitions. Thanks, Michal --tesk6d4tqdsww4u2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQpEWyjXuwGT2dDBqAGvrMr/1gcjgUCZSlnOgAKCRAGvrMr/1gc jlo1AP4xYSAUf4DNG5nuDm9LyX+YsGRZ3bq7u4QtsOcCrbBDcQEAxQyx0Jkugln1 c2iV+v7jMcqrtN8iFmXXCc/E1ZE49Qs= =9/XE -----END PGP SIGNATURE----- --tesk6d4tqdsww4u2--