I know everyone is talking about defragging but the Windows registry is still a piece of junk core component on Windows we have to deal with, unlike NTFS getting away with being on an SSD.
regedit HKLM my ass
I think that fundamentally, a system-wide configuration database isn’t necessarily a bad thing, eapecially with types. It sounds saner than using text with its pitfalls, especially if the format itself sucks (YAML and XML to an extent)
JSON all the things!
I would agree that JSON is indeed one of the lesser evils, i definitely prefer it over YAML and XML (yes, the latter has schemas…) though there are some things I dislike about it for configuration. Which is fair because it’s a serialization language. But man I could really do without string quoting keys and the no trailing commas (again, fine for serialization), and sometimes I could really use proper comments or references.
There’s a reason there are so many extensions. JSONC, JSON Schema, JSON References, JSON Pointer, JSON5, J8, all because people want to use it for their purpose… it’s a bit of bastardization, but still better than YAML.
For most user facing configuration purposes, TOML is probably the better choice. But again, I think ultimately the central database approach is better. And while a filesystem is a database, the logic is broken once you put keys into the files.
Remember these apps for Android?

Does this include extra RAM? If not, it’d be foolish not to add a little. Tons of free apps that can do it.
While you’re at it, degauss your monitor.
I used to do this, not because I know what it meant, but because I liked the ping it did.
I can hear this comment.
Though I can also feel the disappointment when you see a distortion, hit degausse, and it doesn’t resolve the distortion.
But when it did work, it was as satisfying as pressing on a dead LCD pixel and seeing it come back to life.
Hey, I’m a retired Microsoft engineer. Hey, did you know that DOS programs were actually pretty cool, I engineered the minimize buttons and Steve Balmer definitely didn’t touch me inappropriately.
I remember working on the Start menu. Such a simple and effective solution, when it was still new, and which never involved Steve Ballmer re-enacting that scene from Ghost as the Patrick Swayze character while I tried to compile my code.
I edited my registry and just deleted the entries and keys that were no longer relevant. Mostly by gut feeling. I sure do miss that old computer.
Did Linux ever defrag or do inodes make that irrelevant?
Fragmentation is mostly a non-issue with ext2/3/4. If you’re filling drives to the brim with data usually accessed in sequence (a media library for example), you should still defrag occasionally to improve access times.
Edit: This assumes you’re using physical harddisks. SSDs are not negatively affected by data fragmentation in any way that functionally makes a difference.
Makes sense thanks for taking the time.
not inodes but the ext2 FS itself.
XFS and BTRFS do need to be occasionally defragged if you use them on a single HDD (non RAID).
NTFS got away with never updating itself due to the introduction of SSDs, which is why Windows had to be aggressively defragged on HDDs starting from the Win 8 era onwards.
Thank you! <3
Ext2 and later made it irrelevant.
inodes are just the id of a file entry on disk (e.g. NTFS has them, but calls them records)
There is still a need to defrag under *nix, but it’s just really uncommon because you’ll only get them when you update a file in-place, and most things don’t do that under *nix. So you’ll only see them in the common case with something like bittorrent downloads, and clients can still avoid that a lot of the time.
Ext tries to avoid it by trying to keep space open in front of the write sector, or finding a space when it commits to disk rather than up front. If that fails the file gets fragmented. If you don’t have a lot of space available on the disk it’s more likely to happen (though this is the case on Windows as well for a slightly different reason. It’s why Windows used to recommend that you leave at least 10% free space on the disk). Larger files obviously more likely to fragment as well.
I see, thanks!
Fuck is a defrag?
Welp. I’m old now I guess.
Gather round the campfire youngsters, and let me regale you of a time when hard drives saved linearly and deletions eventually caused your hard drive to look like a Rubik’s cube exploded, and so you defragmented it so it was all nice and tidy, like an unexploded Rubik’s cube.
Source: going purely by the accompanying graphic when you defragged that sumbitch
The way hard drives work is when you store a file it is written to sectors, and each sector has a bit of data in the sector and file table to go “this sector, then that sector, then that next sector, etc, etc”. Now as you add and delete files your files start to get into a couple of sectors here, one way over there, then three sectors over here, and so on, and all your files are like that. That means that your HDD’s have to work way harder and slower to access those sectors. That is called File Fragmentation.
Defragmentation, or Defrag/Defragging is the act of moving those sectors so they are continuous and have little or no fragmentation. Better Defragging programs would also use the placement of the files on the disk to make the more important or more commonly used programs on the fastest to access parts of the disk and the slower programs at the slower to access parts of the disk.
It also often came with a popular display option of the work it has done vs what is left to do that you can find a simulation here https://defrag98.com/
Eventually Computers got so powerful and so mutithreaded that they could do this while the computer was running and doing other things and the one that came with the OS was just good enough for people to largely stop doing it manually. With modern SSD’s though this is not necessary as they kind of do their own kind of defrag called TRIM.
Back in the day when hard drives were smaller, you’d easily find yourself using a major fraction of it. If you keep adding and deleting files of different sizes, using a drive fully gets complicated. You may cumulatively have the space for your new file, but you may not have enough space in a row, so it’ll fail to write the file. Defragging was a really slow operation that moved all the free space to one side, so you can easily add new files. It’s the digital equivalent of pushing all your hangers to one side in the closet.
It’s not that saving the file would fail, but it would take longer to read because the stylus would have to read parts of it from wildly different locations on the drive. Defragmentation reorders everything so that the memory blocks for each of these files are next to each other so the stylus doesn’t have to move as much.
Why is it no longer an issue with modern moving parts HDDs? Was it some sort of firmware related limitation?
I don’t think it’s less of a modern issue and more that current operating systems do that decrag process more automatically, I think. That’s just a guess though.
Back in the day when hard drives were smaller, you’d easily find yourself using a major fraction of it
I find myself doing that now! My work machine in particular is very long-suffering on this front.
Defrag is still very much a thing just not so.mich for the average computer.
You know first person shooters? If you kill someone it’s called a “frag”, as in fragmenting their body pars. If you revive someone it’s a “defrag”.
Something windows users had to do in the past because they bought a shit operating system
After all these years on UNIX and Linux I do miss a good registry cleaning (as well as defragmenting!)
You got ZFS? A pool scrub can be quite satisfying.
You could zero your free space. Useful if you want to backup a drive and compress the image.
Hey now, a good registry cleaning helped a lot back in the day…
How do you think we erased our ‘Find Files’ of ‘C:\MyPornStash’?..
Well, that sucks. I’m not going through the whole video but just looking at what the legal filing said of his crime, I’m not entirely convinced he’s reformed. He was a damn adware scammer.
And he’s possibly back at it again… (Not sure if his new product is adware or similar)
Yea he brought that out but is still saying his yt is the for the likes and comments. If it’s a hobby fine, but when you start selling through it, you should be upfront about it no longer being a hobby.
TIL the Plummer had indeed went to the shitter.
My dad delighted in using these programs.















