From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751498AbdFZGxS (ORCPT ); Mon, 26 Jun 2017 02:53:18 -0400 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:53858 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751092AbdFZGxK (ORCPT ); Mon, 26 Jun 2017 02:53:10 -0400 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.220.163 X-Original-MAILFROM: minchan@kernel.org From: Minchan Kim To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Juneho Choi , Sergey Senozhatsky , kernel-team , Minchan Kim Subject: [PATCH v1 0/7] writeback incompressible pages to storage Date: Mon, 26 Jun 2017 15:52:58 +0900 Message-Id: <1498459987-24562-1-git-send-email-minchan@kernel.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org zRam is useful for memory saving with compressible pages but sometime, workload can be changed and system has lots of incompressible pages which is very harmful for zram. This patch supports writeback feature of zram so admin can set up a block device and with it, zram can save the memory via writing out the incompressile pages once it found it's incompressible pages (1/4 comp ratio) instead of keeping the page in memory. [1-3] is just clean up and [4-8] is step by step feature enablement. [4-8] is logically not bisectable(ie, logical unit separation) although I tried to compiled out without breaking but I think it would be better to review. Minchan Kim (9): [1] zram: clean up duplicated codes in __zram_bvec_write [2] zram: inlining zram_compress [3] zram: rename zram_decompress_page with __zram_bvec_read [4] zram: add interface to specify backing device [5] zram: add free space management in backing device [6] zram: identify asynchronous IO's return value [7] zram: write incompressible pages to backing device [8] zram: read page from backing device [9] zram: add config and doc file for writeback feature Documentation/ABI/testing/sysfs-block-zram | 8 + Documentation/blockdev/zram.txt | 11 + drivers/block/zram/Kconfig | 12 + drivers/block/zram/zram_drv.c | 537 ++++++++++++++++++++++++----- drivers/block/zram/zram_drv.h | 9 + 5 files changed, 496 insertions(+), 81 deletions(-) -- 2.7.4