[opensuse-factory] When will the Yast installer recognize an SSD formatted with BTRFS and add appropriate entries for the system?
Hello List Mates, Now that we are seeing new laptops and desktops using SSDs. The installer should check for a rotating drive and non rotating drive and edit two or three files to optimize the SSD for the operating system installed to the SSD. I recently installed Leap 42.2 on a Crucial M300 525GB SSD. I've had to google to find the correct settings for the / (root) partition in /etc/fstab. I'm using a similar setting that I found on the Archwiki site. relatime,compress=lzo,ssd,defaults The default settings for / are "defaults" in /etc/fstab. I could not find any docs describing what "defaults" are. In addition it can edit /etc/sysctl.conf and add: vm.swappiness=1 vm.vfs_cache_pressure=50 This will reduce the swappiness. The installer could also enable the fstrim.timer for weekly trimming. Ubuntu adds a weekly cron for fstrim. Has there been any talk about this issue? -- Cheers! Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am Donnerstag, 5. Januar 2017, 17:15:11 CET schrieb Roman Bysh:
[...] The default settings for / are "defaults" in /etc/fstab. I could not find any docs describing what "defaults" are.
Try "mount". Here, it evaluates to rw,relatime,ssd,space_cache
In addition /etc/sysctl.conf and add:
vm.swappiness=1 vm.vfs_cache_pressure=50
This will reduce the swappiness.
I do not think that this is really necessary anymore. Maybe for laptops.
The installer could also enable the fstrim.timer for weekly trimming. [...]
Here it does, as "systemctl status fstrim.timer" says "vendor preset: enabled" Gruß Jan -- When in doubt, don't bother. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 05/01/17 05:34 PM, Jan Ritzerfeld wrote:
Am Donnerstag, 5. Januar 2017, 17:15:11 CET schrieb Roman Bysh:
[...] The default settings for / are "defaults" in /etc/fstab. I could not find any docs describing what "defaults" are.
Try "mount". Here, it evaluates to rw,relatime,ssd,space_cache What is space-cache? Should I remove the entries that I'm using in fstab?
In addition /etc/sysctl.conf and add:
vm.swappiness=1 vm.vfs_cache_pressure=50
This will reduce the swappiness.
I do not think that this is really necessary anymore. Maybe for laptops.
I found this under fstrim on the opensuse.org website.
The installer could also enable the fstrim.timer for weekly trimming. [...]
Here it does, as "systemctl status fstrim.timer" says "vendor preset: enabled"
Gruß Jan
I've already enabled it. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am Donnerstag, 5. Januar 2017, 17:52:45 CET schrieb Roman Bysh:
On 05/01/17 05:34 PM, Jan Ritzerfeld wrote:
Am Donnerstag, 5. Januar 2017, 17:15:11 CET schrieb Roman Bysh:
[...] The default settings for / are "defaults" in /etc/fstab. I could not find any docs describing what "defaults" are.
Try "mount". Here, it evaluates to rw,relatime,ssd,space_cache
What is space-cache? Should I remove the entries that I'm using in fstab?
I would remove "relatime" and "ssd" since they should be used automatically. If you were using compression only for reducing the amount of data written, I would remove it. See my next paragraph.
In addition /etc/sysctl.conf and add:
vm.swappiness=1 vm.vfs_cache_pressure=50
This will reduce the swappiness.
I do not think that this is really necessary anymore. Maybe for laptops.
I found this under fstrim on the opensuse.org website.
SSDs are quite new and evolving quickly. So, tips will outdate within years. Since you can write hundreds of TB to a modern SSD, reducing the amount of data written seems quite pointless: http://techreport.com/review/26523/the-ssd-endurance-experiment-casualties-o...
The installer could also enable the fstrim.timer for weekly trimming. [...]
Here it does, as "systemctl status fstrim.timer" says "vendor preset: enabled" [...] I've already enabled it.
I meant that the fstrim.timer is already enabled by default. Gruß Jan -- The field of probability is too important to be left to chance. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
El 06-01-2017 a las 14:57, Jan Ritzerfeld escribió:
I would remove "relatime" and "ssd" since they should be used automatically. If you were using compression only for reducing the amount of data written, I would remove it. See my next paragraph.
You almost always want to have "lazytime" behaviour though. https://lwn.net/Articles/621046/ Unfortunately it is not yet the default. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2017-01-06 20:08, Cristian Rodríguez wrote:
You almost always want to have "lazytime" behaviour though. https://lwn.net/Articles/621046/ Unfortunately it is not yet the default.
Very interesting setting. I take it tha Leap 42.2 has it, although not the default? At the time of the article, only ext4 supported it, has this changed? Supposedly it should go into the VFS. Also, is there a consensus on what should be the appropriate options for other filesystes on an SSD disk? I mean ext4, xfs... -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
On 06/01/17 03:26 PM, Carlos E. R. wrote:
On 2017-01-06 20:08, Cristian Rodríguez wrote:
You almost always want to have "lazytime" behaviour though. https://lwn.net/Articles/621046/ Unfortunately it is not yet the default.
Very interesting setting. I take it tha Leap 42.2 has it, although not the default? At the time of the article, only ext4 supported it, has this changed? Supposedly it should go into the VFS.
Also, is there a consensus on what should be the appropriate options for other filesystes on an SSD disk? I mean ext4, xfs...
FYI I've also added elevator=deadline to kernel options in /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/sda2 splash=silent quiet showopts elevator=deadline Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 06/01/17 04:12 PM, Roman Bysh wrote:
On 06/01/17 03:26 PM, Carlos E. R. wrote:
On 2017-01-06 20:08, Cristian Rodríguez wrote:
You almost always want to have "lazytime" behaviour though. https://lwn.net/Articles/621046/ Unfortunately it is not yet the default.
Very interesting setting. I take it tha Leap 42.2 has it, although not the default? At the time of the article, only ext4 supported it, has this changed? Supposedly it should go into the VFS.
Also, is there a consensus on what should be the appropriate options for other filesystes on an SSD disk? I mean ext4, xfs...
FYI
I've also added elevator=deadline to kernel options in /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/sda2 splash=silent quiet showopts elevator=deadline
Roman The openSUSE SSD wiki really needs to be updated. I'm hearing one thing on this ML and reading about different fstab settings on Archwiki.
I'm looking for the optimum fstab settings for BTRFS. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2017-01-06 21:26, Carlos E. R. wrote:
On 2017-01-06 20:08, Cristian Rodríguez wrote:
You almost always want to have "lazytime" behaviour though. https://lwn.net/Articles/621046/ Unfortunately it is not yet the default.
Very interesting setting. I take it tha Leap 42.2 has it, although not the default? At the time of the article, only ext4 supported it, has this changed? Supposedly it should go into the VFS.
I've tried, and the option lazytime is accepted by other partition types: reiserfs, xfs... I don't know if it is working, but it is accepted: minas-tirith:~ # mount | grep /dev/sda /dev/sda7 on / type ext4 (rw,relatime,lazytime,data=ordered) /dev/sda9 on /other type ext4 (rw,relatime,lazytime,data=ordered) /dev/sda6 on /boot type ext2 (rw,relatime,lazytime,block_validity,barrier,user_xattr,acl) /dev/sda8 on /home type reiserfs (rw,relatime,lazytime,user_xattr,acl) minas-tirith:~ # - -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlh9S8YACgkQja8UbcUWM1znHgD/b2ehvDBI92l1bYQKJgZ9ezHE lItR7JRZ5FtH7cr64Q8A/RLnnHAu/yYPcY3DZf7DVbOnCX/ohaNyMVXdno+MK1mg =+d// -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
17.01.2017 01:40, Carlos E. R. пишет:
On 2017-01-06 21:26, Carlos E. R. wrote:
On 2017-01-06 20:08, Cristian Rodríguez wrote:
You almost always want to have "lazytime" behaviour though. https://lwn.net/Articles/621046/ Unfortunately it is not yet the default.
Very interesting setting. I take it tha Leap 42.2 has it, although not the default? At the time of the article, only ext4 supported it, has this changed? Supposedly it should go into the VFS.
I've tried, and the option lazytime is accepted by other partition types: reiserfs, xfs... I don't know if it is working, but it is accepted:
It is implemented in VFS layer and should be transparent to filesystem (ext4 has some explicit code, not sure whether this is leftover) as long as your mount binary understands this option and translates it into proper mount flag. Support was added in version 2.27 of util-linux.
minas-tirith:~ # mount | grep /dev/sda /dev/sda7 on / type ext4 (rw,relatime,lazytime,data=ordered) /dev/sda9 on /other type ext4 (rw,relatime,lazytime,data=ordered) /dev/sda6 on /boot type ext2 (rw,relatime,lazytime,block_validity,barrier,user_xattr,acl) /dev/sda8 on /home type reiserfs (rw,relatime,lazytime,user_xattr,acl) minas-tirith:~ #
On 2017-01-17 05:07, Andrei Borzenkov wrote:
17.01.2017 01:40, Carlos E. R. пишет:
On 2017-01-06 21:26, Carlos E. R. wrote:
On 2017-01-06 20:08, Cristian Rodríguez wrote:
You almost always want to have "lazytime" behaviour though. https://lwn.net/Articles/621046/ Unfortunately it is not yet the default.
Very interesting setting. I take it tha Leap 42.2 has it, although not the default? At the time of the article, only ext4 supported it, has this changed? Supposedly it should go into the VFS.
I've tried, and the option lazytime is accepted by other partition types: reiserfs, xfs... I don't know if it is working, but it is accepted:
It is implemented in VFS layer and should be transparent to filesystem (ext4 has some explicit code, not sure whether this is leftover) as long as your mount binary understands this option and translates it into proper mount flag. Support was added in version 2.27 of util-linux.
That was my doubt. The article said it was going to be implemented on the VFS, on long term, so I didn't know if it had made it yet. I'm going to activate the option on all my computers and mounts. :-) -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
Am Freitag, 6. Januar 2017, 16:08:09 CET schrieb Cristian Rodríguez:
[...] You almost always want to have "lazytime" behaviour though. https://lwn.net/Articles/621046/ Unfortunately it is not yet the default.
Good point! Gruß Jan -- A fool and his money are soon parted. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 06/01/17 12:57 PM, Jan Ritzerfeld wrote:
Am Donnerstag, 5. Januar 2017, 17:52:45 CET schrieb Roman Bysh:
The installer could also enable the fstrim.timer for weekly trimming. [...]
Here it does, as "systemctl status fstrim.timer" says "vendor preset: enabled" [...] I've already enabled it.
I meant that the fstrim.timer is already enabled by default.
Jan Not on my desktop with Leap 42.2. I had to be manually enable and start the fstrim.timer. systemctl enable fstrim.timer systemctl start fstrim.timer Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am Freitag, 6. Januar 2017, 16:48:07 CET schrieb Roman Bysh:
[...] Not on my desktop with Leap 42.2. I had to be manually enable and start the fstrim.timer. [...]
Does "systemctl status fstrim.timer" say "vendor preset: enabled"? Here: # grep -r fstrim.timer /usr/lib/systemd/ /usr/lib/systemd/system-preset/90-default-openSUSE.preset:enable fstrim.timer # rpm -qf /usr/lib/systemd/system-preset/90-default-openSUSE.preset systemd-presets-branding-openSUSE-0.3.0-26.2.noarch Gruß Jan -- Trust everyone, then cut the cards. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 07/01/17 05:26 AM, Jan Ritzerfeld wrote:
Am Freitag, 6. Januar 2017, 16:48:07 CET schrieb Roman Bysh:
[...] Not on my desktop with Leap 42.2. I had to be manually enable and start the fstrim.timer. [...]
Does "systemctl status fstrim.timer" say "vendor preset: enabled"? Here: # grep -r fstrim.timer /usr/lib/systemd/ /usr/lib/systemd/system-preset/90-default-openSUSE.preset:enable fstrim.timer # rpm -qf /usr/lib/systemd/system-preset/90-default-openSUSE.preset systemd-presets-branding-openSUSE-0.3.0-26.2.noarch
Gruß Jan
Yes I found it. Thank you. With BTRFS there's not much to modify with any .conf files. However, ext4 require some tweaking with SSDs. Roman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (5)
-
Andrei Borzenkov
-
Carlos E. R.
-
Cristian Rodríguez
-
Jan Ritzerfeld
-
Roman Bysh