All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
To: Kevin Wilson <wkevils-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: noprefix mount option
Date: Sat, 30 Nov 2013 08:49:29 +0800	[thread overview]
Message-ID: <52993619.2090903@huawei.com> (raw)
In-Reply-To: <CAGXs5wVd-fD5xcFJbeN-uSbEKczYuDbBp0BE=vhuM34eBgsqXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On 2013/11/29 22:36, Kevin Wilson wrote:
> Hello,
> I hope this is the right place to ask.
> As far as I know, the noprefix mount option is valid only for cpuset.
> 
> I ran the following sequence of Fedora 18, 3.6.10-4.fc18.x86_64:
> 
> mkdir /mytest
> mount -t tmpfs testcg /mytest
> mkdir /mytest/testprefix
> mount -t cgroup -o noprefix,cpuset  testnonprefix /mytest/testprefix/
> 
> I expected that entries under /mytest/testprefix/ will be without the
> "cpuset" prefix. However, this is what I get:
> 
> ls /mytest/testprefix/
> cgroup.clone_children       cpuset.memory_pressure_enabled
> cgroup.event_control        cpuset.memory_spread_page
> cgroup.procs                   cpuset.memory_spread_slab
> cpuset.cpu_exclusive        cpuset.mems
> cpuset.cpus                     cpuset.sched_load_balance
> cpuset.mem_exclusive      cpuset.sched_relax_domain_level
> cpuset.mem_hardwall       notify_on_release
> cpuset.memory_migrate    release_agent
> cpuset.memory_pressure  tasks
> 
> 
> any ideas ? Am I missing something ?
> 

I've tried this, and it works for me.

My guess is, cpuset had already been mounted:

# mount -t cgroup -o noprefix,cpuset xxx /cgroup
# ls /cgroup
cgroup.clone_children  mem_hardwall             mems
cgroup.event_control   memory_migrate           notify_on_release
cgroup.procs           memory_pressure          release_agent
cpu_exclusive          memory_pressure_enabled  sched_load_balance
cpus                   memory_spread_page       sched_relax_domain_level
mem_exclusive          memory_spread_slab       tasks

# umount /cgroup
# mount -t cgroup -o cpuset xxx /cgroup
# ls /cgroup
cgroup.clone_children  cpuset.mem_hardwall             cpuset.mems
cgroup.event_control   cpuset.memory_migrate           cpuset.sched_load_balance
cgroup.procs           cpuset.memory_pressure          cpuset.sched_relax_domain_level
cpuset.cpu_exclusive   cpuset.memory_pressure_enabled  notify_on_release
cpuset.cpus            cpuset.memory_spread_page       release_agent
cpuset.mem_exclusive   cpuset.memory_spread_slab       tasks

# mount -t cgroup -o noprefix,cpuset xxx /cgroup2/
# ls /cgroup2/
cgroup.clone_children  cpuset.mem_hardwall             cpuset.mems
cgroup.event_control   cpuset.memory_migrate           cpuset.sched_load_balance
cgroup.procs           cpuset.memory_pressure          cpuset.sched_relax_domain_level
cpuset.cpu_exclusive   cpuset.memory_pressure_enabled  notify_on_release
cpuset.cpus            cpuset.memory_spread_page       release_agent
cpuset.mem_exclusive   cpuset.memory_spread_slab       tasks


  parent reply	other threads:[~2013-11-30  0:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-29 14:36 noprefix mount option Kevin Wilson
     [not found] ` <CAGXs5wVd-fD5xcFJbeN-uSbEKczYuDbBp0BE=vhuM34eBgsqXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-11-30  0:49   ` Li Zefan [this message]
     [not found]     ` <52993619.2090903-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2013-11-30 10:51       ` Kevin Wilson

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=52993619.2090903@huawei.com \
    --to=lizefan-hv44wf8li93qt0dzr+alfa@public.gmane.org \
    --cc=cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=wkevils-Re5JQEeQqe8AvxtiuMwx3w@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.