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
Date: Wed, 20 Mar 2002 00:08:49 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590701905305@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590701905268@msgid-missing>
>>>>> "Kevin" = Van Maren <Van> writes:
Kevin> So we're okay until about a couple terrabytes is all, until we
Kevin> change all the index variables to "long". :-) But even one
Kevin> terrabyte is 16x 64GB.
I'm currently looking at some other problems which would also limit
the size of a single swap file/device to 1TB --- the genhd code limits
the size of a partition to 2^31-1 blocks, where a block is *known* to
be 512 bytes. (The 512 number is so embedded that's it's going to be a
major effort to remove, not only from the code, but from the brains of
the programmers... so the only thing we can do is change the size of
the index variables, and all the interfaces that use them).
So even if swap could be specified bigger than 1TB, you couldn't
create a volume that big to put it on (even with LVM).
Kevin> Also, the kernel should probably try to use "some" of the swap
Kevin> space if it can't vmalloc storage for the whole thing -- maybe
Kevin> cut p->max in half until the vmalloc succeeds? I see the case
Kevin> where you are low on memory and can't add more swap because you
Kevin> can't allocate enough memory and the only swapfile you have is
Kevin> 100GB...
Interesting idea... I'll think about it.
Peter C
--
Working on the Gelato project
http://www.gelato.org/
http://www.gelato.unsw.edu.au/ (coming soon!)
next prev parent reply other threads:[~2002-03-20 0:08 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 [this message]
2003-06-18 3:30 ` [Linux-ia64] mkswap fails to create large swap partitions on ia64 [patch] Peter Chubb
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-105590701905305@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