Re: [patch] mm, memcg: add anon_hugepage stat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 25 Apr 2013 14:41:17 -0700 (PDT) David Rientjes <rientjes@xxxxxxxxxx> wrote:

> This exports the amount of anonymous transparent hugepages for each memcg
> via memory.stat in bytes.
> 
> This is helpful to determine the hugepage utilization for individual jobs
> on the system in comparison to rss and opportunities where MADV_HUGEPAGE
> may be helpful.
> 
> Signed-off-by: David Rientjes <rientjes@xxxxxxxxxx>
> ---
>  include/linux/memcontrol.h |  3 ++-
>  mm/huge_memory.c           |  2 ++
>  mm/memcontrol.c            | 13 +++++++++----
>  mm/rmap.c                  | 18 +++++++++++++++---

And Documentation/cgroups/memory.txt, please.

> --- a/include/linux/memcontrol.h
> +++ b/include/linux/memcontrol.h
>
> ...
>
> +	MEM_CGROUP_STAT_FILE_MAPPED,	/* # of pages charged as file rss */
>
> ...
>
>  	"mapped_file",

That "FILE_MAPPED" is presented to the user as "mapped_file" makes me
want to chew my desk.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]