Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1801050imu; Wed, 28 Nov 2018 15:38:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/XUDBRycpT3f8TkjV0VRW4WhrwHsnzyUMv8Z4FUCynhfl52TXCyGac5RI7a1il9ggAT0Zqk X-Received: by 2002:a17:902:1681:: with SMTP id h1mr39319247plh.129.1543448285523; Wed, 28 Nov 2018 15:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543448285; cv=none; d=google.com; s=arc-20160816; b=vplbazbuDZ51Ee0np5EVhfGu8SktkxhglS5l/BD5/1IpPzCyXLqZv7iPZx73J602j/ nUfVQB16eLDsnXDO4kcdhUZhxXTnF6gqxijwT/gYfCRup04s1lRX9kXX6vDz2qfzk556 2hYkop2a/uoKynWBOkRR6O9g2qUPaq9Cn5kglpTQemQ7THzII0nobvypLeIuR7ZdK1nP v2eAWz4kwerUHLGz+pdRsg73QsHfgLOjqNZ5aIfLtuMUKziZV1RTx0DYGMq+4aEpckS/ YJn5kKxgbOfUadfTgz2X0TxZzfdxQU8bGWVGsyIFJG0LWfleGB+aRvBm4420EQuJpOLN l1gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=RzfTvdK6/FKtO81WpdsVQW84erwhs+Cq2W1YkwUKh9o=; b=o4i7CtRGWqOSeS7/bqi3pHv2KE26nCcjZ0vtaCUfKMlA9mtFlw9x02aqNLay82Pdzh 5UUBF6xKsXqfGXBuZlNmDgfBf16DadGTe0M3DM4jCB+0I37PJW+ibufj4G4EJYY9a7Qt l8sHuWmmO8KuhnhS//YycIqoE6ULRQtuUQQL8Y2dE1MP8TidurWMdX2Znv+KJqPRniOb Gs0LMpYlq273fpGFyKbY9Tm6pO/fN4FTO5x4rQNgsrZj+o7dwiwEjegwPrhvMTAs1tk6 c/gcwhxqQWhJ8sm9dES+gdClZkQaGsCfMPm7rRbK34XjfGZ6E0P1Jv2+HS+FTao+lKB8 D0rA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62si20887pgb.298.2018.11.28.15.37.50; Wed, 28 Nov 2018 15:38:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726957AbeK2KjU (ORCPT + 99 others); Thu, 29 Nov 2018 05:39:20 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40482 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbeK2KjU (ORCPT ); Thu, 29 Nov 2018 05:39:20 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E8EDAB4A; Wed, 28 Nov 2018 23:36:00 +0000 (UTC) Date: Wed, 28 Nov 2018 15:35:59 -0800 From: Andrew Morton To: Minchan Kim Cc: LKML , Sergey Senozhatsky , Joey Pabalinas Subject: Re: [PATCH v3 5/7] zram: support idle/huge page writeback Message-Id: <20181128153559.f6645b98a7033b6f6f6b0fbc@linux-foundation.org> In-Reply-To: <20181127055429.251614-6-minchan@kernel.org> References: <20181127055429.251614-1-minchan@kernel.org> <20181127055429.251614-6-minchan@kernel.org> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Nov 2018 14:54:27 +0900 Minchan Kim wrote: > This patch supports new feature "zram idle/huge page writeback". > On zram-swap usecase, zram has usually many idle/huge swap pages. > It's pointless to keep in memory(ie, zram). > > To solve the problem, this feature introduces idle/huge page > writeback to backing device so the goal is to save more memory > space on embedded system. > > Normal sequence to use idle/huge page writeback feature is as follows, > > while (1) { > # mark allocated zram slot to idle > echo all > /sys/block/zram0/idle > # leave system working for several hours > # Unless there is no access for some blocks on zram, > # they are still IDLE marked pages. > > echo "idle" > /sys/block/zram0/writeback > or/and > echo "huge" > /sys/block/zram0/writeback > # write the IDLE or/and huge marked slot into backing device > # and free the memory. > } > > By per discussion: > https://lore.kernel.org/lkml/20181122065926.GG3441@jagdpanzerIV/T/#u, > > This patch removes direct incommpressibe page writeback feature > (d2afd25114f4, zram: write incompressible pages to backing device) > so we could regard it as regression because incompressible pages > doesn't go to backing storage automatically. Instead, usre should > do it via "echo huge" > /sys/block/zram/writeback" manually. I'm not in any position to determine the regression risk here. Why is that feature being removed, anyway? > If we hear some regression, we could restore the function. Why not do that now?