Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1932635imu; Wed, 28 Nov 2018 18:25:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/UKXwRuzKQaH7+hZJHlnPmeggyJpDj46AWZGPCMXDp9DGnaPHEjtVX3SGh2oItPO3io84J6 X-Received: by 2002:a17:902:bc81:: with SMTP id bb1mr20288445plb.223.1543458357627; Wed, 28 Nov 2018 18:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543458357; cv=none; d=google.com; s=arc-20160816; b=ZTKkXCFfY1gjd7/CFZSWVhQ6+f8n74Qt//PGjLlWwq3Ydvdn1qSatABKDvblJh4ZQk EP50RgQDoTkyAgPEaEIfpueyyIID1vDwmA/RcOJSi6pretjyPZm6CLpBbcnY4e4Cnf5D xD68ZW1kmfAoJKjUHcVM+xzaJwSv5chu9MWGeDgecmbsETH6iaJbkoJOD5O+6tP17wZ5 8Cd9I6NTwG//xXKfF7l8vfr3bvnwmKCwAEAfVHSECLbzSfx2CsIjG0IhYwPqIwxdfbLS w/iimsPJRl16gp7ma/H526Fue4s3UUZyjs8oZYs9nAitvx9TRMrcRZJFdTgma4tqnArL fT6w== 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=+Sh8fZmx9OhO97rIfd/9wjxe3+5Mrq/e+esPNgOqo+E=; b=y/W3Hft2XHelN1ZT2K9MvP1C6c+xp7cVnPQ2alQlfMAuQOiYZJ1aQRUOAjjVLwhCkX NxlXBAOGGyPNq8oZw4n1x18B7+jr2G0CXBsncjYZVnJ15aHZDTZrb1HUYzDCOvIijXIH 9uEIajNIlw4fPVq+FZMAMbfLVfc7T+Fn2KgJU2kK5LaCaKo+sDBNr9gg0jKGQwKPrPLa 6UOaW+5dvak/epaBgyrBCz5NnBNQlA8b4tPyYSbxGug4Q/nv865rJgmO18NFqosAe3AQ TV0/NI/GZDUJY3fgx72PLpKk0Jp91fI+rQniS3W/ALMNBlJ6Y5/la2q3tv4BDcZh499B d5ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tD5kymCe; 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 w185si623072pfw.122.2018.11.28.18.25.42; Wed, 28 Nov 2018 18:25:57 -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=tD5kymCe; 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 S1727569AbeK2N1r (ORCPT + 99 others); Thu, 29 Nov 2018 08:27:47 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:34134 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbeK2N1r (ORCPT ); Thu, 29 Nov 2018 08:27:47 -0500 Received: by mail-pl1-f194.google.com with SMTP id w4so229261plz.1 for ; Wed, 28 Nov 2018 18:24:03 -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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+Sh8fZmx9OhO97rIfd/9wjxe3+5Mrq/e+esPNgOqo+E=; b=tD5kymCenCDTerTgQWjbHxfnEBy4WXt4GKTyOLm5vf3Rb71bN3I16kKipHtg7AD93C yOPh9sE6yu/rBRgnfTJbE9vQBej4Xfy6DHjmucDl2xgkt3llSrp+GlyPWNy+8xVaPubE xMUQ5g1fa9OcIgpsg4g8aZbuKjHt2yZ75T4agxw/43N4QG1h3X0nOaOSXEWplXmx4U2F 4e2Tc/MVF33v7xAf/XzMCABDOcrvDIFDSJdYACT/DSNfd6kltaTH7CzoY+CzrvxCGdRG mQ7wQ620J6qEfPxukgutOqcmYht3sYQ1Qxnzo7h7YDsgSomXI9R1VDDd8/aPNrzAVAHs Hf6w== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+Sh8fZmx9OhO97rIfd/9wjxe3+5Mrq/e+esPNgOqo+E=; b=Y6R9FYt/H6W4cvuGOIyjFvHzt9s/nbi9eYXcUEJQYO1yZ0+O/F0Lm01zEiwM1+nmpH TdhZaXoYDf6gTknrZXublIK6ukg0+o7/NFzqHcg6Le+28eNxSfBHUG263JkKCOpZiyma A6pgJI6vDoInI6OCB+vfBIoVAB0O159xbretKCsnwYBFisEEo8IRmV0TCE4ozLN2b4Vk fh0OVTCSjBKNtSIVl8opQp4SqjNNn6oL2J2YXesSgP48HWiHLSBYX+G7jrQA17FOkbn/ CPQAep8gqCda4qm1opU6usYUrPbFjKRybO6D1RHY8xBzjXFCzSd4Y+5E7daFmnj8dWCR Iksw== X-Gm-Message-State: AA+aEWYYqtCw2KGIgABY/qy3Ogkvdy/r+r82W4BFR29yrBHPDOwj3Qe1 xbh9dTGd4AUHYCWVPFxgD4E= X-Received: by 2002:a17:902:6ac3:: with SMTP id i3-v6mr39552163plt.153.1543458243481; Wed, 28 Nov 2018 18:24:03 -0800 (PST) Received: from localhost ([175.223.15.27]) by smtp.gmail.com with ESMTPSA id y184sm288188pgd.71.2018.11.28.18.24.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Nov 2018 18:24:02 -0800 (PST) Date: Thu, 29 Nov 2018 11:23:58 +0900 From: Sergey Senozhatsky To: Minchan Kim Cc: Andrew Morton , LKML , Sergey Senozhatsky , Joey Pabalinas Subject: Re: [PATCH v3 7/7] zram: writeback throttle Message-ID: <20181129022358.GA6379@jagdpanzerIV> References: <20181127055429.251614-1-minchan@kernel.org> <20181127055429.251614-8-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181127055429.251614-8-minchan@kernel.org> User-Agent: Mutt/1.11.0 (2018-11-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -ss