How to configure ext4 for SSD?

Welcome!
Guys, help me to configure the file system to SSD.
OpenSuse you need to install the second OS on the laptop. This was acquired SSD. There is a 200 GB, 5-7 of which will go under the swap.
As the file system we decided to use ext4
As far as I understand, to prepare a file system for SSD, it is sufficient to specify the noatime and discard in the mount options. Yast gives this dialogue for FS:
4a9e5e7a554145aa895a97381d38a122.png
help window
f8d7f970efb0404c8eb14d928b176cba.png

And fstab:
5c9a58e50f284ef6a59115a24f2ba420.png
help window
57f63d82f47a4aad82e38902fd2204a3.png

Where and how can I these options to stick and what else need to configure?
June 27th 19 at 14:53
3 answers
June 27th 19 at 14:55
discard do not recommend, will greatly sink the performance. Periodically run fstrim (in Ubuntu by default runs once a week, in OpenSUSE you need to look).
If SSD is not older than 5-7 years, you can not be bothered about the settings, still to ditch the cell, overwriting you in the next 10 years under normal use will not work (unless you write a volume equal to the volume of SSD every day, then for a year or two and can kill).

noatime is more than enough.
discard is a permanent trim or what? - Manley commented on June 27th 19 at 14:58
: Exactly - Roger.Erns commented on June 27th 19 at 15:01
noatime, turns out to be a controversial option. Browser need. - Manley commented on June 27th 19 at 15:04
: Use noatime as I remember, no problems. In fact, the timestamps in the file system is highly questionable source of information in many situations, and the same Dropbox/Nextcloud customers do more work during synchronization than just comparing labels. - Roger.Erns commented on June 27th 19 at 15:07
June 27th 19 at 14:57
Ideally it would be better without the swap of oboitis or keep it on the HDD.
the swap on the SSD is the place. - Manley commented on June 27th 19 at 15:00
: In terms of performance - Yes. From the point of view of the life of the SSD better memory to buy:) - Roger.Erns commented on June 27th 19 at 15:03
:
If SSD is not 10 years ago- then nothing happens, here nothing.
Work computer is on SSD Samsung 850 EVO, 2 years of flight, 4G swap, which is regularly filled.
Problem is not noticeable.
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
 9 Power_On_Hours 0x0032 096 096 000 Old_age Always - 15554
 12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 75
177 Wear_Leveling_Count 0x0013 094 094 000 Pre-fail Always - 109
179 Used_Rsvd_Blk_Cnt_Tot 0x0013 100 100 010 Pre-fail Always - 0
181 Program_Fail_Cnt_Total 0x0032 100 100 010 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 010 Old_age Always - 0
183 Runtime_Bad_Block 0x0013 100 099 010 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0032 068 055 000 Old_age Always - 32
195 Hardware_ECC_Recovered 0x001a 200 200 000 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0
235 Unknown_Attribute 0x0012 099 099 000 Old_age Always - 18
241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 12586212424


And from the point of view of the life of the SSD better to put it on a shelf and turn every 3 months to regenerate, and to work with mechanics. But why?) - Manley commented on June 27th 19 at 15:06
: It is clear, I'm not saying that this is critical) - Roger.Erns commented on June 27th 19 at 15:09
The moral of the story is - of memory should be enough that there was no active swap.
And swap in any case should be, and of course on the SSD. - delbert_Schuppe commented on June 27th 19 at 15:12
June 27th 19 at 14:59

Find more questions by tags SUSELinuxSolid state drivesExtended file system