From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Chubb Date: Wed, 18 Jun 2003 03:30:24 +0000 Subject: Re: [Linux-ia64] mkswap fails to create large swap partitions on ia64 [patch] Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org >>>>> "Peter" = Peter Chubb writes: >>>>> "David" = David Mosberger writes: >>>>> On Thu, 14 Mar 2002 10:54:21 +1100, Peter Chubb said: David> One question though: are you sure about the following line? Peter> #define V1_MAX_PAGES ((1 << 24) - 1) I've just traced through the code -- the limit should be the lesser of (1<<54)-1 and the number of shorts that can be vmalloced in one call, in the call p->swap_map = vmalloc(maxpages * sizeof(short)) in swapfiles.c near line 1029 (2.4.18) Unfortunately, I'm not sure (yet) what the maximum such number is. Peter C