I’m on Lubuntu 23.04
with
Linux MYCOMPUTER 6.2.0-20-generic #20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 6 07:48:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
On installation of Lubuntu
I chose No Swap
. I thought this is all that has to be done so eveything is done in RAM
, applications don’t write there stuff to disk but keep everything for a session in RAM
, only stuff that I wish to save to disk (modified files, downloaded files, etc.) is saved to disk.
But recently I see a lot of IO on my SSD (PCEe NvME), more or less seen by coincidence as I just wanted to see how the health of my SSD is, never checked it on Linux before.
I will do a post on StackOverflow
regarding web browser behaviour on this, and reference it in the Lubuntu
forum, as iotop
showed continuous writing to disk by the web browsers.
I would like to make one change I found here Increase Performance and lifespan of SSDs & SD Cards to reduce unnecessary IO to disk, paragraph noatime Mount Flage
Is it safe to just add the line
/dev/sdx / ext4 discard,noatime,errors=remount-ro 0 1
as is at the end of /etc/fstab
or do I need to change something else there too if I add it?
Off course /dev/sdx
must be replaced by my drive /dev/nvme0n1
.
On that kind of change do I have to reboot the system or is some kind of command via terminal sufficient?
My fstab
file looks currently like this
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=1B0B-964E /boot/efi vfat defaults 0 2
UUID=6d51cb31-dd04-4957-9293-8bd867d0ffe6 / ext4 defaults 0 1
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
There is already a line containing noatime
in my fstab
file, which is the same to the paragraph Mount temporary directories as tmpfs
given in the link.