On 07/10/2009 02:01 PM, Ivana Varekova wrote:
> Hello,
> I'm planing to do some tools to go through system of mounted
> controllers, created cgroups and parameters of cgroups and so on so I
> propose this system of tools:
> Feedback welcomed.
>
> Ivana Hutarova Varekova
> -----------------------
> List groups and controllers:
>
> lscgroup:
> list mounted/unounted controllers/ cgroups/ cgroup parameters:
>
> Syntax
> lscgroup [-m] [-a] [controller1] [controller2] [...]
> lscgroup -s [-t] [<list of controllers>[:group]]
> lscgroup -p [-r name]<list of controllers:group>
>

I'd like to have separate tools for -p and -s options - the semantic and 
output is completely different than lscgroup without arguments. I like 
to have more small tools than having one big swiss army knife with lot 
of options.

Jan

> Descryption:
> lscgroup without -s display mounted controllers:
> -m .. shows mount pouints too
> -a .. shouws unmounted controllers too
> if controller is on input then
>
>
> lscgroup with -s option list all cgroups
> in all controllers, in given controller, in given cgroup of given controller
> -t .. will display it in "tree" structure
>
> lscgroup with -p option list the parameters and values in a group
>   -r name - show specified value only
>
>
> Examples:
> $ lscgroup
> cpuset,cpu
> devices
>
> $ lscgroup -m
> cpuset,cpu /mnt/cgroup/cpu
> devices /mnt/cgroup/devices
>
> $ lscgroup -ma
> cpuset,cpu /mnt/cgroup/cpu
> devices /mnt/cgroup/devices
> cpuacct
> ns
> memory
> freezer
>
> $ lscgroup -m cpu
> cpuset,cpu /mnt/cgroup/cpu
>
> $ lscgroup -s
> cpu,cpuset:/
> cpu,cpuset:/first
> cpu,cpuset:/first/subgroup
> cpu,cpuset:/second
> devices:/
> devices:/alpha
> devices:/beta
>
> $ lscgroup -s -t
> cpu,cpuset:
>   + first
>   | + subgroup
>   + second
>
> devices:
>   + alpha
>   + beta
>
> $ lscgroup -s cpu
> cpu,cpuset:/
> cpu,cpuset:/first
> cpu,cpuset:/first/subgroup
> cpu,cpuset:/second
>
> $ lscgroup -s cpu:first
> first/subgroup
>
> $ lscgroup -p cpu:first
> cpu.rt_period_us 1000000
> cpu.rt_runtime_us 0
> cpuset.cpu_exclusive 0
> cpuset.cpus 0-1
> cpuset.mem_exclusive 0
> cpuset.mem_hardwall 0
> cpuset.memory_migrate 0
> cpuset.memory_pressure 0
> cpuset.memory_spread_page 0
> cpuset.memory_spread_slab 0
> cpuset.mems 0
> cpuset.sched_load_balance 1
> cpuset.sched_relax_domain_level -1
> cpu.shares 1024
>
>
> $ lscgroup -p -r cpuset.cpus -r cpuset.mems cpu:first
> 0-1
> 1
>
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> Libcg-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/libcg-devel


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to