Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753909AbbEIEWK (ORCPT ); Sat, 9 May 2015 00:22:10 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:35629 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753751AbbEIEWF (ORCPT ); Sat, 9 May 2015 00:22:05 -0400 Date: Sat, 9 May 2015 13:21:48 +0900 From: Sergey Senozhatsky To: Karel Zak Cc: Minchan Kim , Sergey Senozhatsky , Sergey Senozhatsky , linux-kernel@vger.kernel.org, util-linux@vger.kernel.org Subject: what's cooking in zram for 4.1 Message-ID: <20150509042148.GA514@swordfish> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1873 Lines: 61 Hello Karel, There will be some user-space visible changes in zram 4.1 we'd love to let you know about. 1) new sysfs node -- /sys/block/zramX/compact triggers zram memory compaction. 2) zram has deprecated some of the existing stat sysfs attributes. we will consolidate zramX device's stats in 3 files, rather than having N files (per-stat). The idea is: -- the existing RW sysfs device nodes will be downgraded to WO nodes (in linux 4.11) -- deprecated RO sysfs nodes will eventually be removed (in linux 4.11) User-space is advised to use the following files: -- /sys/block/zram/stat Represents block layer statistics (read Documentation/block/stat.txt for details). -- /sys/block/zram/io_stat The stat file represents device's I/O statistics not accounted by block layer and, thus, not available in zram/stat file. It consists of a single line of text and contains the following stats separated by whitespace: failed_reads failed_writes invalid_io notify_free -- /sys/block/zram/mm_stat The stat file represents device's mm statistics. It consists of a single line of text and contains the following stats separated by whitespace: orig_data_size compr_data_size mem_used_total mem_limit mem_used_max zero_pages num_migrated deprecated nodes will be around up until linux 4.11 (approx 2 years from now). in the meantime, zram will warn (once) should any user space app access any of the deprecated attrs: "zram: 30788 (cat) Attribute num_reads (and others) will be removed. See zram documentation." -ss -- 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/