Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756252AbaAWAQz (ORCPT ); Wed, 22 Jan 2014 19:16:55 -0500 Received: from LGEMRELSE6Q.lge.com ([156.147.1.121]:45952 "EHLO LGEMRELSE6Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753290AbaAWAQw (ORCPT ); Wed, 22 Jan 2014 19:16:52 -0500 X-AuditID: 9c930179-b7c84ae000000e38-5e-52e05f72ff33 Date: Thu, 23 Jan 2014 09:18:06 +0900 From: Minchan Kim To: Andrew Morton Cc: Dan Streetman , Seth Jennings , Linux-MM , linux-kernel , Bob Liu , Weijie Yang , Shirish Pargaonkar , Mel Gorman Subject: Re: [PATCH] mm/zswap: add writethrough option Message-ID: <20140123001806.GF31230@bbox> References: <1387459407-29342-1-git-send-email-ddstreet@ieee.org> <20140114001115.GU1992@bbox> <20140115054208.GL1992@bbox> <20140122123358.a65c42605513fc8466152801@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140122123358.a65c42605513fc8466152801@linux-foundation.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello all, On Wed, Jan 22, 2014 at 12:33:58PM -0800, Andrew Morton wrote: > On Wed, 22 Jan 2014 09:19:58 -0500 Dan Streetman wrote: > > > >>> > Acutally, I really don't know how much benefit we have that in-memory > > >>> > swap overcomming to the real storage but if you want, zRAM with dm-cache > > >>> > is another option rather than invent new wheel by "just having is better". > > >>> > > >>> I'm not sure if this patch is related to the zswap vs. zram discussions. This > > >>> only adds the option of using writethrough to zswap. It's a first > > >>> step to possibly > > >>> making zswap work more efficiently using writeback and/or writethrough > > >>> depending on > > >>> the system and conditions. > > >> > > >> The patch size is small. Okay I don't want to be a party-pooper > > >> but at least, I should say my thought for Andrew to help judging. > > > > > > Sure, I'm glad to have your suggestions. > > > > To give this a bump - Andrew do you have any concerns about this > > patch? Or can you pick this up? > > I don't pay much attention to new features during the merge window, > preferring to shove them into a folder to look at later. Often they > have bitrotted by the time -rc1 comes around. > > I'm not sure that this review discussion has played out yet - is > Minchan happy? >From the beginning, zswap is for reducing swap I/O but if workingset overflows, it should write back rather than OOM with expecting a small number of writeback would make the system happy because the high memory pressure is temporal so soon most of workload would be hit in zswap without further writeback. If memory pressure continues and writeback steadily, it means zswap's benefit would be mitigated, even worse by addding comp/decomp overhead. In that case, it would be better to disable zswap, even. Dan said writethrough supporting is first step to make zswap smart but anybody didn't say further words to step into the smart and what's the *real* workload want it and what's the *real* number from that because dm-cache/zram might be a good fit. (I don't intend to argue zram VS zswap. If the concern is solved by existing solution, why should we invent new function and have maintenace cost?) so it's very hard for me to judge that we should accept and maintain it. We need blueprint for the future and make an agreement on the direction before merging this patch. But code size is not much and Seth already gave an his Ack so I don't want to hurt Dan any more(Sorry for Dan) and wasting my time so pass the decision to others(ex, Seth and Bob). If they insist on, I don't object any more. Sorry for bothering Dan. Thanks. > > Please update the changelog so that it reflects the questions Minchan > asked (any reviewer question should be regarded as an inadequacy in > either the code commenting or the changelog - people shouldn't need to > ask the programmer why he did something!) and resend for -rc1? > > -- > 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 -- Kind regards, Minchan Kim -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/