public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
From: Klara Modin <klarasmodin@gmail.com>
To: Waiman Long <longman@redhat.com>,
	Xiu Jianfeng <xiujianfeng@huawei.com>,
	lizefan.x@bytedance.com, tj@kernel.org, hannes@cmpxchg.org
Cc: cgroups@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] cgroup/cpuset: Statically initialize more members of top_cpuset
Date: Tue, 23 Apr 2024 21:59:17 +0200	[thread overview]
Message-ID: <ba0a2b84-2d98-4339-9b02-d7e95d9c6caf@gmail.com> (raw)
In-Reply-To: <a583d400-ed59-46b8-a26d-b726055b5cad@redhat.com>

On 2024-04-23 21:50, Waiman Long wrote:
> 
> On 4/23/24 15:21, Klara Modin wrote:
>> Hi,
>>
>> On 2024-04-20 11:46, Xiu Jianfeng wrote:
>>> Initializing top_cpuset.relax_domain_level and setting
>>> CS_SCHED_LOAD_BALANCE to top_cpuset.flags in cpuset_init() could be
>>> completed at the time of top_cpuset definition by compiler.
>>>
>>> Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
>>> ---
>>>   kernel/cgroup/cpuset.c | 5 ++---
>>>   1 file changed, 2 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
>>> index d8d3439eda4e..e70008a1d86a 100644
>>> --- a/kernel/cgroup/cpuset.c
>>> +++ b/kernel/cgroup/cpuset.c
>>> @@ -369,8 +369,9 @@ static inline void notify_partition_change(struct 
>>> cpuset *cs, int old_prs)
>>>     static struct cpuset top_cpuset = {
>>>       .flags = ((1 << CS_ONLINE) | (1 << CS_CPU_EXCLUSIVE) |
>>> -          (1 << CS_MEM_EXCLUSIVE)),
>>> +          (1 << CS_MEM_EXCLUSIVE) | (1 < CS_SCHED_LOAD_BALANCE)),
>>
>> You dropped a '<' for the bitwise shift, this causes bad cpu 
>> utilization for me.
> 
> Oh, now load_balancing is disable by default in the root cgroup. That is 
> bad. Will post a patch to fix it.
> 
> Thanks,
> Longman
> 
I attached one in my previous message, though I'm still very new at this 
and may have missed something.

Regards,
Klara Modin

  reply	other threads:[~2024-04-23 19:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-20  9:46 [PATCH -next] cgroup/cpuset: Statically initialize more members of top_cpuset Xiu Jianfeng
2024-04-22 18:34 ` Waiman Long
2024-04-22 19:52 ` Tejun Heo
2024-04-23 19:21 ` Klara Modin
2024-04-23 19:50   ` Waiman Long
2024-04-23 19:59     ` Klara Modin [this message]
2024-04-24  0:56   ` xiujianfeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ba0a2b84-2d98-4339-9b02-d7e95d9c6caf@gmail.com \
    --to=klarasmodin@gmail.com \
    --cc=cgroups@vger.kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizefan.x@bytedance.com \
    --cc=longman@redhat.com \
    --cc=tj@kernel.org \
    --cc=xiujianfeng@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox