Skip to content

u/kwhali

In this archive from Jan 2016 to Nov 2026

143
posts
837
comments
7
media
1.7k
score
2 saved before deletion

Top posts

Migrating physical install to VM?

I have some old systems that are fairly outdated (last system update on manjaro sometime in 2020). TL;DR: I want to archive the systems into storage but be able to "boot" them at a later date. I also need to clone some small VPS instances I'm wasting money on which could be likewise archived locally...

29 points19 comments
Open on Reddit

Top comments

Should I also trim a regular, non-NVMe SSD? Or is that pointless?

Yes.

Also, what is trimming?

On the disk, your files data is written into blocks, which you can think of as little buckets or boxes. SSDs are also Copy-on-Write(COW) under the hood, so when you make changes to a file, those changes aren't swapped to overwrite the original data on disk like an HDD, they get added again as new data, and the older data is free to be "swept up".

So you end up filling those boxes over time with stale data that isn't used anymore, and eventually you run out of boxes, at which point you'd go around and look for boxes with stale a lot of stale data and copy the actual useful data still in there to one of those few last empty boxes, letting you have the old box(es) now just stale data so that they can be emptied.

Usually SSDs keep some internal space for that process away from your filesystem/OS so you always have some free "boxes" to juggle that data around when needed. In earlier years of SSDs, there was a strong emphasis to keep some of your disk unpartitioned to assist with that process and was referred to as over-provisioning.

By invoking the cleanup periodically, the amount of work to do can be done up front, and not be in a state where you have to clean up a lot all the time to shuffle data around to make free blocks, which can degrade disk performance(due to latency added from these operations), similar I guess to the continuous TRIM that discard applies, but worse.

Unrelated to TRIM, but useful fact: SSDs will balance/distribute that allocation of data across the blocks, due to how Flash typically works/performs, and that's fine. Since it's naturally fragmented and a non-issue for performance, you'll often hear it cited that you don't need to worry about fragmentation like you would with an HDD, and you may very well not. SSDs though have a virtual layer above all that which filesystems commonly use to interact with the SSD controller, this lets your OS see a familiar disk device like an HDD without worrying about how an SSD differs with storing data.. this layer can fragment and if that fragmentation gets very high, then what may originally be 1 request for the data of a file could be 10, 100... 1000 requests. Having to request a high number of fragments vs much less adds total time to respond with full data, increasing latency. Since SSDs are so fast, you may not notice the reduced throughput(MB/sec) and so it's largely not a concern, CPU usage would also go up(making all the extra requests).

Some of the above may not be entirely accurate, I'm sure someone else will correct me if that's the case.


TL;DR: TRIM is basically housekeeping for your SSD. It'll clean up parts of the disk that are "dirty" which can slow down performance if the SSD has to clean it up later on. Better to clean it sooner than leave it to be a larger mess to clean up later on, but not be overly OCD like discard by mopping the floor after every step.

9 points

Repository requests

I don't value these as much, but they meet the requirements to be promoted out of AUR

Lacking votes

  • ttf-twemoji(MIT/Apache/CCPL, 7 votes) - Fedora builds a CBDT/COLR version of the Twemoji font, making it usable elsewhere(beyond few SVGinOT applications like Firefox). Twemoji is often one of the first emoji fonts to support newer emoji releases.

Probably incompatible license or other issue:

  • GitKraken(226 votes) - Electron app, proprietary build distributed from vendors website, free for non-commercial use.
  • Master PDF Editor - Free(27 votes) - Old Qt4 version of this app, free/unregistered version is still useful, pretty sure I've used this only because it allowed me to easily work with some PDF forms where other alternatives lacked. Native form support, can add and position/scale images(eg for signature), and few other features.
  • p4v(13 votes), Perforce provides a nice merge GUI tool with this for free that I sometimes use if Meld isn't sufficient. Prefer it for when I need the 3 pane(3 way?) merge with the output/result as a 4th pane below those. Has some good settings for white-space handling and visual indicators/toggles + inline editing(iirc).
9 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.