Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965453Ab0GPMiW (ORCPT ); Fri, 16 Jul 2010 08:38:22 -0400 Received: from mail-pw0-f46.google.com ([209.85.160.46]:62826 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965439Ab0GPMiQ (ORCPT ); Fri, 16 Jul 2010 08:38:16 -0400 From: Nitin Gupta To: Pekka Enberg , Hugh Dickins , Andrew Morton , Greg KH , Dan Magenheimer , Rik van Riel , Avi Kivity , Christoph Hellwig , Minchan Kim , Konrad Rzeszutek Wilk Cc: linux-mm , linux-kernel Subject: [PATCH 8/8] Document sysfs entries Date: Fri, 16 Jul 2010 18:07:50 +0530 Message-Id: <1279283870-18549-9-git-send-email-ngupta@vflare.org> X-Mailer: git-send-email 1.7.1.1 In-Reply-To: <1279283870-18549-1-git-send-email-ngupta@vflare.org> References: <1279283870-18549-1-git-send-email-ngupta@vflare.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2711 Lines: 74 Signed-off-by: Nitin Gupta --- Documentation/ABI/testing/sysfs-kernel-mm-zcache | 53 ++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-kernel-mm-zcache diff --git a/Documentation/ABI/testing/sysfs-kernel-mm-zcache b/Documentation/ABI/testing/sysfs-kernel-mm-zcache new file mode 100644 index 0000000..7ee3f31 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-kernel-mm-zcache @@ -0,0 +1,53 @@ +What: /sys/kernel/mm/zcache +Date: July 2010 +Contact: Nitin Gupta +Description: + /sys/kernel/mm/zcache directory contains compressed cache + statistics for each pool. A separate pool is created for + every mount instance of cleancache-aware filesystems. + +What: /sys/kernel/mm/zcache/pool/zero_pages +Date: July 2010 +Contact: Nitin Gupta +Description: + The zero_pages file is read-only and specifies number of zero + filled pages found in this pool. + +What: /sys/kernel/mm/zcache/pool/orig_data_size +Date: July 2010 +Contact: Nitin Gupta +Description: + The orig_data_size file is read-only and specifies uncompressed + size of data stored in this pool. This excludes zero-filled + pages (zero_pages) since no memory is allocated for them. + Unit: bytes + +What: /sys/kernel/mm/zcache/pool/compr_data_size +Date: July 2010 +Contact: Nitin Gupta +Description: + The compr_data_size file is read-only and specifies compressed + size of data stored in this pool. So, compression ratio can be + calculated using orig_data_size and this statistic. + Unit: bytes + +What: /sys/kernel/mm/zcache/pool/mem_used_total +Date: July 2010 +Contact: Nitin Gupta +Description: + The mem_used_total file is read-only and specifies the amount + of memory, including allocator fragmentation and metadata + overhead, allocated for this pool. So, allocator space + efficiency can be calculated using compr_data_size and this + statistic. + Unit: bytes + +What: /sys/kernel/mm/zcache/pool/memlimit +Date: July 2010 +Contact: Nitin Gupta +Description: + The memlimit file is read-write and specifies upper bound on + the compressed data size (compr_data_dize) stored in this pool. + The value specified is rounded down to nearest multiple of + PAGE_SIZE. + Unit: bytes \ No newline at end of file -- 1.7.1.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/