[Devel] [PATCH rh7 1/3] memcg: add function to get container's ram size

2015-05-21 Thread Vladimir Davydov
Sometimes we need to get the ram size of the container the current process belongs to and we cannot open the memory cgroup by name as we usually do (e.g. see ub_dirty_limits). This patch adds a function for this purpose, mem_cgroup_ram_pages. In this function we implicitly assume that each contain

Re: [Devel] [PATCH rh7 1/3] memcg: add function to get container's ram size

2015-05-26 Thread Konstantin Khorenko
Kirill, please review the patch set. -- Best regards, Konstantin Khorenko, Virtuozzo Linux Kernel Team On 05/21/2015 06:27 PM, Vladimir Davydov wrote: > Sometimes we need to get the ram size of the container the current > process belongs to and we cannot open the memory cgroup by name as we > us

Re: [Devel] [PATCH rh7 1/3] memcg: add function to get container's ram size

2015-05-27 Thread Kirill Tkhai
В Чт, 21/05/2015 в 18:27 +0300, Vladimir Davydov пишет: > Sometimes we need to get the ram size of the container the current > process belongs to and we cannot open the memory cgroup by name as we > usually do (e.g. see ub_dirty_limits). This patch adds a function for > this purpose, mem_cgroup_ram