Received: by 10.223.164.202 with SMTP id h10csp4879742wrb; Wed, 29 Nov 2017 13:30:51 -0800 (PST) X-Google-Smtp-Source: AGs4zMapcHFoENXPezDpr0Ppk9oOmppNbK1QA2AG2AdaQ1kkIwEymtg5I43sE7sQ5IzYZF2ws6XC X-Received: by 10.98.57.131 with SMTP id u3mr4337422pfj.7.1511991051781; Wed, 29 Nov 2017 13:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511991051; cv=none; d=google.com; s=arc-20160816; b=mZFKaurJjKbNl6yb3ClGipd0LgDuPnJlgiceOwkoPwTZXOP9jDl1lP0wijBYFGsL8k qXfet5AISIjpxqsYgxgnLaXZGHyUphvKCX+tuxqyg8XQcUzJMqIl9MTRcOkP6XFZu/rt BeLoKYrpoZkmhHGQ2Op359E4yDJoDTIwMqZPfX5uWT9LXnCCLM0+alJadLVO0ocoUHO/ 439nTcaYuMH2gBJjFecZQhJfnQ0HpHKKxKLPbXqdkivsh2lioVkRsFKGkmhsxqk+8iX4 EmDo/dQxNt09hnARU+S6iR1GfIjrDJ933PlcAFMA2KpGr+//pC3gatkTaA2VOs9aop75 twfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=05ER7LP6YHx/iPEf8rRckm/EIJ7lLdt+bUMcdrqTA08=; b=m1skgIk4NwsQ4cyFV5NrN9fv+UqTVbp6zq76Baot/e4YG991gwxWlozqZi7ySCiSis ifSmgPdoUNuG3xfGWv2OPC0gDwDOppd5Mpae1Vdci4bfeP6dSzxtKcKbMw3LZwJRr3m5 LWZftR+br2WJRcUkkxII4qz4tfHUQ7mIAFTvHIU7rO2EdZRf6PMqCV4HtGh9VMdRFiSj dLoFVzEQTwr3wqrVLkfiIWkallCB+E4OPY4ryNCZ9m6pM164ZxVuFHewq+HuA9FO8mut esZa+6m6XTPLoyo4XmJfwBsLlAzUcHtptJLQ8CEotZQRJRAi6pLzKkQ8wB9TYyQ9s7r2 WnWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=dIi1xS8m; 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 ay2si1818344plb.830.2017.11.29.13.30.37; Wed, 29 Nov 2017 13:30:51 -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=dIi1xS8m; 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 S1751982AbdK2VaZ (ORCPT + 99 others); Wed, 29 Nov 2017 16:30:25 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:39245 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751077AbdK2VaY (ORCPT ); Wed, 29 Nov 2017 16:30:24 -0500 Received: by mail-io0-f193.google.com with SMTP id h12so5268445iof.6 for ; Wed, 29 Nov 2017 13:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=05ER7LP6YHx/iPEf8rRckm/EIJ7lLdt+bUMcdrqTA08=; b=dIi1xS8mlxqowPYoqsPdrQSlTz22TkalHhaXHx2cEakW4XaHaeAmK4TeK/yTzhe/fN G6b1e3+nB/s0Wx+jKskCRQvNVfCQHUyhKiN1XDvFkmlj0GHwb3rgYvgPzQYPRQC+RLxo T1ejiW20wAIgLFADK5ifgDi3xM1jDiFR98scnLRVAanCpCkEFl9jJJxZFSxqaCW7rTH3 YnGy53rYKtdyVJVSSR7nFYJbxlleBwxLRegvykRvJkLwQkjHQsTttykI+mrRbVnnkc8G XZmkG+DUww40ACsauEcbeO7I7pDkMg/YU1BDaPnWJjW3gK2aOLUW/qOTXwWUTOrltxUE 8bZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=05ER7LP6YHx/iPEf8rRckm/EIJ7lLdt+bUMcdrqTA08=; b=XWMume4wJSi1Ab4kMxNqfr62ewtKDcW1QDklrl1e4rgktzORbVkSk04c+TFQ+2uwSq W5zjMwhdpO2/3B+qwQ+qHVYXzX5SyZ8mjV6cBF8mxWzoqhL84VqK+Gb1fagGo1iZqnF8 g0fnsrw10m2woyhH8M3ME6hvJ8KSqRhhz+B6Zl+nPaX8WHv8P+2DZeQc9q5xHSFTQmfQ tJMlK0/DJAkeEN40mRcTqSdyc+mG0g+B//oserEZIQtMogLVlZREaEghXrnWUrZhEKfG OAABsXuAh0f3LRz1WGYxziQQxJiI12RaXio09snk99tg+CVCl0BJP7535cDECZlUOzDj gORQ== X-Gm-Message-State: AJaThX4T5SttyLr53szZPIJnSGholwcmGBlN8pie5Nc+IpPS3GA10T9K Rp0T+cHh0ZUtsWdsOVJyiRk0bqq1nQppyOOBVwqZ+m8C X-Received: by 10.107.139.69 with SMTP id n66mr5124628iod.6.1511991023337; Wed, 29 Nov 2017 13:30:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.152.212 with HTTP; Wed, 29 Nov 2017 13:29:42 -0800 (PST) In-Reply-To: <20171129153437epcms5p64b04efa370cc42bb0f9e5677e298704e@epcms5p6> References: <20171018104832epcms5p1b2232e2236258de3d03d1344dde9fce0@epcms5p1> <20171120154648.6c2f96804c4c1668bd8d572a@linux-foundation.org> <20171129153437epcms5p64b04efa370cc42bb0f9e5677e298704e@epcms5p6> From: Dan Streetman Date: Wed, 29 Nov 2017 16:29:42 -0500 X-Google-Sender-Auth: RO55dbaEsZN-XUq7yAIXmbq9ADs Message-ID: Subject: Re: [PATCH] zswap: Update with same-value filled page feature To: Srividya Desireddy Cc: "sjenning@redhat.com" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Dinakar Reddy Pathireddy , RAJIB BASU , Srikanth Mandalapu , SHARAN ALLUR , JUHUN KIM , "srividya.desireddy@gmail.com" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 29, 2017 at 10:34 AM, Srividya Desireddy wrote: > From: Srividya Desireddy > Date: Wed, 29 Nov 2017 20:23:15 +0530 > Subject: [PATCH] zswap: Update with same-value filled page feature > > Updated zswap document with details on same-value filled > pages identification feature. > The usage of zswap.same_filled_pages_enabled module parameter > is explained. > > Signed-off-by: Srividya Desireddy > --- > Documentation/vm/zswap.txt | 22 +++++++++++++++++++++- > 1 file changed, 21 insertions(+), 1 deletion(-) > > diff --git a/Documentation/vm/zswap.txt b/Documentation/vm/zswap.txt > index 89fff7d..cc015b5 100644 > --- a/Documentation/vm/zswap.txt > +++ b/Documentation/vm/zswap.txt > @@ -98,5 +98,25 @@ request is made for a page in an old zpool, it is uncompressed using its > original compressor. Once all pages are removed from an old zpool, the zpool > and its compressor are freed. > > +Some of the pages in zswap are same-value filled pages (i.e. contents of the > +page have same value or repetitive pattern). These pages include zero-filled > +pages and they are handled differently. During store operation, a page is > +checked if it is a same-value filled page before compressing it. If true, the > +compressed length of the page is set to zero and the pattern or same-filled > +value is stored. > + > +Same-value filled pages identification feature is enabled by default and can be > +disabled at boot time by setting the "same_filled_pages_enabled" attribute to 0, > +e.g. zswap.same_filled_pages_enabled=0. It can also be enabled and disabled at > +runtime using the sysfs "same_filled_pages_enabled" attribute, e.g. > + > +echo 1 > /sys/module/zswap/parameters/same_filled_pages_enabled > + > +When zswap same-filled page identification is disabled at runtime, it will stop > +checking for the same-value filled pages during store operation. However, the > +existing pages which are marked as same-value filled pages will be loaded or > +invalidated. On first read I thought you were saying existing pages were immediately loaded or invalidated, which of course is not the case. Can you update the sentence to clarify existing pages are not modified by disabling the param, like: "However, the existing pages which are marked as same-value filled pages remain stored unchanged until they are either loaded or invalidated." except for that the doc update looks good. > + > A debugfs interface is provided for various statistic about pool size, number > -of pages stored, and various counters for the reasons pages are rejected. > +of pages stored, same-value filled pages and various counters for the reasons > +pages are rejected. > -- > 2.7.4 > > -- > To unsubscribe, send a message with 'unsubscribe linux-mm' in > the body to majordomo@kvack.org. For more info on Linux MM, > see: http://www.linux-mm.org/ . > Don't email: email@kvack.org From 1585415206713933955@xxx Wed Nov 29 15:36:03 +0000 2017 X-GM-THRID: 1585415206713933955 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread