Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6319062imu; Sun, 2 Dec 2018 15:19:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/VLNYQqJc891XDUS6n+4TWre5OeA3C070dIDoJdOAi83qaCqZxLuGZ34VkEviNVlBpPZkp3 X-Received: by 2002:a17:902:20b:: with SMTP id 11mr13802790plc.57.1543792766093; Sun, 02 Dec 2018 15:19:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543792766; cv=none; d=google.com; s=arc-20160816; b=Y9XGQ76m0ZxdSBMOR3piajrBFlAik8L8Rirq8F5slq1C3EDKylIUmW1+mj3Z5JS9Ib NzOjaMawoC7P/ipVLJRK6+zwxbE+ZT33QEFOoCoolJXxSLU4uUPgUvrrRT9EBUaFYdmE JC65z95x/cWZ6FYioaoLE+yJ3t2Lre2R+fQMfR1KmU7IP7OFNXRFXZrdZiFnYPCcS5WO JwDPHiSvjnx1K9V8khURWdBPaNwulWv67p0ZKawzfqxykuUPn9nh7ULLU5In2P7JqkG8 qURxZvHL2pndZAbdhW/2kwzYexfobBMoLSgrE/9i4vfLZ/f/7N2iInnl7EbsT1XSHmQg 718A== 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:message-id:subject:cc :to:from:date:dkim-signature; bh=P2g/iOJ2yw0tiT4S8bVNniIoflE3iGqOlA6JW1Y0pqg=; b=HjtVuLUXCsddW2kUbTsIk7JKjOphqDGEFMTtAtx3489eLbAjRvu+IZ0rvnTwMjlsH1 4mnIfKIC32c/C4xn63fNL+ZNp04QJbzJCZmIla2fF+SSwWUwBYsBzW6GXtkFbbpudyld KKeG/UhIuJJ3PRU0EId3HjzoPfpF6RTsGplkWRIVo0pJSkPHDRyn1sTlJKh/YyIrX138 CHZki20RGzkPCBUn7yC2ixKM8YoHMIziQRV0I0S1iY8hfOMOMVatPcp7ilT6MvptKDoc tOnlrlllWICjH5gzjPU1lmFP8eHxRs1J8HmNsiET75VO3QHAEdw9qZtU5qnw3f++0AmM dHbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MqzmT66u; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si10979590pgf.136.2018.12.02.15.19.10; Sun, 02 Dec 2018 15:19:26 -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=fail header.i=@gmail.com header.s=20161025 header.b=MqzmT66u; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725813AbeLBXSh (ORCPT + 99 others); Sun, 2 Dec 2018 18:18:37 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:36325 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725785AbeLBXSh (ORCPT ); Sun, 2 Dec 2018 18:18:37 -0500 Received: by mail-pl1-f196.google.com with SMTP id g9so5469144plo.3 for ; Sun, 02 Dec 2018 15:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=P2g/iOJ2yw0tiT4S8bVNniIoflE3iGqOlA6JW1Y0pqg=; b=MqzmT66uJWHhS1jJPIO7lxCyaQcafYhFgrJCsiSAGoFxwk8wz7vlFhMezGHzgegdl6 lpnfowlMfrKUDkGY7MgCyjuFzRwkPZlMJJsoTEVXXr+yTAO8Owey1z5AiKV3mbSPJgfp QltrpujgL7ZFKYhE03d/6Ex7VDpAKN1uJlpg9K+SuJo75o0cSTz4NcimgDak3L/78EPQ gXHbbb+u8j12qwr2Y3jbwEisCRlVNpHdJzEowUNocZQpVXRjM/aw40LeVCh8zRV+rxnQ asB7Eb/jK3UJhYcUxwkAau8KkSFz9wvFLaZ8HLhBSfb3qYHjFdd6X2xEx75RfPzYJG/J wsxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=P2g/iOJ2yw0tiT4S8bVNniIoflE3iGqOlA6JW1Y0pqg=; b=R/V3vgWJKHcMaF/NS813y8NKRWs6DSL1zD3BT9z1y9uJxZ15hPrQqZlaZ8z5J0tsJY NFgAmzBcJi62i3P34r/jifFhDso1bnONHRWjkUlkebakI8L8WgpvvkIPFRrZYPi+qqib yKDXIERn/Rni4VEjxeO3FpxzRwyJZ/1VQnIN5ROghY5f532R75jwdLen5yTeLEV8DudP dC8SfkwQml+sBIaNePmF1+SRmYaNErmLL5v1LPHEqXriQwXnmdv2jPKNKzBaleILeRw1 45d5Ygl86OSfubMbVlTFKTMAhYcrGrp0rheSefbNKEfRJEN7DyoS9tc31KmAHasOZ2Vi w4WQ== X-Gm-Message-State: AA+aEWZBfnsxIZepalwJEQLHL4tsybMtkldHW0YN3Wxv8HjQ5zE+7GxU zOeJaYyfaaodveIrNSzjb98= X-Received: by 2002:a17:902:9a8b:: with SMTP id w11mr13436215plp.121.1543792714258; Sun, 02 Dec 2018 15:18:34 -0800 (PST) Received: from google.com ([2401:fa00:d:0:98f1:8b3d:1f37:3e8]) by smtp.gmail.com with ESMTPSA id r83sm21439668pfc.115.2018.12.02.15.18.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 02 Dec 2018 15:18:33 -0800 (PST) Date: Mon, 3 Dec 2018 08:18:29 +0900 From: Minchan Kim To: Sergey Senozhatsky Cc: Andrew Morton , LKML , Joey Pabalinas Subject: Re: [PATCH v3 7/7] zram: writeback throttle Message-ID: <20181202231829.GA21560@google.com> References: <20181127055429.251614-1-minchan@kernel.org> <20181127055429.251614-8-minchan@kernel.org> <20181129022358.GA6379@jagdpanzerIV> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181129022358.GA6379@jagdpanzerIV> User-Agent: Mutt/1.10.1+60 (6df12dc1) (2018-08-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 11:23:58AM +0900, Sergey Senozhatsky wrote: > On (11/27/18 14:54), Minchan Kim wrote: > > diff --git a/Documentation/ABI/testing/sysfs-block-zram b/Documentation/ABI/testing/sysfs-block-zram > > index 65fc33b2f53b..9d2339a485c8 100644 > > --- a/Documentation/ABI/testing/sysfs-block-zram > > +++ b/Documentation/ABI/testing/sysfs-block-zram > > @@ -121,3 +121,12 @@ Contact: Minchan Kim > > The bd_stat file is read-only and represents backing device's > > statistics (bd_count, bd_reads, bd_writes) in a format > > similar to block layer statistics file format. > > + > > +What: /sys/block/zram/writeback_limit > > +Date: November 2018 > > +Contact: Minchan Kim > > +Description: > > + The writeback_limit file is read-write and specifies the maximum > > + amount of writeback ZRAM can do. The limit could be changed > > + in run time and "0" means disable the limit. > > + No limit is the initial state. > > diff --git a/Documentation/blockdev/zram.txt b/Documentation/blockdev/zram.txt > > index 906df97527a7..64b61925e475 100644 > > --- a/Documentation/blockdev/zram.txt > > +++ b/Documentation/blockdev/zram.txt > > @@ -164,6 +164,8 @@ reset WO trigger device reset > > mem_used_max WO reset the `mem_used_max' counter (see later) > > mem_limit WO specifies the maximum amount of memory ZRAM can use > > to store the compressed data > > +writeback_limit WO specifies the maximum amount of write IO zram can > > + write out to backing device as 4KB unit > ^^^^ > page size units? Per andrew's comment: https://lkml.org/lkml/2018/11/27/156 I need to fix it to represent 4K always.