3 ms·
I blame Windows Defender (anti-virus). It's the first thing I disable whenever I want to do some serious disk I/O. Also Windows still uses NTFS which dates ba
by hu3 3y ago
I blame Windows Defender (anti-virus).
It's the first thing I disable whenever I want to do some serious disk I/O.
Also Windows still uses NTFS which dates back to 2000. For compatibility reasons, fair enough. But surely NTFS wasn't designed with SSDs in mind, let alone NVMEs.
- thomastjeffery 3y agoNTFS has had several updates over the years, and supports trim just fine. Of course, that doesn't make it comparable to ext4 or zfs or whatever, but I wouldn't expect it to be the worst bottleneck in the system.
- hu3 3y agoSome updates, but it's still old. There is only so much you can do while still maintaining Microsoft's legendary backwards compatibility. For example I'm running Windows 11 Pro on this machine with a brand new NVME. "fsutil.exe fsinfo ntfsinfo c:" tells me [0] I'm running NTFS v3.1 which was released 22 years ago [1]. [0] https://i.imgur.com/VcXNO4P.png https://i.imgur.com/VcXNO4P.png [1] https://en.wikipedia.org/wiki/NTFS https://en.wikipedia.org/wiki/NTFS
- thomastjeffery 3y ago> There is only so much you can do while still maintaining Microsoft's legendary backwards compatibility. ...like adding support for more filesystems. I'm curious about what (and when) other parts of the IO stack have been updated. Something has to have changed to add trim support: I'm guessing the scheduler.
- hu3 3y agoIndeed. It's impressive how they managed to extend it. Wikipedia provides some hints: > Although subsequent versions of Windows added new file system-related features, they did not change NTFS itself. For example, Windows Vista implemented NTFS symbolic links, Transactional NTFS, partition shrinking, and self-healing.[21] NTFS symbolic links are a new feature in the file system; all the others are new operating system features that make use of NTFS features already in place. If I had to guess, most of these new functionalities leverage NTFS metadata: https://ntfs.com/ntfs-system-files.htm https://ntfs.com/ntfs-system-files.htm
- whalesalad 3y agoTRIM has nothing to do with performance. It’s for longevity of the disk.
- Isthatablackgsd 3y ago> I blame Windows Defender (anti-virus). It would be nice if Windows Defender tone down their on-the-fly aggressive scanning for anything I/O related. For any I/O activity, it regularly consumes up to 30% of my CPU. Moving files to a different directory rev up Windows Defender even it scans the folder in the past. I wish there is a granular control over Windows Defenders in a way that it would not be aggressive with every I/O activity. I would assume that Microsoft intentionally did this due to rise of randomware attacks and we unfortunately have inept people who mindlessly clicking anything. And they don't want to be liable for being lax.
- hu3 3y agoExactly. If only I could tell Windows Defender to ignore every node_modules directory I have in my computer. Literally millions of files.
- whalesalad 3y agoThe solution is to not use windows.
- trympet 3y agoYou may want to give dev drive a try https://learn.microsoft.com/en-us/windows/dev-drive/ https://learn.microsoft.com/en-us/windows/dev-drive/