Recommended Posts

Does anyone know if windows supports TRIM on M.2 SSD's?

 

I know this sounds like a common sense question BUT I've been reading that windows does not support TRIM natively on PCI express bus SSD's and the M.2 is a PCI express bus SSD technically and it only supports it on SATA interfaces natively.

Link to comment
https://www.neowin.net/forum/topic/1258842-m2-ssd-and-trim-on-windows/
Share on other sites

M.2 SSDs appear use a SATA controller to function so it should work just fine... Unless using Windows 7.

not all them do though, the ones that use a SATA controller are slower then native pci express SSD's you can get some insane speeds on native PCI express SSD's

It's working for me. You can use this nifty little tool to verify: https://github.com/CyberShadow/trimcheck

 

http://blog.thecybershadow.net/2012/12/09/ssd-trim-check-tool/

See I just ran it on a native M.2 pcie card and got this....

 

TRIM check v0.7 - Written by Vladimir Panteleev

https://github.com/CyberShadow/trimcheck

Loading continuation data from C:\Users\Default.Z99\Desktop\trimcheck-cont.json.

..

  Drive path   :  \\.\C:

  Offset       :  15902396416

  Random data  :  B0 AF A4 5C D7 59 52 95 31 D9 9E 43 3F 85 FA 43...

Reading raw volume data...

  Opening \\.\C:...

  Seeking to position 15902396416...

  Reading 16384 bytes...

  First 16 bytes: B0 AF A4 5C D7 59 52 95 31 D9 9E 43 3F 85 FA 43...

Data unchanged.

CONCLUSION: TRIM appears to be NOT WORKING (or has not kicked in yet).

You can re-run this program to test again with the same data block,

or delete trimcheck-cont.json to create a new test file.

Press Enter to exit...

 

I tried it multiple times waiting different lengths of time and even a reboot and get the same result "not working" yet windows claims trim is enabled

See I just ran it on a native M.2 pcie card and got this....

 

I tried it multiple times waiting different lengths of time and even a reboot and get the same result "not working" yet windows claims trim is enabled

 

That sucks. I need to do a little research. I'm on a SATA m.2. Perhaps PCI Express does not support it ... I'm going to follow this thread as my next system will def be m.2 PCI Express x4.

That sucks. I need to do a little research. I'm on a SATA m.2. Perhaps PCI Express does not support it ... I'm going to follow this thread as my next system will def be m.2 PCI Express x4.

 

I only went looking when reading about it in some forensics newsletter we get at work... and low and behold it seems to be missing support for PCIe M.2 cards in windows.. it claims Linux supports it but now windows, windows only supports SATA interface TRIM commands

not all them do though, the ones that use a SATA controller are slower then native pci express SSD's you can get some insane speeds on native PCI express SSD's

I'm not sure I follow you... M.2 is a subset of the SATA specification and the logical interface for all drives is SATA... The spec requires it to pass through a SATA controller...

 

Source: Wikipedia M.2 Specification Overview

 

Windows 7 lacks TRIM support for M.2 SSDs due to lacking awareness of the interface in its built in AHCI driver. Windows 8+ doesn't suffer from this limitation.

 

See I just ran it on a native M.2 pcie card and got this....

 

TRIM check v0.7 - Written by Vladimir Panteleev

https://github.com/CyberShadow/trimcheck

Loading continuation data from C:\Users\Default.Z99\Desktop\trimcheck-cont.json.

..

  Drive path   :  \\.\C:

  Offset       :  15902396416

  Random data  :  B0 AF A4 5C D7 59 52 95 31 D9 9E 43 3F 85 FA 43...

Reading raw volume data...

  Opening \\.\C:...

  Seeking to position 15902396416...

  Reading 16384 bytes...

  First 16 bytes: B0 AF A4 5C D7 59 52 95 31 D9 9E 43 3F 85 FA 43...

Data unchanged.

CONCLUSION: TRIM appears to be NOT WORKING (or has not kicked in yet).

You can re-run this program to test again with the same data block,

or delete trimcheck-cont.json to create a new test file.

Press Enter to exit...

 

I tried it multiple times waiting different lengths of time and even a reboot and get the same result "not working" yet windows claims trim is enabled

Why is this program more trustworthy than Windows directly?

Why is this program more trustworthy than Windows directly?

 

Good question. Windows enables trim, doesn't verify it. Nothing in Windows says, trim is working. Prior to the Series 7 Intel chipset, trim on Raid 0 did not work. Post Series 7, it should. The only app to actually perform a physical test and validate trim is physically working that I've found is this. TRIM has to be supported by the drive/firmware, chipset/controller, and OS.

Don't know if this is relivent, but if you click "Optimise" in windows disk defrag for a SSD in Windows 8.1, the second it takes to run it will show "74% trimmed". I hadn't noticed that until only recently though (who checks disk defrag these days). 128GB M.2 SATA 42mm SSD in a Thinkpad Yoga.

I'm not sure I follow you... M.2 is a subset of the SATA specification and the logical interface for all drives is SATA... The spec requires it to pass through a SATA controller...

 

Source: Wikipedia M.2 Specification Overview

 

Windows 7 lacks TRIM support for M.2 SSDs due to lacking awareness of the interface in its built in AHCI driver. Windows 8+ doesn't suffer from this limitation.

 

Why is this program more trustworthy than Windows directly?

 

