Re: [PATCH v2 7/7] zsmalloc: add fullness into stat

2015-03-04 Thread Andrew Morton
On Thu, 5 Mar 2015 09:43:31 +0900 Minchan Kim wrote: > Hello Andrew, > > On Wed, Mar 04, 2015 at 02:02:02PM -0800, Andrew Morton wrote: > > On Wed, 4 Mar 2015 14:01:32 +0900 Minchan Kim wrote: > > > > > +static int zs_stats_size_show(struct seq_file *s, void *v) > > > +{ > > > + int i; > > >

Re: [PATCH v2 7/7] zsmalloc: add fullness into stat

2015-03-04 Thread Minchan Kim
Hello Andrew, On Wed, Mar 04, 2015 at 02:02:02PM -0800, Andrew Morton wrote: > On Wed, 4 Mar 2015 14:01:32 +0900 Minchan Kim wrote: > > > +static int zs_stats_size_show(struct seq_file *s, void *v) > > +{ > > + int i; > > + struct zs_pool *pool = s->private; > > + struct size_class *class

Re: [PATCH v2 7/7] zsmalloc: add fullness into stat

2015-03-04 Thread Andrew Morton
On Wed, 4 Mar 2015 14:01:32 +0900 Minchan Kim wrote: > +static int zs_stats_size_show(struct seq_file *s, void *v) > +{ > + int i; > + struct zs_pool *pool = s->private; > + struct size_class *class; > + int objs_per_zspage; > + unsigned long class_almost_full, class_almost_e

[PATCH v2 7/7] zsmalloc: add fullness into stat

2015-03-03 Thread Minchan Kim
During investigating compaction, fullness information of each class is helpful for investigating how the compaction works well. With that, we could know how compaction works well more clear on each size class. Signed-off-by: Minchan Kim --- mm/zsmalloc.c | 349 +++