Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Several questions on installing Tumbleweed along with Win10 booting with UEFI

  1. #1
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    204

    Default Several questions on installing Tumbleweed along with Win10 booting with UEFI

    Hi all,

    I am going to ask a lot questions here because I will install the openSUSE Tumbleweed along with Windows 10 in a new laptop. This is a new situation for me because I think my knowledge on this kind of things are still in the stage of 5 years ago, and I am also a relative new user to Linux. Please forgive me if my questions seem silly to you.

    Usually I would ask one question a thread, but for this kind of things, I think it's better to group them together because lot of information is correlative. Here it the basic hardware information:
    • CPU: Intel i7-7600U
    • Video card: Integrated GPU
    • Drive: 512GB SSD (M.2 2280 NVMe PCI-e)
    • Memory: 8-24GB RAM (I will increase the original RAM of 8GB to a larger size later)


    Here comes the questions.

    1. Swap size and swap partition
    I am not going to use hibernation any more given the high read speed a SSD can provide.

    I read that for the situation of a large size of physical memory, it's better to keep a small to zero swap if no intensive task will be involved. Then my question is, for zero swap, should I just do not assign a swap partition? Would this be the right/safe recommendation?

    If it is safer to use a small swap partition than no swap, may I put this partition behind all other partitions in case of easy to increase its size if I would need it? And I already know that I should change swappiness to a lower value such as 10 if there are plenty of DRAM.

    2. Settings related to SSD
    This is the only storage drive in this laptop.

    As for SSD, are there any settings apart from the default ones provided in openSUSE Tumbleweed I should consider to keep the SSD in good performance and state?

    And yes, I know that SSD is for using not being caring. I just want to reduce unnecessary wearing.

    3. File system types
    I planned to use Btrfs for root (/) partition because it is the default one. But I do not know should I use it for `/home` as well. Any recommendation?

    These are all that I am trying to figure out now. But most of them seem to be opinion based rather than technical questions. So please give me your experience-based opinions. They will be very much appreciated.

    Regards,
    CnZhx
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,091

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    You should have some swap just in case. Don't need as much as is if you hibernate

    If using BTRFS there are none that are required

    Default is XFS which is fine or use ext4. There is little difference in FS any more

  3. #3
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    204

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    Quote Originally Posted by gogalthorp View Post
    You should have some swap just in case. Don't need as much as is if you hibernate

    If using BTRFS there are none that are required

    Default is XFS which is fine or use ext4. There is little difference in FS any more
    Thank you gogalthorp for your advices.

    I will use a small swap partition then. Maybe 1 or 2GB is a good start. Do you think it's a good practice to make it as the last partition on the drive?
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,091

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    Makes little difference these days with HD and none with SSD.

  5. #5
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    204

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    Quote Originally Posted by gogalthorp View Post
    Makes little difference these days with HD and none with SSD.
    Make sense :-)

    I am still thinking this like on a spin drive. But it's true that I am not aware of the mechanism behind, such as how does the SSD store the contents. Is it pseudo random, or something like this, unlike the sequence from lower to higher in a spin drive?
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,091

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    It is random access memory just made to look like a drive organization.

    It uses flash memory which has odd characteristics. The memory is setup in blocks which are mapped to the virtual sectors on the virtual drive the OS sees. Flash can not be changed it has to be erased a block at a time then it can store new data again. So any writes even a singly byte means that a block is moved to a recovery area (virtually not physically) and a new unused block is mapped in it's place and can be written. The hardware then will erase the used block that was set aside at a convenient time and it is added back into the free block pool. Additional memory is provided to act as a pool. Flash has a finite number of erasers that can happen before it dies. But the hardware has what is known as write leveling procedures which assure erases are done balanced across all memory thus increasing the life of the device. Modern drives can sustain 100s of terabytes of writes and generally are rated at about 5 years normal usage before exhausting the extra memory pool and begin to deteriorate.

    I use the following mount parameters in /etc/fstab for a ext4 FS

    Code:
    ext4       noatime,acl,user_xattr 1 1
    noattime stops writing the date-time a file is accessed which happens often and reduces the life of a SSD


    So more then you wanted to know???

  7. #7
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    8,804
    Blog Entries
    3

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    Quote Originally Posted by cnzhx View Post
    I read that for the situation of a large size of physical memory, it's better to keep a small to zero swap if no intensive task will be involved.
    I don't think it matters. I have a lot of swap, but it is almost never used. And since it isn't used, I'm doubting that there's any "intensive task" happening.
    opensuse Leap 42.2; KDE Plasma 5;
    opensuse tumbleweed; KDE Plasma 5 (test system);

  8. #8
    Join Date
    Jan 2016
    Location
    Manchester, UK
    Posts
    204

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    Quote Originally Posted by gogalthorp View Post
    It is random access memory just made to look like a drive organization.

    It uses flash memory which has odd characteristics. The memory is setup in blocks which are mapped to the virtual sectors on the virtual drive the OS sees. Flash can not be changed it has to be erased a block at a time then it can store new data again. So any writes even a singly byte means that a block is moved to a recovery area (virtually not physically) and a new unused block is mapped in it's place and can be written. The hardware then will erase the used block that was set aside at a convenient time and it is added back into the free block pool. Additional memory is provided to act as a pool. Flash has a finite number of erasers that can happen before it dies. But the hardware has what is known as write leveling procedures which assure erases are done balanced across all memory thus increasing the life of the device. Modern drives can sustain 100s of terabytes of writes and generally are rated at about 5 years normal usage before exhausting the extra memory pool and begin to deteriorate.
    Thank you very much for the explanation. It's clearer and easier to understand than the articles I have read. Maybe it's because your words are tailored for my needs :-)

    Quote Originally Posted by gogalthorp View Post
    I use the following mount parameters in /etc/fstab for a ext4 FS

    Code:
    ext4       noatime,acl,user_xattr 1 1
    noattime stops writing the date-time a file is accessed which happens often and reduces the life of a SSD

    So more then you wanted to know???
    I do have a question on this. Does "access" here mean "read" only? I do want to know the create and modify date. If no access time is written, maybe I cannot sync files by timestamp?

    Quote Originally Posted by nrickert View Post
    I don't think it matters. I have a lot of swap, but it is almost never used. And since it isn't used, I'm doubting that there's any "intensive task" happening.
    Hi nrickert,
    Yes, I am not sure if intensive tasks will be involved in my operation in future. But there is definitely no intensive tasks for at least half a year for me because I am busy in writing my thesis.

    So, if you actually do not need swap, why do you keep *a lot* of swap? Do not you think it's a waste of drive space?
    openSUSE Tumbleweed (usually the latest snapshot) w/ KDE Plasma 5

  9. #9
    Join Date
    Nov 2009
    Location
    West Virginia Sector 9
    Posts
    14,091

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    Access fo a file means you open it. Normally the date-time of the files is updated at that point which causes a write to the disk. Since the last time the file was opened/accessed is normally not important turning off the function with noatime saves a write and thus ware on the flash memory is reduced. This is not needed by BTRFS but is for ext4.

    If you want to see all the mount options type man mount into a terminal. note man is short for manual and most all Linux commands have an entry

    Swap is one of those thing that may or may not be needed depending on how you use the computer. If you run out of main memory the OS just barfs.

  10. #10
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    8,804
    Blog Entries
    3

    Default Re: Several questions on installing Tumbleweed along with Win10 booting with UEFI

    Quote Originally Posted by cnzhx View Post
    So, if you actually do not need swap, why do you keep *a lot* of swap? Do not you think it's a waste of drive space?
    I have more drive space than I will ever use. So throwing a bit into swap doesn't hurt.
    opensuse Leap 42.2; KDE Plasma 5;
    opensuse tumbleweed; KDE Plasma 5 (test system);

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •