From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934761AbaGYQ73 (ORCPT ); Fri, 25 Jul 2014 12:59:29 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:48124 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932991AbaGYQ72 (ORCPT ); Fri, 25 Jul 2014 12:59:28 -0400 MIME-Version: 1.0 In-Reply-To: <20140716220040.GA16681@cerebellum.variantweb.net> References: <1401747586-11861-1-git-send-email-ddstreet@ieee.org> <1404337536-11037-1-git-send-email-ddstreet@ieee.org> <20140716205907.GA13058@cerebellum.variantweb.net> <20140716220040.GA16681@cerebellum.variantweb.net> From: Dan Streetman Date: Fri, 25 Jul 2014 12:59:05 -0400 X-Google-Sender-Auth: EFmX_88K919xW1tKDKiq7fEGSPs Message-ID: Subject: Re: [PATCHv5 0/4] mm/zpool: add common api for zswap to use zbud/zsmalloc To: Seth Jennings Cc: Andrew Morton , Bob Liu , Nitin Gupta , Hugh Dickins , Minchan Kim , Weijie Yang , Mel Gorman , Rik van Riel , Johannes Weiner , Sergey Senozhatsky , Linux-MM , linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Seth, have a chance to test yet? On Wed, Jul 16, 2014 at 6:00 PM, Seth Jennings wrote: > On Wed, Jul 16, 2014 at 05:05:45PM -0400, Dan Streetman wrote: >> On Wed, Jul 16, 2014 at 4:59 PM, Seth Jennings wrote: >> > On Mon, Jul 14, 2014 at 02:10:42PM -0400, Dan Streetman wrote: >> >> Andrew, any thoughts on this latest version of the patch set? Let me >> >> know if I missed anything or you have any other suggestions. >> >> >> >> Seth, did you get a chance to review this and/or test it out? >> > >> > I did have a chance to test it out quickly and didn't run into any >> > issues. Your patchset is already in linux-next so I'll test more from >> > there. >> >> This latest version has a few changes that Andrew requested, which >> presumably will replace the patches that are currently in -mm and >> -next; can you test with these patches instead of (or in addition to) >> what's in -next? > > Looks like Andrew just did the legwork for me to get the new patches > into mmotm. When the hit there (tomorrow?), I'll put it down and test > with that. > > Thanks, > Seth > >> >> > >> > Seth >> > >> >> >> >> >> >> >> >> On Wed, Jul 2, 2014 at 5:45 PM, Dan Streetman wrote: >> >> > In order to allow zswap users to choose between zbud and zsmalloc for >> >> > the compressed storage pool, this patch set adds a new api "zpool" that >> >> > provides an interface to both zbud and zsmalloc. This does not include >> >> > implementing shrinking in zsmalloc, which will be sent separately. >> >> > >> >> > I believe Seth originally was using zsmalloc for swap, but there were >> >> > concerns about how significant the impact of shrinking zsmalloc would >> >> > be when zswap had to start reclaiming pages. That still may be an >> >> > issue, but this at least allows users to choose themselves whether >> >> > they want a lower-density or higher-density compressed storage medium. >> >> > At least for situations where zswap reclaim is never or rarely reached, >> >> > it probably makes sense to use the higher density of zsmalloc. >> >> > >> >> > Note this patch set does not change zram to use zpool, although that >> >> > change should be possible as well. >> >> > >> >> > --- >> >> > Changes since v4 : https://lkml.org/lkml/2014/6/2/711 >> >> > -omit first patch, that removed gfp_t param from zpool_malloc() >> >> > -move function doc from zpool.h to zpool.c >> >> > -move module usage refcounting into patch that adds zpool >> >> > -add extra refcounting to prevent driver unregister if in use >> >> > -add doc clarifying concurrency usage >> >> > -make zbud/zsmalloc zpool functions static >> >> > -typo corrections >> >> > >> >> > Changes since v3 : https://lkml.org/lkml/2014/5/24/130 >> >> > -In zpool_shrink() use # pages instead of # bytes >> >> > -Add reclaimed param to zpool_shrink() to indicate to caller >> >> > # pages actually reclaimed >> >> > -move module usage counting to zpool, from zbud/zsmalloc >> >> > -update zbud_zpool_shrink() to call zbud_reclaim_page() in a >> >> > loop until requested # pages have been reclaimed (or error) >> >> > >> >> > Changes since v2 : https://lkml.org/lkml/2014/5/7/927 >> >> > -Change zpool to use driver registration instead of hardcoding >> >> > implementations >> >> > -Add module use counting in zbud/zsmalloc >> >> > >> >> > Changes since v1 https://lkml.org/lkml/2014/4/19/97 >> >> > -remove zsmalloc shrinking >> >> > -change zbud size param type from unsigned int to size_t >> >> > -remove zpool fallback creation >> >> > -zswap manually falls back to zbud if specified type fails >> >> > >> >> > >> >> > Dan Streetman (4): >> >> > mm/zbud: change zbud_alloc size type to size_t >> >> > mm/zpool: implement common zpool api to zbud/zsmalloc >> >> > mm/zpool: zbud/zsmalloc implement zpool >> >> > mm/zpool: update zswap to use zpool >> >> > >> >> > include/linux/zbud.h | 2 +- >> >> > include/linux/zpool.h | 106 +++++++++++++++ >> >> > mm/Kconfig | 43 +++--- >> >> > mm/Makefile | 1 + >> >> > mm/zbud.c | 98 +++++++++++++- >> >> > mm/zpool.c | 364 ++++++++++++++++++++++++++++++++++++++++++++++++++ >> >> > mm/zsmalloc.c | 84 ++++++++++++ >> >> > mm/zswap.c | 75 ++++++----- >> >> > 8 files changed, 722 insertions(+), 51 deletions(-) >> >> > create mode 100644 include/linux/zpool.h >> >> > create mode 100644 mm/zpool.c >> >> > >> >> > -- >> >> > 1.8.3.1 >> >> >