Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6325663imu; Sun, 2 Dec 2018 15:29:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/WHRQ0VK+oUC6BLUPa+okMXIKHUdDegWkteoxyvVhFIcfNV3FmYmve77YdNXoEF207TKhZc X-Received: by 2002:a62:e511:: with SMTP id n17mr13672951pff.71.1543793367757; Sun, 02 Dec 2018 15:29:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543793367; cv=none; d=google.com; s=arc-20160816; b=p2VVZ1Hhxji0boKWOUKpOSCc4ml49Cw7h/1dlfZ8MCxu8/I0lcgjJOZej41BVPjexh dxktcL38O0NflbCHHwlD3QXiaQNV8jXf15PteXUQWdHQVrbJfdKFTfuDs9yXLVhSVw/4 fIQ9h5CvFRX5Mb6sxIeacanZQE6Gu00sdK/WXCg8ef8y+6fqWS42mpXTSXcoqf2j3xk/ MBEIENyIagEJoTqvtbid54U01Jb6L5uuBn8Nq84XJkpL5R796GcjrghUrUhFr22KMtvK wfkLo9dH864NCVFuFXeUs4jsFCx6U6ceixzUmJqN6OoulD4wp0IflWFxyzKGMGJrI1nP /y1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=Zj7tCjPivy25jz/52Kl7vSRghtNwUpCnCqUHIG/8HFQ=; b=fQcXpTgqnWJ6TbS6oX7R6VWowNg6KKK//Pol7tfmjqbTU6FzQe9rvFl0tcG8QcFu4q uPOxf28mY3Zr9EwIxmEiJsoPc49KuE4udOPu4ISqAfTzAuni3m2GBBvkKCSgu1Eg9q6O o7wSYZUj0HbTgJ6n44PU3GEOESPmmloPeYp+pXnkVpiPPcnYfkwd2RLhgVwvv9FEjlS/ mZtidRc09znKirS17GLJr9jsxxpp86H2JHTnhSKU5maVfR5DhbQX5XGI6cA4L/7/n4TN 8q93Rh7pA6NbAx6iAI+PkN6GKO2CFTujICMTmqm+p2RxOLPZlvamtIp/V2Nysosyot2Q d9Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uj9dlfYC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b39-v6si12381268pla.22.2018.12.02.15.29.12; Sun, 02 Dec 2018 15:29:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uj9dlfYC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725803AbeLBX2i (ORCPT + 99 others); Sun, 2 Dec 2018 18:28:38 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40646 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbeLBX2i (ORCPT ); Sun, 2 Dec 2018 18:28:38 -0500 Received: by mail-pg1-f193.google.com with SMTP id z10so4841233pgp.7 for ; Sun, 02 Dec 2018 15:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Zj7tCjPivy25jz/52Kl7vSRghtNwUpCnCqUHIG/8HFQ=; b=uj9dlfYCJYBABx0MIIpXI36Qo/WWeasgUJjO0iJ/ZkR1HV7my6Wcfj/lFem7qYd4Es S9AxeoRxl10cRuduJmyIkHvfOhq0ahSDa5OFAucezcJZvzn7U5AgMBADJW5SkX+FemcC C5QaSqwZUwO57Dt5oU+DrnfyrvHa2roI64+AC1pXbpCy1qy7DOnv0vkt57UQiQwMEIE2 rZ2KREnJ/KVgko6erWa2DoVjawPDozXH+j2FKGl353BUiTZigxIExFJacKxaXCw/CWgA HYYkjDSUudxlP45HUZJIYXth7A2BbegbF9Yz/HVkr9rKs1Us6TfE/07P2QP6uXxwctT2 3bCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=Zj7tCjPivy25jz/52Kl7vSRghtNwUpCnCqUHIG/8HFQ=; b=QVREVaPRZEsbbrkGLXPgXDWuUx2dq4CW0MXQq6c/HBS7PBpbnp1SB9I00l3RKTm605 FgfOeYXR6XMT8wii3dscaOJ/myJ4rgvchpZkbSsDnZN/ZQv0y2rg2pjEc08FSCMVwAOo JjgVtDoKRqVH7dGn0QwMrOM/4IjAOSUdLRVRrx3INXRNROXelVqB92S+59fbDgI200zo QPC2Qv4HI+Hy+FiWbikTchdlvbqKXyRbVFsqXQ5Z9XuVT5i5ppYVFFwD9Ph0cvG8+5Iq IeM0hgRs85buePIU9kGT4CjHq+XgJavxVUoWRXmpkwRLbbGNBR5eoJ02TsUw3wsC1ckH iwbw== X-Gm-Message-State: AA+aEWaItDPTjO9buh4JwdxcKhhlwVzp37YpM7/op1hmqfQA92UY2xs2 gQNJw1Ql7sNIh7j+LrhIwsU= X-Received: by 2002:a63:6984:: with SMTP id e126mr11601005pgc.143.1543793315340; Sun, 02 Dec 2018 15:28:35 -0800 (PST) Received: from gmail.com (cpe-98-150-136-16.hawaii.res.rr.com. [98.150.136.16]) by smtp.gmail.com with ESMTPSA id v76sm29272072pfj.145.2018.12.02.15.28.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Dec 2018 15:28:34 -0800 (PST) Date: Sun, 2 Dec 2018 13:28:32 -1000 From: Joey Pabalinas To: Minchan Kim Cc: Andrew Morton , LKML , Sergey Senozhatsky , Joey Pabalinas Subject: Re: [PATCH v3 0/7] zram idle page writeback Message-ID: <20181202232832.hou645rlbvo7z5ar@gmail.com> Mail-Followup-To: Joey Pabalinas , Minchan Kim , Andrew Morton , LKML , Sergey Senozhatsky References: <20181127055429.251614-1-minchan@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6shwijuvv6x6jsdl" Content-Disposition: inline In-Reply-To: <20181127055429.251614-1-minchan@kernel.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --6shwijuvv6x6jsdl Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 27, 2018 at 02:54:22PM +0900, Minchan Kim wrote: > Inherently, swap device has many idle pages which are rare touched since > it was allocated. It is never problem if we use storage device as swap. > However, it's just waste for zram-swap. >=20 > This patchset supports zram idle page writeback feature. Revisions look good to me. Will also try to give it some testing this week. Reviewed-by: Joey Pabalinas > * Admin can define what is idle page "no access since X time ago" > * Admin can define when zram should writeback them > * Admin can define when zram should stop writeback to prevent wearout >=20 > Detail is on each patch's description. >=20 > Below first two patches are -stable material so it could go first > separately with others in this series. >=20 > zram: fix lockdep warning of free block handling > zram: fix double free backing device >=20 > * from v2 > - use strscpy instead of strlcpy - Joey Pabalinas > - remove irqlock for bitmap op - akpm > - don't use page as stat unit - akpm >=20 > * from v1 > - add fix dobule free backing device - minchan > - change writeback/idle interface - minchan=20 > - remove direct incompressible page writeback - sergey >=20 > Minchan Kim (7): > zram: fix lockdep warning of free block handling > zram: fix double free backing device > zram: refactoring flags and writeback stuff > zram: introduce ZRAM_IDLE flag > zram: support idle/huge page writeback > zram: add bd_stat statistics > zram: writeback throttle >=20 > Documentation/ABI/testing/sysfs-block-zram | 32 ++ > Documentation/blockdev/zram.txt | 51 ++- > drivers/block/zram/Kconfig | 5 +- > drivers/block/zram/zram_drv.c | 501 +++++++++++++++------ > drivers/block/zram/zram_drv.h | 19 +- > 5 files changed, 446 insertions(+), 162 deletions(-) >=20 > --=20 > 2.20.0.rc0.387.gc7a69e6b6c-goog >=20 --=20 Cheers, Joey Pabalinas --6shwijuvv6x6jsdl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEENpTlWU2hUK/KMvHp2rGdfm9DtVIFAlwEap8ACgkQ2rGdfm9D tVLl1xAAr3tJ07J2CYMtIxO+HjgIOOKKxRD7L7RS0eTFhuOR3kq5vIYTyWUQMuLP r18sOjS2BTQw4PnWutxcgWay9h/MO+Htm8+O06muiybgEwTHo1w+yRJyZGjc4tD1 QRDN9R9xHRu1djq0jlBYhVR7ARUt80n8Mp4JVzpPRqehofCXAnjNoE9TmxQphdN1 10TZYgtjOtt/aQHl8yGMwuby2Vwfo8XSzGXNd/khmI76tZn82TVheAioyzDXT6i0 +pB1Hglktvdsg+AGfA9IUEnbnyihlpbjaIlDVyWoe0mcar/BjBdlvD+6G0PzShzs u32ZjrC4qe6I2FL+nENoXsb3efjVF7QBOIaysVMOUFas+4h1a8oKj0qp5xSS5R6U mNQ5DiBYCSdaXPctN+E00NGoSoBCLZlWAh9g15xtxdA5PTz0282SlRQ8w8UKhXUe OhU/lryDluYV+Fz8OlWFsRWHE3/Rmb20KVNNkld4E98tPzqoTeRqa670nJFEj7Xg nhtUL35nZ9aiEAZpHqQE87UZAjWB+8uuYYSaiDAz7RFbWknOoudvI2B2OAEo2/u4 /l5PL4LHm5m/dTLgJIsHJIijTAVRqc2lv0ZOL6UQjO4PHu/O0kPYLAn3GDqveUkS ld5f361vqLY3oVGeX2h90vfrJH+5ke/G7F+MDk9mA6+CoLQhp6g= =mDBH -----END PGP SIGNATURE----- --6shwijuvv6x6jsdl--