Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1937870imu; Wed, 28 Nov 2018 18:32:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/VrzmvAxyxKdIwawdjbn0VjPJhsLfK3sREAbcV9pfGgUIMFceYL4GR16RQvhDXEVC0jmh46 X-Received: by 2002:a17:902:9045:: with SMTP id w5mr38022304plz.32.1543458743375; Wed, 28 Nov 2018 18:32:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543458743; cv=none; d=google.com; s=arc-20160816; b=e1hdjY+jccIOjbN9hG+Rk0oU5VpwoUbAhnnVxrgWri6qDYt2RNjlr4bDBPXN/AHDN9 RSM4hvBdEa/cBOCoosCiXo0/AW9+rLPLno6or/aITeazz6f9gAcZ97gfNaLaoyyfB1do nMcwZqgmol90RPvCdKCysyRIicsTH/3Pb7/pMxlf6B13/fzmCHioLQG7nIwnyJ+ElUPC ryd3i6fxlmvm7tDEK8XHPJge0Qu/XabrHJOyep42/kEZixbuRE8VuUlgfxVHIpmlk/as lLEO731XxuL/GPRgp/ORtfBwVHzI0VGehkT6vAF2Og/mCjEGk7iFbXsnD0JCl+mBKN+V U1hQ== 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=pK4eXGfip163PIZ52dMAz+nSksjaIRxQf9YOk5NRSCQ=; b=QhMZTCeEInZUmc/MbBkuy4/nEHsn3vuerGV11CmXuC64Bbg4znKHKT0mhjMMe6h2jy F2A8pVYISfljWNKf632p1BfzUSSkUwakMau1LaylBqg8cp9hQgy5mnrLF5AxBgwjb9Qk NoVVwGOy2HAwEsLG9Yyji8ifCB0Q/jp9kKlM4FpLq36MVxYSPPWzon+I/H1iQS3xBXPn q1UhpBvGfGU1+nWFq/qIDtBrC8aCWXJ21HaA3EVZ8oVRfo1l8npDoJUb5fDM38A900cq wq2/JkN/f5qU8X/pxfPEDSYarTWrSeMkgu9dy3jjfUR5qhtIQvXuPc0oq9yAIPVHibCu ccvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HzT6Qccf; 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 y6si543459pfi.228.2018.11.28.18.32.05; Wed, 28 Nov 2018 18:32:23 -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=HzT6Qccf; 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 S1727438AbeK2NdU (ORCPT + 99 others); Thu, 29 Nov 2018 08:33:20 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:42379 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbeK2NdT (ORCPT ); Thu, 29 Nov 2018 08:33:19 -0500 Received: by mail-pg1-f193.google.com with SMTP id d72so197324pga.9 for ; Wed, 28 Nov 2018 18:29: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:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pK4eXGfip163PIZ52dMAz+nSksjaIRxQf9YOk5NRSCQ=; b=HzT6QccfjlPMFyFyV+P+PcGMonJ2Ot8NBXw4MT653TtlLZ5t3mo+2Z2qeqeZqnC7bC eVr3SQ/6vxpt0wdvymkcrlEvqVlrUsdBOFpqYVJ3o75tWiMcPLKRMfdxd0T4yPSIeFf/ tluohF1q+zBgmnRosscpdDAty4SFdNfTqzX1eohYHl21AZ5klx1Ihbze1lNaLjlQ/Vr3 ZQGQy8kgn47Robq5WXrVM1gVrdrRPR6cqeGlBjrvOJtIrV5Qd1AXZt3E/Rk6tF96zzuw KAI7ThnTj7cLHbwQSZJHUHdpCrehS5MnZcLTD0mKv3bpNmRK4YWmI1zDRhlE5EFEVMl5 PObg== 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=pK4eXGfip163PIZ52dMAz+nSksjaIRxQf9YOk5NRSCQ=; b=eePVrmsqxNaAdTHHAmvJdXzy84Z81Phces44PWZFIdczVTGt0IuOZqIopPe4ta1P49 PXICS5lZnormskYeYgersKFNMU+kcKJKusWyI9XbKDa8KuNE4WoFryCke1gRsQ+e/TFJ ctxc9exHnYZzNxcxJYGJF65nal1bIl9dmrDTpj1B44DKVxgDjOF3GA386S7q4OzUkYeU ApIsw7Bf+y5zQ8VZ405fIsj6b+d5ZCIE3UNYhDeBk343KC9bXHk5BKSpdz9TztWKb9Xd LsWEPGIzu+RCUedGecobOh9DTljFTKz6HbmVKF/Niy01Mt8FbTGn7dZorRxh0OkeUXa/ 7Atg== X-Gm-Message-State: AGRZ1gLwlpJQXTdOIHnJhSdVXyXjnDtpwvl4JJ1l3g/t9l3MVZRxhGCK tqzWH4N5WojIWrvi67uVDgQ= X-Received: by 2002:a62:19d5:: with SMTP id 204mr40109333pfz.33.1543458575081; Wed, 28 Nov 2018 18:29:35 -0800 (PST) Received: from localhost ([175.223.15.27]) by smtp.gmail.com with ESMTPSA id l19sm441922pfi.71.2018.11.28.18.29.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Nov 2018 18:29:34 -0800 (PST) Date: Thu, 29 Nov 2018 11:29:30 +0900 From: Sergey Senozhatsky To: Minchan Kim Cc: Andrew Morton , LKML , Sergey Senozhatsky , Joey Pabalinas Subject: Re: [PATCH v3 4/7] zram: introduce ZRAM_IDLE flag Message-ID: <20181129022930.GB6379@jagdpanzerIV> References: <20181127055429.251614-1-minchan@kernel.org> <20181127055429.251614-5-minchan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181127055429.251614-5-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: > To support idle page writeback with upcoming patches, this patch > introduces a new ZRAM_IDLE flag. > > Userspace can mark zram slots as "idle" via > "echo all > /sys/block/zramX/idle" > which marks every allocated zram slot as ZRAM_IDLE. > User could see it by /sys/kernel/debug/zram/zram0/block_state. > > 300 75.033841 ...i > 301 63.806904 s..i > 302 63.806919 ..hi Hopefully we will never have a 't' block state :) -ss