Re: Swap partition size for a 4GB RAM system?



On Mon, 30 Oct 2006 22:07:42 -0800, linuxlover992000 wrote this:

It has a 32-bit CPU (3GHz P4 with HyperThreading) and 4GB RAM.

Does it make sense at all to have a swap partition when I have so much
RAM?

I am intending use it for a VMWare workstation, using Ubuntu 6.0.6 as the
host OS.

Thanks!
Lynn

Don't think so but INE.

I suggest check your current swap usage
$ swapon -s
$ less /proc/swaps

If you're using less than 500mb allocate a swap partition of 500mb.
Then as you need more just create as many swap files or as
big a swap file as you need. Create another swapfile of 500mb
for a total of 1gb.


man mkswap, swapon

Or of course you could forget the partition and just create a swapfile. A
bit more flexible since you can delete and reallocate the swap file
without messing with partitions.


.



Relevant Pages

  • Re: Swappartition oder Swapfile?
    ... Suspend2 can store the suspend image in your swap partition, ... Allerdings hast Du in gewisser Weise schon recht - bei dem File-Writer ... darf man wohl kein Swapfile angeben. ...
    (de.comp.os.unix.linux.misc)
  • Re: primary partitions
    ... The Linux kernel prefers its paged out memory to be on a swap partition, ... If on the other hand you opt for a swapfile - and this is indeed possible - ... Linux kernel developers are nifty guys - the location of the swapfile would ...
    (comp.os.linux.hardware)
  • Re: Hibernation fails
    ... the fact that suspend to hibernation was currently implemented. ... The hibernation image is saved in a swap partition or in a swap file ... The kernel can be configured to use a swap partition or a swap file (or ...
    (Ubuntu)
  • SUMMARY: performances of swap file vs swap partition
    ... The evoked reasons are that a swap file will be a bit slower because of the ... another disk and even better, the latter being on another controller. ... swap partition in /etc/vfstab. ...
    (SunManagers)
  • Re: [SLE] Resizing swap partition advice
    ... >> For 2.6 kernels I'd suggest a swap file. ... >> compared to a swap partition. ... You don't have the overhead of the ...
    (SuSE)