From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id B15EF620201 for ; Fri, 16 Jul 2010 08:38:17 -0400 (EDT) Received: by mail-pv0-f169.google.com with SMTP id 30so927427pvc.14 for ; Fri, 16 Jul 2010 05:38:16 -0700 (PDT) From: Nitin Gupta 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> In-Reply-To: <1279283870-18549-1-git-send-email-ngupta@vflare.org> References: <1279283870-18549-1-git-send-email-ngupta@vflare.org> Sender: owner-linux-mm@kvack.org 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 List-ID: 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org