Re: [PATCH v5 15/18] Aggregate memcg cache values in slabinfo

2012-10-22 Thread Glauber Costa
On 10/19/2012 11:50 PM, Christoph Lameter wrote: > On Fri, 19 Oct 2012, Glauber Costa wrote: > >> + >> +/* >> + * We use suffixes to the name in memcg because we can't have caches >> + * created in the system with the same name. But when we print them >> + * locally, better refer to them with the

Re: [PATCH v5 15/18] Aggregate memcg cache values in slabinfo

2012-10-19 Thread Christoph Lameter
On Fri, 19 Oct 2012, Glauber Costa wrote: > + > +/* > + * We use suffixes to the name in memcg because we can't have caches > + * created in the system with the same name. But when we print them > + * locally, better refer to them with the base name > + */ > +static inline const char *cache_name(s

[PATCH v5 15/18] Aggregate memcg cache values in slabinfo

2012-10-19 Thread Glauber Costa
When we create caches in memcgs, we need to display their usage information somewhere. We'll adopt a scheme similar to /proc/meminfo, with aggregate totals shown in the global file, and per-group information stored in the group itself. For the time being, only reads are allowed in the per-group ca