From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751635AbZHZQLH (ORCPT ); Wed, 26 Aug 2009 12:11:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751293AbZHZQLH (ORCPT ); Wed, 26 Aug 2009 12:11:07 -0400 Received: from smtp4.ultrahosting.com ([74.213.175.253]:54670 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751050AbZHZQLG (ORCPT ); Wed, 26 Aug 2009 12:11:06 -0400 Date: Wed, 26 Aug 2009 12:10:24 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Nitin Gupta cc: Hugh Dickins , Pekka Enberg , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mm-cc@laptop.org Subject: Re: [PATCH 1/4] compcache: xvmalloc memory allocator In-Reply-To: <4A94358C.6060708@vflare.org> Message-ID: References: <200908241007.47910.ngupta@vflare.org> <84144f020908241033l4af09e7h9caac47d8d9b7841@mail.gmail.com> <4A92EBB4.1070101@vflare.org> <4A930313.9070404@vflare.org> <4A93FAA5.5000001@vflare.org> <4A94358C.6060708@vflare.org> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 26 Aug 2009, Nitin Gupta wrote: > I went crazy. I meant 40 bits for PFN -- not 48. This 40-bit PFN should be > sufficient for all archs. For archs where 40 + PAGE_SHIFT < MAX_PHYSMEM_BITS > ramzswap will just issue a compiler error. How about restricting the xvmalloc memory allocator to 32 bit? If I understand correctly xvmalloc main use in on 32 bit in order to be able to use HIGHMEM? From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail191.messagelabs.com (mail191.messagelabs.com [216.82.242.19]) by kanga.kvack.org (Postfix) with SMTP id E75846B004D for ; Wed, 26 Aug 2009 12:10:39 -0400 (EDT) Received: from localhost (smtp.ultrahosting.com [127.0.0.1]) by smtp.ultrahosting.com (Postfix) with ESMTP id 03B6D82CCB3 for ; Wed, 26 Aug 2009 12:11:42 -0400 (EDT) Received: from smtp.ultrahosting.com ([74.213.175.253]) by localhost (smtp.ultrahosting.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BEjZr1-wp-Y5 for ; Wed, 26 Aug 2009 12:11:37 -0400 (EDT) Received: from gentwo.org (unknown [74.213.171.31]) by smtp.ultrahosting.com (Postfix) with ESMTP id 5912782CE4A for ; Wed, 26 Aug 2009 12:11:27 -0400 (EDT) Date: Wed, 26 Aug 2009 12:10:24 -0400 (EDT) From: Christoph Lameter Subject: Re: [PATCH 1/4] compcache: xvmalloc memory allocator In-Reply-To: <4A94358C.6060708@vflare.org> Message-ID: References: <200908241007.47910.ngupta@vflare.org> <84144f020908241033l4af09e7h9caac47d8d9b7841@mail.gmail.com> <4A92EBB4.1070101@vflare.org> <4A930313.9070404@vflare.org> <4A93FAA5.5000001@vflare.org> <4A94358C.6060708@vflare.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Nitin Gupta Cc: Hugh Dickins , Pekka Enberg , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mm-cc@laptop.org List-ID: On Wed, 26 Aug 2009, Nitin Gupta wrote: > I went crazy. I meant 40 bits for PFN -- not 48. This 40-bit PFN should be > sufficient for all archs. For archs where 40 + PAGE_SHIFT < MAX_PHYSMEM_BITS > ramzswap will just issue a compiler error. How about restricting the xvmalloc memory allocator to 32 bit? If I understand correctly xvmalloc main use in on 32 bit in order to be able to use HIGHMEM? -- 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