The forensic docs I'm reading claim there are two ways M.2 works, SATA and native, it also claims windows in version 7 does not support native mode (NVMHCI not AHCI) but few M.2 SSD's run in this mode apparently and just use plain SATA with AHCI, and up to windows 10 it does not support direct PCIe bus (one example card is the Plextor M6e that doesn't use SATA for M.2) these direct to PCIe cards can reach 2GB/s and actually make use of the PCI express bus bandwidth.

  • 1 year later...
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Microsoft Edge 149.0.4022.80 by Razvan Serea Microsoft Edge is a super fast and secure web browser from Microsoft. It works on almost any device, including PCs, iPhones and Androids. It keeps you safe online, protects your privacy, and lets you browse the web quickly. You can even use it on all your devices and keep your browsing history and favorites synced up. Built on the same technology as Chrome, Microsoft Edge has additional built-in features like Startup boost and Sleeping tabs, which boost your browsing experience with world class performance and speed that are optimized to work best with Windows. Microsoft Edge security and privacy features such as Microsoft Defender SmartScreen, Password Monitor, InPrivate search, and Kids Mode help keep you and your loved ones protected and secure online. Microsoft Edge has features to keep both you and your family protected. Enable content filters and access activity reports with your Microsoft Family Safety account and experience a kid-friendly web with Kids Mode. The new Microsoft Edge is now compatible with your favorite extensions, so it’s easy to personalize your browsing experience. Microsoft Edge 149.0.4022.80 changelog: Fixes Fixed an issue that prevented QR code generation from working. Feature updates Intune MAM Protected Downloads. The protected downloads feature for Intune MAM will now save downloaded files to the Documents > Microsoft Edge > Downloads folder in OneDrive. Extensions monitoring in the Edge management service. The Microsoft Edge management service now allows admins to gain visibility into extensions installed across their managed users. From the extensions monitoring page, admins can see which extensions have been installed as well as manage user requests for blocked extensions. For more information, see Microsoft Edge Extensions Monitoring. Validate Edge builds early with enterprise preview. Enterprise preview provides a simpler way for admins to flight pre-release Edge builds to their users. To reduce friction and bolster usage, users will receive pre-release builds directly inside of their Stable Edge application. Admins can allow users to easily opt-out of the preview experience, using built-in rollback to switch between their pre-release and stable channels with ease. Microsoft 365 admin center users can configure the feature, view their flighting population, and receive personalized recommendations all in one place. For more information, see Get started with Enterprise Preview in Microsoft Edge. Download: Microsoft Edge (64-bit) | 193.0 MB (Freeware) Download: Microsoft Edge (32-bit) | 170.0 MB Download: Microsoft Edge (ARM64) | 188.0 MB View: Microsoft Edge Website | Release History Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • The machines are starting to fight back any way they can.
    • No news articles about the Arch Linux repo being majorly infected with malware?!?
    • Waymo recalls self-driving software after cars enter closed freeway work zones by Paul Hill Waymo, the self-driving car maker owned by Alphabet – the parent company of Google –, has recalled some of its fifth-generation Automated Driving Systems (ADS). It did so after some of its cars drove through closed construction zones. According to the National Highway Traffic Safety Administration (NHTSA), the affected vehicles were capable of driving through a closed freeway construction zone and continuing to drive at speed. The listing on the NHTSA website says that Waymo is currently developing a solution to fix this issue, but in the meantime, freeway driving is being restricted. Waymo will update its ADS software so that vehicles can detect when they can avoid entering construction zones. According to the Safety Recall Report, on April 20, 2026, Waymo’s Field Safety Committee began meetings reviewing an event from April 11, 2026, and five events from April 19, 2026, where Waymo’s autonomous vehicles didn’t recognize and drove past ramp closure signs into the pre-planned freeway construction zones. This took place in Phoenix, Arizona. Separately, on May 18, 2026, seven Waymo vehicles entered freeway lanes with active construction in the San Francisco Bay Area by driving between cones that were placed to show the lane was closed. On the back of both of these events, Waymo restricted freeway driving until it could address the issue. In June, Waymo’s Safety Board reviewed the issue and additional information related to ADS performances around construction zones; then, as a result, it decided to conduct a recall. This development is not good for Waymo as it adds to a growing list of technical hiccups its cars have experienced. Ultimately, it will lead to more scrutiny from lawmakers around the world who will be more cautious about letting autonomous vehicles on their roads without tighter regulation. For readers in areas where Waymo operates, does this news make you more wary about stepping into one of these vehicles?
    • I'm still on Windows 10 22H2 because I didn't want to deal with all the issues in Windows 11, so I waited almost a week before installing the latest Patch Tuesday update (KB5094127), I went ahead and did it, and it was a huge mistake—ever since then, my File Explorer has seen a performance drop of about 30% when transferring large files... Once again, Microsoft has outdone itself! This update cannot be uninstalled, either through the Control Panel (via Settings) or by accessing Advanced Startup Options. The only possible alternative would be to use system restore points, but I’d have to reinstall all app and driver updates (and there’s no guarantee it would work). Or there’s the “nuclear option” of a in-place repair without losing files or apps, but even then, all my customizations would be lost! Microsoft just can’t help but mess everything up! Way to go, Microsoft! But I still don’t want your c****y Windows 11!
  • Recent Achievements

    • Week One Done
      Eurosoft10 earned a badge
      Week One Done
    • One Month Later
      Eurosoft10 earned a badge
      One Month Later
    • One Year In
      Skeet Campbell earned a badge
      One Year In
    • One Month Later
      Sharbel earned a badge
      One Month Later
    • First Post
      BizSAR earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      599
    2. 2
      +Edouard
      190
    3. 3
      PsYcHoKiLLa
      79
    4. 4
      Michael Scrip
      77
    5. 5
      Steven P.
      70
  • Tell a friend

    Love Neowin? Tell a friend!