Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755849Ab3JIRQ2 (ORCPT ); Wed, 9 Oct 2013 13:16:28 -0400 Received: from mail-oa0-f43.google.com ([209.85.219.43]:38412 "EHLO mail-oa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754112Ab3JIRQ1 (ORCPT ); Wed, 9 Oct 2013 13:16:27 -0400 Date: Wed, 9 Oct 2013 12:16:17 -0500 From: Seth Jennings To: Krzysztof Kozlowski Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Bob Liu , Mel Gorman , Bartlomiej Zolnierkiewicz , Marek Szyprowski , Tomasz Stanislawski , Kyungmin Park , Dave Hansen , Minchan Kim Subject: Re: [PATCH v3 5/6] zswap: replace tree in zswap with radix tree in zbud Message-ID: <20131009171617.GA21057@variantweb.net> References: <1381238980-2491-1-git-send-email-k.kozlowski@samsung.com> <1381238980-2491-6-git-send-email-k.kozlowski@samsung.com> <20131009153022.GB5406@variantweb.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131009153022.GB5406@variantweb.net> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1064 Lines: 20 On Wed, Oct 09, 2013 at 10:30:22AM -0500, Seth Jennings wrote: > In my approach, I was also looking at allowing the zbud pools to use > HIGHMEM pages, since the handle is no longer an address. This requires > the pages that are being mapped to be kmapped (atomic) which will > disable preemption. This isn't an additional overhead since the > map/unmap corresponds with a compress/decompress operation at the zswap > level which uses per-cpu variables that disable preemption already. On second though, lets not mess with the HIGHMEM page support for now. Turns out it is tricker than I thought since the unbuddied lists are linked through the zbud header stored in the page. But we can still disable preemption to allow per-cpu tracking of the current mapping and avoid a lookup (and races) in zbud_unmap(). Seth -- 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/