Partitioning tips and ideas?

Discussion in 'Linux Hardware' started by dyo1, Jul 19, 2014.

  1. dyo1

    dyo1 New Member

    Messages:
    28
    Likes Received:
    5
    Trophy Points:
    3
    Thanks :)

  2. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    I'm on LM 17 Cinnamon and tried to get 2 swaps running.
    Creating them and getting them loaded at startup was fine...
    But I found nowhere how to change their priority in order to interleave...
    I thought I could change that is fstab, but at no avail...
    Where is this thing hiding and how to configure it???
  3. rstanley

    rstanley Member

    Messages:
    78
    Likes Received:
    44
    Trophy Points:
    18
    Two swaps??? Why two? I have never heard of this before. If needed, increase the size of the single swap. Please explain.
    dyo1 likes this.
  4. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    Two swap partitions on two different disks for interleaving, it doubles its R'n'W speeds. The swap partition is 2Gb for 2Gb RAM, the size is plenty, I guess... I brought down swappiness to favour RAM over swap and the HD is a 7200, fast enough for the Pentium M 1.75Ghz, I guess... No??
    DevynCJohnson likes this.
  5. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,331
    Likes Received:
    1,070
    Trophy Points:
    113
    You are in luck. An article on Swap is going to be released in one-three weeks here on this website.

    By the way, here is a fstab example. The priority is set with "pri=100". The priority values are 0 to 32767.

    /dev/sda3 none swap defaults,pri=100 0 0
    /dev/sdc5 none swap defaults,pri=1000 0 0
  6. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3

    The way that you've put it there, the priority isn't the same for both, so no interleaving??? Shouldn't they have the same priority level for it to work?????
    DevynCJohnson likes this.
  7. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    Did that and went back to swapon -s to see that it made no difference whatsoever to the priority...
  8. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,331
    Likes Received:
    1,070
    Trophy Points:
    113
    I just copied the example from my up-coming swap article. That is why the priorities did not match.

    Search this page for "interleave" - http://www.computerhope.com/unix/swapon.htm
    Same content (word-for-word, apparently), but different website - http://manpages.courier-mta.org/htmlman8/swapon.8.html

    It appears that interleaving is the default. If your system is not doing so, then perhaps your system thinks that interleaving would not gain the system extra performance.
    dyo1 likes this.
  9. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    Oooh!! Great!! At last the answer I was hoping for..
    Thank You ever so much Dev..
    Cheers!!
    DevynCJohnson likes this.
  10. DevynCJohnson

    DevynCJohnson Well-Known Member Staff Member Staff Writer

    Messages:
    1,331
    Likes Received:
    1,070
    Trophy Points:
    113
    Sorry for the delay in getting your answer. I am glad you are happy with it.
  11. pane-free

    pane-free Active Member

    Messages:
    357
    Likes Received:
    83
    Trophy Points:
    28
    Was this thread hijacked at post #22?
    re: swap -- are two separate hard drives being utilized?
    Slackware (as in Salix) never gave me problems with two small swaps on same hard drive (first time was an accident) -- try one of 'em as a suggestion -- I would favor salix or absolute
    DevynCJohnson likes this.
  12. dyo1

    dyo1 New Member

    Messages:
    28
    Likes Received:
    5
    Trophy Points:
    3
    I'm happy that it's still active, :p
    DevynCJohnson likes this.
  13. EmJay.Au

    EmJay.Au New Member

    Messages:
    10
    Likes Received:
    4
    Trophy Points:
    3
    If I understand correctly, the system interleaves automatically to whatever the number of swap partitions one might have.. I use swap partitions on two different drives for two reasons: speed and errors (space has to be totally free).
    Speed through interleaving and error free cause the space has to be totally free and should not risk splitting...
    DevynCJohnson likes this.
  14. pane-free

    pane-free Active Member

    Messages:
    357
    Likes Received:
    83
    Trophy Points:
    28
    Memory management in Windoze and the same in GNU/Linux are not the same. Semi-paranoid security freaks may disagree, but the same fuss necessary (as, by tweaking the registry) in one to achieve adequate memory partitioning (as in a whole separate hard drive just for the swapfile) may not be or is not worth the effort in Linux.
    Last edited: Aug 10, 2014

Share This Page