this post was submitted on 10 Jun 2024
18 points (100.0% liked)

Programmer Humor

19149 readers
1214 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Semi_Hemi_Demigod@lemmy.world 2 points 3 months ago (2 children)

Pro tip: Defragmenting only works on spinning drives because it puts the data nearer to the spindle so seek times are shorter. Solid-state drives wear out faster if you defragment them, since every write involves a little bit of damage.

[–] vocornflakes@lemmy.world 0 points 3 months ago (1 children)

I was about to throw hands, but then I learned something new about how SSDs store data in pre-argument research. My poor SSDs. I've been killing them.

[–] Kenny@feddit.de 1 points 3 months ago (1 children)

No you didn‘t. All somewhat current operating systems do not defrag SSDs, they just run TRIM and it does not kill them.

[–] Semi_Hemi_Demigod@lemmy.world 1 points 3 months ago (2 children)

Most modern OSeses do defragmentation on the fly and you don't really need to do it anymore.

Which makes me sad because I have so many memories of watching a disk defragmenter do its thing from my childhood.

[–] Kenny@feddit.de 1 points 3 months ago

I loved watching disk defragmenter doing it‘s job as a kid. I miss it too!

[–] greybeard@lemmy.one 1 points 3 months ago (2 children)
[–] mrsgreenpotato@discuss.tchncs.de 0 points 3 months ago (1 children)

It's just Paint behind it, isn't it?

[–] greybeard@lemmy.one 1 points 3 months ago

I'm guessing you were making a joke, but the real answer is it is a Godot tile map.

[–] indepndnt@lemmy.world 0 points 3 months ago (1 children)
[–] greybeard@lemmy.one 1 points 3 months ago* (last edited 3 months ago)

Thanks. It was a silly toy, but it scratched an itch, and was good for at least one chuckle.

[–] Alawami@lemmy.ml 0 points 3 months ago* (last edited 3 months ago) (1 children)

Random reads are still slower than sequential in SSD. try torrenting for a year on SSD, then benchmark then defragment then benchmark. it will be very measureable difference. you may need some linux filesystem like XFS as im not sure if there is a way to defrag SSDs in windows.

[–] LazerFX@sh.itjust.works 1 points 3 months ago

That's because the drive was written to its limits; the defrag runs a TRIM command that safely releases and resets empty sectors. Random reads and sequential reads /on clean drives that are regularly TRIMmed/ are within random variance of each other.

Source: ran large scale data collection for a data centre when SSDs were relatively new to the company so focused a lot on it, plus lots of data from various sectors since.