From mboxrd@z Thu Jan 1 00:00:00 1970 From: Waiman Long Subject: Re: [PATCH 1/2] cgroup/cpuset: Keep current cpus list if cpus affinity was explicitly set Date: Thu, 28 Jul 2022 11:35:26 -0400 Message-ID: References: <20220728005815.1715522-1-longman@redhat.com> <20220728144420.GA27407@blackbody.suse.cz> <20220728152355.GB25894@blackbody.suse.cz> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1659022534; 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=e7I3jQYqn+i1jh+28n62ByMkPKXnBhZ1RSKhHHCbdq1r2f4hizoMIJcT68wmz+YZ3w1bHG d37QNPxZedsLV6ogKw+dgPEvnh8i6yNSPEmIULk2ZBNI6vPF8K6sHvAcSWGNoerZ1rA+q/ Atf3CZHyUqBBYECC81Ldv6i4P6UXs3g= Content-Language: en-US In-Reply-To: <20220728152355.GB25894-9OudH3eul5jcvrawFnH+a6VXKuFTiq87@public.gmane.org> List-ID: Content-Type: text/plain; charset="iso-8859-1"; format="flowed" 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 7/28/22 11:23, Michal Koutn=C3=BD 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=20 environment doesn't cause this cpu list reset to happen. It doesn't mean=20 that cgroup v1 has no similar problem. Sorry for the confusion. Cheers, Longman