public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Chubb <peter@chubb.wattle.id.au>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] mkswap fails to create large swap partitions on ia64 [patch]
Date: Wed, 18 Jun 2003 03:30:24 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590701905277@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590701905268@msgid-missing>

>>>>> "Peter" = Peter Chubb <peter@chubb.wattle.id.au> writes:

>>>>> "David" = David Mosberger <davidm@napali.hpl.hp.com> writes:
>>>>> On Thu, 14 Mar 2002 10:54:21 +1100, Peter Chubb <peter@chubb.wattle.id.au> 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


      parent reply	other threads:[~2003-06-18  3:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-13 23:54 [Linux-ia64] mkswap fails to create large swap partitions on ia64 [patch] Peter Chubb
2002-03-19 17:20 ` [Linux-ia64] mkswap fails to create large swap partitions on Van Maren, Kevin
2002-03-20  0:08 ` Peter Chubb
2003-06-18  3:30 ` Peter Chubb [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-ia64-105590701905277@msgid-missing \
    --to=peter@chubb.wattle.id.au \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox