Announcement

Collapse
No announcement yet.

virtual memory not taken into account

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: virtual memory not taken into account

    Some other swap tips:

    Making changes to swap settings do not require a reboot. Just type this in a terminal window:

    sudo swapoff -a && sudo swapon -a


    To verify your swap is on:

    swapon -s

    If you have more than on hard drive, you can set up a RAID-like swap file by using multiple partitions on all your drives and giving them equal priority in /etc/fstab. My swap portion of fstab looks like this:

    Code:
    # swap was on /dev/sda1 during installation
    /dev/disk/by-label/swap1    none      swap  sw,pri=1    0    0
    # swap was on /dev/sdb1 during installation
    /dev/disk/by-label/swap2    none      swap  sw,pri=1    0    0
    # swap was on /dev/sdc1 during installation
    /dev/disk/by-label/swap3    none      swap  sw,pri=1    0    0
    # swap was on /dev/sdd1 during installation
    /dev/disk/by-label/swap4    none      swap  sw,pri=1    0    0
    Somewhat old school notions but likely still true:

    Swap space is slightly faster as partition 1

    Swap space should at least equal your RAM size

    However, I believe this last one is a rather simplistic view. If you hibernate, I agree. If you don't use hibernate, unlikely you will ever need 12gb of swap if you have 12gb of RAM. I have 8gb on my desktop and I've never swapped to RAM that I am aware of.

    Please Read Me

    Comment


      #17
      Re: virtual memory not taken into account

      Ah, I hadn't thought about laptops. I guess swap will always be used to save sessions.

      Comment

      Working...
      X