[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SWAP or swap



On Sat, 30 May 1998, Matthew D. Myers wrote:

> Can anyone verify this.. I don't wanna waste disk space if it's not gonna be
> used.  Thanks to you George.


Assuming you are using an Intel x86 box, yeah it is 128MB.  Otherwise the
formula is as follows (from a man mkswap command)


       The MINCOUNT and MAXCOUNT values for a swap area are:

              MINCOUNT = 10 * PAGE_SIZE / 1024
              MAXCOUNT = (PAGE_SIZE - 10) * 8 * PAGE_SIZE / 1024

       For  example,  on a machine with 4kB pages (e.g., x86), we
       get:

              MINCOUNT = 10 * 4096 / 1024 = 40
              MAXCOUNT = (4096 - 10) * 8 * 4096 / 1024 = 130752

       As each block is 1kB large, the swap area in this  example
       could  have a size that is anywhere in the range from 40kB
       up to 127.6875MB.


George Bonser

Microsoft! Which end of the stick do you want today?


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: