public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko-IBi9RG/b67k@public.gmane.org>
To: hezhongkun <hezhongkun.hzk-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
Cc: hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org,
	roman.gushchin-fxUVXftIFDnyG1zEObXtfA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org,
	lizefan.x-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org,
	wuyun.abel-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org
Subject: Re: [PATCH] cgroup/cpuset: Add a new isolated mems.policy type.
Date: Mon, 5 Sep 2022 08:45:25 +0200	[thread overview]
Message-ID: <YxWbBYZKDTrkmlOe@dhcp22.suse.cz> (raw)
In-Reply-To: <20220904040241.1708-1-hezhongkun.hzk-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>

On Sun 04-09-22 12:02:41, hezhongkun wrote:
> From: Zhongkun He <hezhongkun.hzk-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
> 
> Mempolicy is difficult to use because it is set in-process
> via a system call. We want to make it easier to use mempolicy
> in cpuset, and  we can control low-priority cgroups to
> allocate memory in specified nodes. So this patch want to
> adds the mempolicy interface in cpuset.
> 
> The mempolicy priority of cpuset is lower than the task.
> The order of getting the policy is:
> 	1) vma mempolicy
> 	2) task->mempolicy
> 	3) cpuset->mempolicy
> 	4) default policy.
> 
> cpuset's policy is owned by itself, but descendants will
> get the default mempolicy from parent.

What is the hierarchical behavior of the policy? Say parent has a
stronger requirement (say bind) than a child (prefer)?
 
> How to use the mempolicy interface:
> 	echo prefer:2 > /sys/fs/cgroup/zz/cpuset.mems.policy
> 	echo bind:1-3 > /sys/fs/cgroup/zz/cpuset.mems.policy
>         echo interleave:0,1,2,3 >/sys/fs/cgroup/zz/cpuset.mems.policy

Am I just confused or did you really mean to combine all these
together?
-- 
Michal Hocko
SUSE Labs

  parent reply	other threads:[~2022-09-05  6:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-04  4:02 [PATCH] cgroup/cpuset: Add a new isolated mems.policy type hezhongkun
2022-09-04  6:04 ` kernel test robot
2022-09-04  6:20 ` kernel test robot
     [not found] ` <20220904040241.1708-1-hezhongkun.hzk-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
2022-09-04  6:41   ` kernel test robot
2022-09-05  6:45   ` Michal Hocko [this message]
     [not found]     ` <YxWbBYZKDTrkmlOe-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-09-05 10:30       ` [External] " Zhongkun He
     [not found]         ` <0e5f380b-9201-0f56-9144-ce8449491fc8-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
2022-09-05 10:50           ` Michal Hocko
     [not found]             ` <YxXUjvWmZoG9vVNV-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-09-06 10:37               ` Zhongkun He
     [not found]                 ` <ca5e57fd-4699-2cec-b328-3d6bac43c8ef-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
2022-09-06 12:33                   ` Michal Hocko
     [not found]                     ` <Yxc+HZ6rjcR535oN-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-09-07 13:50                       ` Zhongkun He
     [not found]                         ` <93d76370-6c43-5560-9a5f-f76a8cc979e0-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
2022-09-08  7:19                           ` Michal Hocko
     [not found]                             ` <YxmXeC7te2HAi4dX-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-09-09  2:55                               ` Zhongkun He
     [not found]                                 ` <fa5e5a79-aa1a-a009-d0c8-0a39380a71b6-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
2022-09-14 15:10                                   ` Zhongkun He
     [not found]                                     ` <120cb50d-d617-a60a-ec24-915f826318f1-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
2022-09-23  7:29                                       ` Michal Hocko
     [not found]                                         ` <Yy1gP7wcoCqzRa0B-2MMpYkNvuYDjFM9bn6wA6Q@public.gmane.org>
2022-09-23 15:26                                           ` Zhongkun He
2022-09-04 23:08 ` kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2022-09-02  6:33 hezhongkun
2022-09-02  9:14 ` kernel test robot
     [not found] ` <20220902063303.1057-1-hezhongkun.hzk-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org>
2022-09-02 10:00   ` kernel test robot
2022-09-04 19:42   ` Tejun Heo

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=YxWbBYZKDTrkmlOe@dhcp22.suse.cz \
    --to=mhocko-ibi9rg/b67k@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=hannes-druUgvl0LCNAfugRpC6u6w@public.gmane.org \
    --cc=hezhongkun.hzk-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org \
    --cc=lizefan.x-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org \
    --cc=roman.gushchin-fxUVXftIFDnyG1zEObXtfA@public.gmane.org \
    --cc=wuyun.abel-EC8Uxl6Npydl57MIdRCFDg@public.gmane.org \
    /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