Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Scott Laird <scott@laird.com>
Subject: Re: upper limits of linux/alpha
Date: Thu, 12 Dec 1996 12:20:02 -0800	[thread overview]
Message-ID: <52a3cb5fc045300884d4e5bf836c612d.axp-list@archive.invalid> (raw)

In message <Pine.LNX.3.93.961212101822.30990E-100000@redhat.com>, Erik Troan wr
ites:
>On Wed, 11 Dec 1996, Maurice Hilarius wrote:
>
>> I have created and used a single 500MB swapfile on an EB164. It works fine.
>> The machine has 256MB RAM.
>
>The limit on swap file size for Linux is based on the page size, right? 
>Wouldn't that mean that swap files could be twice as big on the Alpha
>as on Intel?

Actually, I think it should be based on the *square* of the page size
(the limit is a page worth of references to other pages), so 512MB
makes more sense than 256MB.  I've got about a gig free on my UDB's
/usr filesystem, so I guess I can try building a 600 MB swap file... 

[root@envy src]# ls -l tmpswap
-rw-r--r--   1 scott    users    629145600 Dec 12 16:17 tmpswap
[root@envy src]# /sbin/mkswap tmpswap
/sbin/mkswap: warning: truncating swap area to 523648kB
Setting up swapspace, size = 536207360 bytes
[root@envy src]# free
             total       used       free     shared    buffers     cached
Mem:         21408      21120        288       6256       8960       2416
-/+ buffers:             9744      11664
Swap:       139232      12256     126976
[root@envy src]# /sbin/swapon tmpswap
[root@envy src]# free
             total       used       free     shared    buffers     cached
Mem:         21408      20920        488       5672       8928       2464
-/+ buffers:             9528      11880
Swap:       662872      12240     650632

I guess that answers the question -- there's a ~512 MB limit on
swapfiles.  Like someone else said, there's a #define in the kernel
that limits you to 8 or so swap spaces at a time, but I think you can
just change that and recompile.

Scott

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

             reply	other threads:[~1996-12-12 20:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-12-12 20:20 Scott Laird [this message]
     [not found] <19617.199612121935@olib>
1997-01-13 20:16 ` upper limits of linux/alpha Erik Troan
     [not found] <32B04E0B.345B@bob.usuf2.usuhs.mil>
1996-12-13 13:03 ` Toon van der Pas
  -- strict thread matches above, loose matches on Subject: below --
1996-12-13  9:06 David A Rusling
     [not found] <1.5.4.32.19961213032223.006db074@tiger.avana.net>
1996-12-13  4:13 ` Joshua Snyder
1996-12-13  3:22 Michael W. Chalkley
     [not found] <Pine.LNX.3.93.961212101822.30990E-100000@redhat.com>
1996-12-12 19:35 ` Martin Radford
1996-12-12 19:24 Maurice Hilarius
1996-12-12 18:25 Robert Williams
     [not found] <32B0152D.5656@bob.usuf2.usuhs.mil>
1996-12-12 16:39 ` Joshua Snyder
     [not found] <199612120645.XAA04346@ellpspace.math.ualberta.ca>
1996-12-12 15:19 ` Erik Troan
1996-12-12 14:22 Robert Williams
1996-12-12  6:45 Maurice Hilarius
     [not found] <199612112322.SAA23897@nordica.CS.Princeton.EDU>
1996-12-11 23:59 ` Andreas Kostyrka
1996-12-12  0:33 ` Richard Henderson
1996-12-13 12:51   ` Toon van der Pas
1996-12-12  0:39 ` Jim Nance
1996-12-11 23:22 Eric Sven Ristad
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox