WEBVTT

00:00:00.000 --> 00:00:06.540
back in the day defragmenting a hard drive was computers 101 it was something

00:00:04.140 --> 00:00:10.860
that even lots of non-tech people knew was a good idea because if you didn't

00:00:08.340 --> 00:00:14.219
your computer would take forever to find all the different pieces of the file

00:00:12.420 --> 00:00:18.779
that you wanted scattered all around your drive then you'd get really annoyed

00:00:16.260 --> 00:00:22.920
and violate your parole again but it's actually been a while since remembering

00:00:20.880 --> 00:00:25.800
to manually defrag your system has been all that important and let's get the

00:00:24.420 --> 00:00:30.900
really obvious reason out of the way first ssds are more common than ever and

00:00:28.740 --> 00:00:34.320
because they can access all of that data that's spread around in different parts

00:00:32.399 --> 00:00:38.760
of the disk it's more or less the same time defragmenting them is unnecessary

00:00:36.600 --> 00:00:42.660
and in fact can even be harmful for the drive because defragmenting uses up

00:00:40.559 --> 00:00:47.040
those precious right Cycles which are very much limited your SSD has a finite

00:00:44.820 --> 00:00:49.980
number of those before I mean you might still be able to read

00:00:49.020 --> 00:00:53.820
it but you're not going to write anything else but let's say you're using

00:00:52.020 --> 00:00:58.260
mechanical hard drives for inexpensive mass storage for running a server or

00:00:56.160 --> 00:01:01.800
just because you enjoy how chunky they are well it turns out that you can

00:01:00.239 --> 00:01:06.119
probably get away with not defragging your drive for longer than you used to

00:01:03.420 --> 00:01:09.420
but why modern file systems have a few different tricks to stop fragmentation

00:01:07.680 --> 00:01:14.159
before it even happens on mechanical drives a big one is the use of something

00:01:11.580 --> 00:01:18.360
called an extent which is pretty easy to understand conceptually actually it's

00:01:16.260 --> 00:01:22.860
just a continuous area of the disk reserved for one specific file this way

00:01:20.759 --> 00:01:26.880
as data is added to the file it has pre-allocated space where that data can

00:01:24.840 --> 00:01:30.119
go instead of being fragmented and thrown all over the disc platter pretty

00:01:28.380 --> 00:01:34.140
much every major current file system uses extends including NTFS which is

00:01:32.400 --> 00:01:38.340
what Windows uses however the versions of Windows prior to XP meant mainly for

00:01:36.720 --> 00:01:43.920
consumers you know the ones that were still based on MS-DOS still use the more

00:01:40.860 --> 00:01:46.380
dated file systems fat 16 and FAT32

00:01:43.920 --> 00:01:51.540
which had limited or no support for extends making file fragmentation much

00:01:49.380 --> 00:01:54.840
more common another simple but not automatic trick you can try is

00:01:53.040 --> 00:01:59.040
compression file compression works by expressing longer strings of data as

00:01:57.420 --> 00:02:02.399
shorter strings kind of like how you can use an acronym instead of pronouncing

00:02:00.600 --> 00:02:06.960
the full name of whatever it is you're talking about the primary benefit of

00:02:04.259 --> 00:02:10.979
compression is to save disk space but it can also reduce fragmentation because

00:02:08.700 --> 00:02:14.340
the gaps it leaves for new files are larger meaning that they're less likely

00:02:12.599 --> 00:02:18.300
to be fragmented at all newer versions of Windows make it easy to compress an

00:02:15.959 --> 00:02:21.720
entire drive with just one click but be warned that depending on what kind of

00:02:19.800 --> 00:02:25.980
data you have in your drive and how fast or slow the rest your computer is your

00:02:23.940 --> 00:02:30.060
results can vary significantly since compressing and then decompressing files

00:02:28.080 --> 00:02:34.020
when you open them back up puts some load on your CPU and if you have lots of

00:02:32.340 --> 00:02:38.280
large files compressing can actually make fragmentation worse making

00:02:36.360 --> 00:02:41.700
compression more of a try it and see kind of solution but there are a couple

00:02:40.319 --> 00:02:44.819
of more interesting techniques that you can benefit from especially if you're a

00:02:43.319 --> 00:02:51.239
Mac or Linux user we'll tell you about those right after we thank Ridge for sponsoring this video simple yet elegant

00:02:48.840 --> 00:02:55.860
the ridge wallet holds up to 12 cards and still has room for cash with a money

00:02:53.459 --> 00:02:59.580
clip or elastic band its low profile means that the ridge wallet will fit in

00:02:57.660 --> 00:03:02.640
most pockets and bed compartments with no need to worry about durability or

00:03:01.140 --> 00:03:06.900
theft because the ridge wallet is made with premium RFID blocking materials

00:03:04.800 --> 00:03:09.720
they even offer a lifetime warranty if you're selling the fence just try it out

00:03:08.220 --> 00:03:15.180
the team over at the ridge are so confident that you'll love their product they've offered a 45-day test drive

00:03:12.959 --> 00:03:18.780
period if you're unsatisfied simply send the wallet back for a full refund the

00:03:16.980 --> 00:03:23.099
rage anniversary sale is happening now until March 24th so check them out at

00:03:20.580 --> 00:03:28.260
the link below one really cool feature is delayed allocation or allocate on

00:03:25.920 --> 00:03:32.159
flush if you want a name that's frankly crappier is a cool tactic that involves

00:03:30.540 --> 00:03:37.080
holding the data that's going to be written on the drive in memory before

00:03:35.280 --> 00:03:41.220
it's transferred to the disk while it's being held either in the hard drives

00:03:39.180 --> 00:03:45.299
cache itself or in system RAM the file system works to reserve those contiguous

00:03:43.140 --> 00:03:48.299
blocks of storage and the data isn't actually written until that outside

00:03:46.560 --> 00:03:51.360
memory either or fills up or the operating system is ready to write it

00:03:49.739 --> 00:03:55.080
this has the effect of keeping files less fragmented and is a Hallmark of

00:03:53.099 --> 00:04:00.060
file systems like apfs which is used by Apple as well as ext4 common among Linux

00:03:57.840 --> 00:04:04.260
users but speaking of Apple they were kind of famous for making claims that

00:04:01.860 --> 00:04:08.040
macOS hard drives somehow didn't need to be defragmented and this was because

00:04:06.360 --> 00:04:12.239
of a feature called transparent defragmentation in h of S Plus where

00:04:10.620 --> 00:04:16.019
files below a certain size would be defragmented automatically when you open

00:04:14.340 --> 00:04:19.799
them up although this would obviously take a little time it would speed things

00:04:18.000 --> 00:04:23.280
up the next time you needed the file and of course make things less painful if

00:04:21.299 --> 00:04:27.479
you went a long time since your last manual defrag which they actually made

00:04:25.139 --> 00:04:31.080
kind of difficult to do of course none of this is to say that you shouldn't be

00:04:29.340 --> 00:04:34.500
manually defragmenting your mechanical drives every now and again or you know

00:04:32.639 --> 00:04:38.340
doing it on schedule but these days it's just not as big of a deal if you forget

00:04:36.060 --> 00:04:42.720
I wish I could say the same about filing my taxes it is tax season isn't it

00:04:40.740 --> 00:04:45.900
thanks for watching guys like dislike check out some of our other videos maybe

00:04:44.100 --> 00:04:48.979
with video suggestions down below and don't forget to subscribe and follow
