You are viewing a single comment's thread:

RE: What Kind of Maintenance Do I Need on Linux?

(edited)

A couple more tips, if you don't mind :)

Instead of
sudo apt-get update
sudo apt-get upgrade

you can alternately use just apt, which is shorthand support in the most latest Debian based distros. And, apt has a couple additional features, like detecting and handling dependencies a tad better.
sudo apt update
sudo apt upgrade

However, Update Manager essentially does the same thing. The command line version is fine to use on a desktop environment, but becomes a necessity when managing a "headless" server (no desktop environment installed), like Debian's netinst version when there's a desire to keep memory footprint and security attack surface to a minimum and enhancing performance for server loads.

Graphics Program

Here's another graphics option for ya: Darktable, if you prefer a more Lightroom style of photo management and editing.

More SSD stuff

You can gauge how often to Trim an SSD by estimating about how much of your free space is going to be used. Not Trimming is not a problem, it's just a tad faster when the circuitry doesn't have to zero-out the area on the fly before a write.

For instance, on a 500GB SSD or nvme drive 50% used, and you write 10GB of videos daily during saves, you can approximate that it would take 25 days to write to all the freshly Trimmed space. Considering updates and usage, you may find about once a week is still fine. Too many Trims and you may notice your TBW (Total Bytes Written) drive stat go up faster on a daily schedule vs weekly. You can look up your drive's life in TBWs on the manufacturer's spec sheet. I do a ton of writes, yet still only trim once a week. And again, it just makes writes a tad faster, and not that much if you've also over provisioned.

If you want speed demon status, look into adding "noatime" and "nodiratime" into your /etc/fstab root mount. That will prevent Linux from tagging the file with an access time every read. Be careful, one typo on this and you won't be able to mount your filesystem - but personally, I always do this on every SSD and nvme drive.

System Tweaks

I also always set vm.swappiness to 1, on machines with plenty of RAM. This will notify Linux you only want to swap to storage vs memory, as a last resort. Again, I always set this and cache pressure in my /etc/sysctl.conf file:
vm.swappiness=1
vm.vfs_cache_pressure=50

As you may start to realize, I'm a performance nut lol.

Enjoy!

0.00191270 BEE
1 comments

Thanks for your additional tips! They are really helpful and will be in the future even more. I have already changed swappiness, but to 25, not to 1, although both were suggested. I'll go over the rest of the tips in the morning when my mind is clearer.

0.00000525 BEE