Skip to contentSkip to conversation

swap: which is the maximum size allowed?

DISCUSSION Bodo Eggert 3 participants 3 messages Jan 28, 2007 – Jan 29, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · Eriberto

I am trying understand the swap. I would like to know which is the maximum swap size on i386. Is 64 MB? If yes, how to know the origin of this "magic" number? I don't found it (Internet).

Look into the manpage of mkswap. It's 2 G x 32 swap partitions, minus a tiny overhead.

Signature · 4 lines
"Whoever said the pen is mightier than the sword obviously never
encountered automatic weapons."
-Gen. Douglas MacArthur
Friß, Spammer: [email protected]
#2 lore raw

Ok. But, mkswap man is old (1999). However, from Linux Partition HOWTO:

"footnote: "official" max swap size: With kernel 2.4, the limit is 64 swap spaces at a maximum of 64Gb each, although this is not reflected in the man page for mkswap. With the 64 bit opteron on the 2.6 kernel, 128 swap areas are permitted, each a whopping 16 Tb! (thanks to Peter Chubb for the calculation)"

I want to know: why 64 GB???

Thanks,

Eriberto - www.eriberto.pro.br

Bodo Eggert escreveu:

Quoted 2 lines

Look into the manpage of mkswap. It's 2 G x 32 swap partitions, minus a tiny overhead.

#3 lore raw
Quoted 9 lines · Eriberto

Ok. But, mkswap man is old (1999). However, from Linux Partition HOWTO:

"footnote: "official" max swap size: With kernel 2.4, the limit is 64 swap spaces at a maximum of 64Gb each, although this is not reflected in the man page for mkswap. With the 64 bit opteron on the 2.6 kernel, 128 swap areas are permitted, each a whopping 16 Tb! (thanks to Peter Chubb for the calculation)"

I want to know: why 64 GB???

It's how big the available pointers are.

Signature · 1 line
Mathematics is the supreme nostalgia of our time.