Hi,
I get the following warning when I try to add a 4 Gb swap (/dev/sda1
--->4Gb)
mkswap /dev/sda1
mkswap: warning: truncating swap area to 2097144kB
Setting up swapspace version 1, size = 2147471360 bytes
I have even tried mkswap -f /dev/sda1 4096000 , same result...
(2.4.18 #1 SMP) debian 3.0
Having a 2x2Gb swap partition or creating 2 lv 's could be a solution.
Isn't it possible to create a swap area bigger than 2Gb?
Murat YILDIZ
Atos Origin
Curiestraße 5
D-70563 Stuttgart
Tel.: +49 (0) 7 11-73 77-451
Fax: +49 (0) 7 11-73 77-550
email: Murat....@atosorigin.com
URL: <http://www.atosorigin.de/>
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Swap area is indeed limited to 2Gb. I got this too. But the received
wisdom is that "even 2Gb is far more than you'll ever need".
Pigeon
Murat
-----Ursprüngliche Nachricht-----
Von: Pigeon [mailto:jah.p...@ukonline.co.uk]
Gesendet: Montag, 19. August 2002 23:34
An: debia...@lists.debian.org
Betreff: Re: mkswap: warning: truncating swap area to 2097144kB
[Please trim replies]
On Tue, Aug 20, 2002 at 12:37:49PM +0200, Yildiz, Murat wrote:
> then the rule (don't even know if it's a rule or thesis) Swap area=Physical
> Memory x 2 is dead , or?
The 2x rule was only ever an approximation (aside from early 2.4
kernels[1]). I think the real question is 'Will I ever have more than
1GB of stuff loaded at once?' I know I never would, on a desktop at
least. This one's been up for 20 days, emacs, galeon, gnome, sawfish,
piles of Eterms, plus the usual miscellaneous stuff, and it's only using
~90MB of RAM (out of 128MB) and ~150MB (out of 768MB (related to [1]))
of swap.
Incidentally, what is the deal with the 'SIZE' column in top? It seems
to undergo unbounded growth for some processes, especially for Galeon
and X. It seems to fairly unrelated to the %MEM column. I had an X
crash yesterday, and things certainly felt a lot more responsive when I
started X again; it's SIZE was back down in the teens of MB.
IIRC the SIZE of X was bloated by X loading images for running programs,
but shouldn't this be garbage collected somehow?
[1] IIRC, early 2.4 kernel VM systems did not reclaim swap space when
something was swapped back in, so you eventually had a copy of your
entire RAM stored in swap. Thus, you needed at least 1xRAM swap for it
to have any effect at all, 2x for something useful.
-rob
--C7zPtVaVf+AK4Oqc
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9ZfgOvQ+DhR5zt80RAoRoAJ9m29OeNOnVWOvt+UGmjUfeRF7QswCgk2+1
U8B7mvvX/TejN7btlhmc7tU=
=3w8w
-----END PGP SIGNATURE-----
--C7zPtVaVf+AK4Oqc--