From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753229AbbCDWCG (ORCPT ); Wed, 4 Mar 2015 17:02:06 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:33236 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752246AbbCDWCE (ORCPT ); Wed, 4 Mar 2015 17:02:04 -0500 Date: Wed, 4 Mar 2015 14:02:02 -0800 From: Andrew Morton To: Minchan Kim Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Juneho Choi , Gunho Lee , Luigi Semenzato , Dan Streetman , Seth Jennings , Nitin Gupta , Jerome Marchand , Sergey Senozhatsky , Joonsoo Kim , opensource.ganesh@gmail.com Subject: Re: [PATCH v2 7/7] zsmalloc: add fullness into stat Message-Id: <20150304140202.905f566b7107e2735d075b27@linux-foundation.org> In-Reply-To: <1425445292-29061-8-git-send-email-minchan@kernel.org> References: <1425445292-29061-1-git-send-email-minchan@kernel.org> <1425445292-29061-8-git-send-email-minchan@kernel.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_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?