linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andries Brouwer <aebr@win.tue.nl>
To: Justin Piszcz <jpiszcz@lucidpixels.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Support for > 2GB swap partitions?
Date: Mon, 10 Jan 2005 03:20:19 +0100	[thread overview]
Message-ID: <20050110022019.GL6052@pclin040.win.tue.nl> (raw)
In-Reply-To: <Pine.LNX.4.61.0501091933090.29064@p500>

On Sun, Jan 09, 2005 at 07:34:38PM -0500, Justin Piszcz wrote:

> I remember reading in the past that > 2GB swap partitions were supported 
> in Linux as of recent util-linux packages with a 2.6 kernel or am I wrong?
> 
> # fdisk -l
> /dev/sda2              17         526     4096575   82  Linux swap
> 
> # top
> Mem:   2075192k total,  2062540k used,    12652k free,       64k buffers
> 
> Only recognizes 2GB of 4GB?

A swap partition has a swap header that specifies its size
(and possibly what bad blocks exist on the swap partition).
Thus, if you did mkswap long ago, the useful size will not
have changed. Do swapoff; mkswap; swapon and mkswap will
tell you how large a swap partition it made, and swapon
will cause the kernel to say how much swap space was added.

  parent reply	other threads:[~2005-01-10  2:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-10  0:34 Support for > 2GB swap partitions? Justin Piszcz
2005-01-10  0:47 ` Grzegorz Kulewski
2005-01-10 10:09   ` Justin Piszcz
2005-01-10 14:59     ` Nikola Ciprich
2005-01-10  2:20 ` Andries Brouwer [this message]
2005-01-10 10:10   ` Justin Piszcz

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=20050110022019.GL6052@pclin040.win.tue.nl \
    --to=aebr@win.tue.nl \
    --cc=jpiszcz@lucidpixels.com \
    --cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).