public inbox for cgroups@vger.kernel.org
 help / color / mirror / Atom feed
* noprefix mount option
@ 2013-11-29 14:36 Kevin Wilson
       [not found] ` <CAGXs5wVd-fD5xcFJbeN-uSbEKczYuDbBp0BE=vhuM34eBgsqXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Wilson @ 2013-11-29 14:36 UTC (permalink / raw)
  To: cgroups-u79uwXL29TY76Z2rM5mHXA

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 ?

regards,
Kevin

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: noprefix mount option
       [not found] ` <CAGXs5wVd-fD5xcFJbeN-uSbEKczYuDbBp0BE=vhuM34eBgsqXA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-11-30  0:49   ` Li Zefan
       [not found]     ` <52993619.2090903-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Li Zefan @ 2013-11-30  0:49 UTC (permalink / raw)
  To: Kevin Wilson; +Cc: cgroups-u79uwXL29TY76Z2rM5mHXA

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: noprefix mount option
       [not found]     ` <52993619.2090903-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
@ 2013-11-30 10:51       ` Kevin Wilson
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Wilson @ 2013-11-30 10:51 UTC (permalink / raw)
  To: Li Zefan; +Cc: cgroups-u79uwXL29TY76Z2rM5mHXA

Hello,
Yes you are right. When I tested it again now on Ubuntu, after reboot,
it was as expected.
Thanks,
Kevin


On Sat, Nov 30, 2013 at 2:49 AM, Li Zefan <lizefan-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> wrote:
> 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
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-30 10:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
     [not found]     ` <52993619.2090903-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2013-11-30 10:51       ` Kevin Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox