* Ivana Varekova <[email protected]> [2010-02-05 12:14:26]:
> adds new option -g to cgget command
> * the option has one argument - controller
> * cgget -g devices / returns the values of all variables of controller
> devices
> * the option could be used multiple times
>
>
> EXAMLES:
>
> $ ./cgget -n -g cpu -r cpuset.mems /
> cpu.rt_period_us=1000000
> cpu.rt_runtime_us=950000
> cpu.shares=1024
> cpuset.mems=0
>
>
>
> Signed-off-by: Ivana Hutarova Varekova <[email protected]>
I am afraid this does not work too well on my system
bal...@balbir-laptop:~/ext/scm/libcg$ ./libtool --mode=execute
src/tools/cgget -g memory /sysdefault
/sysdefault:
memory.memsw.failcnt=0
memory.memsw.limit_in_bytes=9223372036854775807
memory.memsw.max_usage_in_bytes=46567424
memory.memsw.usage_in_bytes=25096192
memory.swappiness=60
memory.use_hierarchy=0
memory.stat=cache 11399168
rss 13697024
mapped_file 45056
pgpgin 1283371
pgpgout 1277244
inactive_anon 0
active
memory.failcnt=0
memory.limit_in_bytes=9223372036854775807
memory.max_usage_in_bytes=46567424
memory.usage_in_bytes=25096192
As you can see the memory.stat output does not seem correct, the
correct value is
bal...@balbir-laptop:~/ext/scm/libcg$ cat
/mnt/cgroups/mem/sysdefault/memory.stat
cache 11403264
rss 11104256
mapped_file 0
pgpgin 1444156
pgpgout 1438661
inactive_anon 0
active_anon 11087872
inactive_file 6230016
active_file 5173248
unevictable 0
hierarchical_memory_limit 9223372036854775807
hierarchical_memsw_limit 9223372036854775807
total_cache 11403264
total_rss 11104256
total_mapped_file 0
total_pgpgin 1444156
total_pgpgout 1438661
total_inactive_anon 0
total_active_anon 11087872
total_inactive_file 6230016
total_active_file 5173248
total_unevictable 0
I would prefer it we could either skip the stat file or use the API we
have to walk statistics
--
Three Cheers,
Balbir
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel