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

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

 



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 <minchan@xxxxxxxxxx> 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_empty;
> > +	unsigned long obj_allocated, obj_used, pages_used;
> > +	unsigned long total_class_almost_full = 0, total_class_almost_empty = 0;
> > +	unsigned long total_objs = 0, total_used_objs = 0, total_pages = 0;
> > +
> > +	seq_printf(s, " %5s %5s %11s %12s %13s %10s %10s %16s\n",
> > +			"class", "size", "almost_full", "almost_empty",
> > +			"obj_allocated", "obj_used", "pages_used",
> > +			"pages_per_zspage");
> 
> Documentation?

It should been since [0f050d9, mm/zsmalloc: add statistics support].
Anyway, I will try it.
Where is right place to put only this statistics in Documentation?

Documentation/zsmalloc.txt?
Documentation/vm/zsmalloc.txt?
Documentation/blockdev/zram.txt?
Documentation/ABI/testing/sysfs-block-zram?

I hope you suggest.

-- 
Kind regards,
Minchan Kim

--
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]