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

Programmer Humor

18962 readers
356 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
 
top 20 comments
sorted by: hot top controversial new old
[–] Semi_Hemi_Demigod@lemmy.world 2 points 2 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.

[–] Alawami@lemmy.ml 0 points 2 months ago* (last edited 2 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 2 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.

[–] vocornflakes@lemmy.world 0 points 2 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 2 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 2 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.

[–] greybeard@lemmy.one 1 points 2 months ago (2 children)

Here's a little game I made because I missed it too. https://dbeta.com/games/webdefragger/

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

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

[–] greybeard@lemmy.one 1 points 2 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 2 months ago (1 children)
[–] greybeard@lemmy.one 1 points 2 months ago* (last edited 2 months ago)

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

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

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

[–] Hossenfeffer@feddit.uk 2 points 2 months ago

Defragged cows. System files cannot be moved.

[–] jaybone@lemmy.world 1 points 2 months ago

The tail is a different partition?

[–] ASeriesOfPoorChoices@lemmy.world 1 points 2 months ago* (last edited 2 months ago) (1 children)

OP has discovered Tapirs exist.

[–] Annoyed_Crabby@monyet.cc 1 points 2 months ago

Fun fact: tapir before defrag

[–] vk6flab@lemmy.radio 1 points 2 months ago (1 children)

I'm glad you defragged it, rather than fragged it..

[–] lseif@sopuli.xyz -1 points 2 months ago

its pride month you cant say ghat word

[–] s12@sopuli.xyz 0 points 2 months ago (1 children)

I thought zebras were solid state.

[–] WhiskyTangoFoxtrot@lemmy.world 1 points 2 months ago

Actually they're mostly water.