Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760767Ab2EKQcg (ORCPT ); Fri, 11 May 2012 12:32:36 -0400 Received: from rcsinet15.oracle.com ([148.87.113.117]:30641 "EHLO rcsinet15.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753511Ab2EKQcf convert rfc822-to-8bit (ORCPT ); Fri, 11 May 2012 12:32:35 -0400 MIME-Version: 1.0 Message-ID: <6a2c6de7-fc2f-4af7-9abd-da8698578f00@default> Date: Fri, 11 May 2012 09:31:53 -0700 (PDT) From: Dan Magenheimer To: Minchan Kim Cc: Konrad Wilk , Nitin Gupta , Greg Kroah-Hartman , Seth Jennings , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: RE: [PATCH 3/4] zsmalloc use zs_handle instead of void * References: <4FA33DF6.8060107@kernel.org> <20120509201918.GA7288@kroah.com> <4FAB21E7.7020703@kernel.org> <20120510140215.GC26152@phenom.dumpdata.com> <4FABD503.4030808@vflare.org> <4FABDA9F.1000105@linux.vnet.ibm.com> <20120510151941.GA18302@kroah.com> <4FABECF5.8040602@vflare.org> <20120510164418.GC13964@kroah.com> <4FABF9D4.8080303@vflare.org> <20120510173322.GA30481@phenom.dumpdata.com> <4FAC4E3B.3030909@kernel.org> <8473859b-42f3-4354-b5ba-fd5b8cbac22f@default> <4FAC59F6.4080503@kernel.org> In-Reply-To: <4FAC59F6.4080503@kernel.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.6 (510070) [OL 12.0.6607.1000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8BIT X-Source-IP: acsinet22.oracle.com [141.146.126.238] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1918 Lines: 44 > From: Minchan Kim [mailto:minchan@kernel.org] > Subject: Re: [PATCH 3/4] zsmalloc use zs_handle instead of void * > > Hi Dan, > > At least, zram is also primary user and it also has such mess although it's not severe than zcache. > zram->table[index].handle sometime has real (void*) handle, sometime (struct page*). > And I assume ramster you sent yesterday will be. > > I think there are already many mess and I bet it will prevent going to mainline. > Especially, handle problem is severe because it a arguement of most functions exported in zsmalloc > So, we should clean up before late, IMHO. > > > zcache is going to need more access to the internals > > of its allocator, not less. Zsmalloc is currently missing > > some important functionality that (I believe) will be > > necessary to turn zcache into an enterprise-ready, > > If you have such TODO list, could you post it? > It helps direction point of my stuff. Will you be proposing to promote zram and zsmalloc out of staging for the upcoming window? If so, I will try to make some time for this. Otherwise, I apologize, but I will need to wait a week or two (after the upcoming window) when I will have more time. > > always-on kernel feature. If it evolves to add that > > functionality, then it may no longer be able to provide > > generic abstract access... in which case generic zsmalloc > > may then have zero users in the kernel. > > Hmm, Do you want to make zsmalloc by zcache owned private allocator? I would prefer to use only zsmalloc, but it currently cannot provide all the functionality of "zbud" which is a private allocator in zcache and ramster. I'll explain more later. Dan -- 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/