On Fri, 2002-07-19 at 19:01, Helgi Örn wrote:
On Fri, 2002-07-19 at 19:22, babu walad wrote:
Anybody know the maximum size of a *single* swap partition for linux? I am running SuSE 8.0 and I normally create my linux partitions with Partition magic from the windoze side. For some reason, Partition Magic will not format a swap partition greater than about 2G.
I'd hate to create a bunch of 2G partitions to get what I want.
Not so long ago it used to be: 'the swap partition should not be larger than the amount of RAM though not larger than 128MB', since then I've seen a lot of other theories. But I've never heard of a swap partition as big as 2GB, looks interesting though...:-)
The policy I have been using for swap since '92 is 2x the pysical amount of memory, up to 1G RAM, when I bring the swap closer to the physical memory ( 1G+1.5G, 1.5G+1.5G, 2G+2G ) I _NEVER_ install machines with less swap than physical memory, and that sould never be done. Given that you may well be using most of your memory, and you have a process that uses tremendously large amounts of memory ( multidemensional matrix calculations like liquid flow simulations ) you wish to be able to swap out all your current processes to initialize your memory hog ( which might not stay all in memory after initialization ). thor:~ # fdisk -l | grep swap /dev/sda2 27 289 2104263 82 Linux swap /dev/sda3 290 552 2104263 82 Linux swap That's 2x2GB swap ( linux ) # df -k -l Filesystem kbytes used avail capacity Mounted on swap 19646896 64 19646832 1% /var/run That's 18.75GB swap ( solaris ) ;-) -tosi