[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130129150350.d0b51ca9.akpm@linux-foundation.org>
Date: Tue, 29 Jan 2013 15:03:50 -0800
From: Andrew Morton <akpm@...ux-foundation.org>
To: Seth Jennings <sjenning@...ux.vnet.ibm.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Nitin Gupta <ngupta@...are.org>,
Minchan Kim <minchan@...nel.org>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Dan Magenheimer <dan.magenheimer@...cle.com>,
Robert Jennings <rcj@...ux.vnet.ibm.com>,
Jenifer Hopper <jhopper@...ibm.com>,
Mel Gorman <mgorman@...e.de>,
Johannes Weiner <jweiner@...hat.com>,
Rik van Riel <riel@...hat.com>,
Larry Woodman <lwoodman@...hat.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Dave Hansen <dave@...ux.vnet.ibm.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, devel@...verdev.osuosl.org
Subject: Re: [PATCHv4 6/7] zswap: add flushing support
On Tue, 29 Jan 2013 15:40:26 -0600
Seth Jennings <sjenning@...ux.vnet.ibm.com> wrote:
> This patchset adds support for flush pages out of the compressed
> pool to the swap device
I do so hate that word "flush". Sometimes it means "writeback", other
times it means "invalidate". And perhaps it means "copy elsewhere then
reclaim".
Please describe with great specificity what this patch actually does
with pages, and why it does it. And where the compression factors into
this.
The code appears to take a compressed page, decompress it into
swapcache via some means. And then, for unexplained reasons, it starts
writeback of that swapcache page.
In zswap_flush_entry() there is a comment "page is already in the swap
cache, ignore for now". This is very interesting. How and why does
this come about? Does it imply that there are two copies of the same
data floating around? If so, how come?
Preferably all the above would be understandable by reading mm/zswap.c.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists