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

Re: Dual Processor machine



On Wed, Dec 12, 2001 at 06:11:00AM +0100, Jerome BENOIT wrote:
| dman wrote:
| > On Wed, Dec 12, 2001 at 05:15:14AM +0100, Jerome BENOIT wrote:
| > | Bonjour:

| > | Futhermore, I have created a swap file four times greater
| > | than the RAM of the machine (1Gb):
| > | my actual swap (checked with free) is half of my request (2Gb).
| > 
| > 2GB isn't half of 1GB.
| 
| I am sorry for my english:

No problem.

| 2GB is the half of 4GB

Oh, this could be a problem.  Some kernels don't have "large" file
support.  The issue is, I think, related to the size of an integer.
On my x86 (Duron 750) processor, maxint is 2147483647 with is
(2**31)-1.  Thus I have 31 bits (though the C constant INTBITS says
32) for storing integers.

A gigabyte is 1024 megabytes, which is 1024 kilobytes, which is 1024
bytes (powers of 2).  Thus a gigabyte is 1073741824, and 2 gigabytes
is 2147483648.  2**32 == 2GB.  Thus 2GB is the limit of indexable
bytes in a 32-bit system.

I think this is the cause of the results you are seeing.  It may work
if you split it into 2 2GB partitions and mount both of them as swap.

HTH,
-D

-- 

A)bort, R)etry, D)o it right this time



Reply to: