Swapiness for Jaunty on AAO 110L

Discussion in 'Linux' started by jango, Apr 29, 2009.

  1. jango

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    Hi

    what is the best swapiness setup for AAO 110l witth 512RAM on Jaunty? Default Jaunty swapiness is 60 but on powersaving tweaks is 1...
     
    jango, Apr 29, 2009
    #1
  2. jango

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    bump...
     
    jango, Apr 30, 2009
    #2
  3. jango

    csmo

    Joined:
    Oct 9, 2008
    Messages:
    214
    Likes Received:
    0
    csmo, Apr 30, 2009
    #3
  4. jango

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    Why do you say that?...
     
    jango, Apr 30, 2009
    #4
  5. jango

    Andysan

    Joined:
    Jul 9, 2008
    Messages:
    272
    Likes Received:
    0
    I think its best to leave it at about 60 unless you are rocking an SSD - in which case writing swap files to the SSD really slows things down - i've got my Swappiness set at 10.
     
    Andysan, Apr 30, 2009
    #5
  6. jango

    jango

    Joined:
    Aug 2, 2008
    Messages:
    307
    Likes Received:
    0
    Yes my AAO have 8gb SSD, so do you tink swappiness=10 is the best setup?
     
    jango, Apr 30, 2009
    #6
  7. jango

    zaphod

    Joined:
    Jul 10, 2008
    Messages:
    156
    Likes Received:
    0
    Location:
    France
    I have happily been using a swappiness of 10 (on an SSD) for quite some time. I don't really know if this is optimal but it certainly works well for me.
     
    zaphod, May 1, 2009
    #7
  8. jango

    Sarvatt

    Joined:
    Oct 26, 2008
    Messages:
    77
    Likes Received:
    0
    Why even use a swap at all on a SSD model? Unless you have 512 ram or something that is.. There's always compcache to swap in ram, I dont even use a swap outside of compcache on my HDD model.
     
    Sarvatt, May 1, 2009
    #8
  9. jango

    Andysan

    Joined:
    Jul 9, 2008
    Messages:
    272
    Likes Received:
    0
    I would think so, yes. You want to avoid writing to the SSD at all costs, so swappiness=10 seems the best idea IMHO. I was even running without swap at one time, but the darn thing kept running out of memory lol!
     
    Andysan, May 2, 2009
    #9
  10. jango

    ARH

    Joined:
    Sep 29, 2008
    Messages:
    15
    Likes Received:
    0
    what is your idea about the swapiness on my A110L (8GB SSD) with 1.5GB RAM ?
     
    ARH, May 2, 2009
    #10
  11. jango

    jacktar

    Joined:
    Nov 13, 2008
    Messages:
    16
    Likes Received:
    0
    You dont need a swap partition if you have 1.5GB. I have the same spec and Jaunty runs great. I am also using OpenDNS which speeds up internet browsing for me.
     
    jacktar, May 2, 2009
    #11
  12. jango

    adjektiivi

    Joined:
    Mar 22, 2009
    Messages:
    43
    Likes Received:
    0
    Location:
    Finland
    <128Mt, 60
    256Mt, 50
    512Mt, 30
    1Gt, 10
    >1Gt, 1 (or 0)


    i think you should put 30 or 20
    just edit gksudo gedit /etc/sysctl.conf
    add those lines end
    Code:
    vm.swappiness=20
    vm.vfs_cache_pressure=50
     
    adjektiivi, May 2, 2009
    #12
  13. jango

    Andysan

    Joined:
    Jul 9, 2008
    Messages:
    272
    Likes Received:
    0
    Thanks for that post.

    Could you please explain why a swappiness value of 30 is best for a machine with 512MB of memory please, and also what the following code line does as i wish to understand further:

    Code:
    vm.vfs_cache_pressure=50
    Thank you.
     
    Andysan, May 2, 2009
    #13
  14. jango

    adjektiivi

    Joined:
    Mar 22, 2009
    Messages:
    43
    Likes Received:
    0
    Location:
    Finland
    Sysctl's setting vm.swappiness of it, how easily used swap, The smaller value, less swap is used. If the value placed is 0, swap is not used at all.. there are no right values about that.. only orientation if you have central memory.
    like
    <128Mt, 60
    256Mt, 50
    512Mt, 30
    1Gt, 10
    >1Gt, 1 (tai 0)
    vm.swappiness default value is 60.

    The exception is laptop computers. If you wish, that their harddrive is running as little as possible, you should put the value of not more than 20.. but memory limited old computers its no good to do that.
     
    adjektiivi, May 2, 2009
    #14
  15. jango

    Joeb

    Joined:
    Oct 5, 2008
    Messages:
    44
    Likes Received:
    0
    While many people don't even use a swap file, one reason to include one is if you want to use the hibernate function. In this case, your swap needs to be as big as your ram.
     
    Joeb, May 6, 2009
    #15
  16. jango

    SnorreSelmer

    Joined:
    Apr 27, 2009
    Messages:
    21
    Likes Received:
    0
    Location:
    Oslo, Norway
    No point in having a swap-partition at all when you have 1.5GB RAM.
    I have a A110L with 1.5GB RAM and I don't use swap at all. Most of the time I use less than 25% of the available RAM anyways.
     
    SnorreSelmer, May 6, 2009
    #16
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.