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

    • But the reality is it will work for people's needs, and they don't care about the technology that makes it. Clearly not everyone's needs, but that low end space where personal laptops were only used to type emails, watch content and browse websites, but they didn't want to do that on a small screen device. Heck, writing that out I can now see the connection and reason it'll do so well. Apple is about experience. If the experience is bad, they don't release it. Low end Windows laptop manufacturers up until this point have not taken that into consideration ever before, so slow laggy usage with brittle slimey plastic shells were common. I hope that the low end space at least creates better physical products that last a bit longer, and if Microsoft get their act together, they could also have a solid OS on such low end hardware that would actually make the experience work for what the hardware was intended for. The fact that the CPU is a "cellphone", sorry mobile phone processor is irrelevant. It's about the experience, and so far, that sounds quite solid.
    • Hello, Bonjour is Apple's implementation of a multicast-DNS service, which allows devices running Apple's software and/or hardware to find each other on your local network.  I believe the Windows version was last updated around 2010. If you do not need it, you can stop and disable the Bonjour service in the Services Control Manager (filename: SERVICES.MSC).  Once you have done that, the operating system will no longer attempt to load the service. Regards, Aryeh Goretsky  
    • This AMD RX 9070 16GB GPU that performs close to Nvidia 5070 is under $600 by Sayan Sen With the memory shortage that's prevalent nowadays, discounts are super-hard to get. As such we post good deals whenever they pop up. Recently, we covered a few great discounts on SSDs wherein you can get a 4TB TeamGroup NVMe PCIe Gen4 drive for just $400 thanks to a special coupon. If you want a faster product but don't need all that capacity, you can also opt for Samsung's 990 PRO 2TB that is on sale for its lowest price in over three months. Let's say though that you are on the hunt for a 1440p gaming card. In that case AMD's RX 9070 non-XT can help, and with its 16GB VRAM, you can also run AI models locally without worrying about bottlenecking (check out our recent 9070 GRE reviews for gaming and productivity to get an idea). The PowerColor Reaper variant of the RX 9070 is currently on sale for just $580 which is a very good price in the current state of affairs (purchase link under the specs table down below). The Reaper cooler on this 9070 uses a triple‑fan design with ring‑blade fans, paired with premium dual ball bearings to extend lifespan and reduce friction. "Intelligent" fan control allows the fans to remain idle at lower temperatures, only spinning up when the GPU is under load. A nickel‑plated copper base makes direct contact with both the GPU and memory modules, helping to spread heat evenly. PowerColor also applies Honeywell PTM7950 phase‑change thermal interface material (TIM), which fills microscopic gaps between the die and heatsink for more efficient thermal transfer. The fan shroud is shorter in height as the firm has made it such that it can be used in certain SFF (small form factor) cases. The technical specifications of the Reaper RX 9070 are given in the table below: Specification Value Stream Processors 3584 Units Video Memory 16GB GDDR6 Memory Speed 20.0 Gbps Memory Interface 256-bit Engine Clock Game Clock: up to 2070 MHz Boost Clock: up to 2520 MHz Bus Standard PCI Express 5.0 x16 Display Connectors 1 x HDMI 2.1b, 3 x DisplayPort 2.1a Maximum Resolution DisplayPort: 7680 × 4320 HDMI: 7680 × 4320 Board Dimensions 289mm × 111mm × 41mm 304mm × 127mm × 42mm (with bracket) Slot 2 Minimum System Power Requirement 600W Power Connectors Two 8-pin PCI Express Get the PowerColor Reaper RX 9070 at the links below (you get only a 90-day warranty on Woot): PowerColor Reaper Radeon RX 9070 16GB Graphics Card (RX9070 16G-A): $579.99 (Sold and Shipped by Amazon US) (Was: $700) PowerColor Reaper Radeon RX 9070 16GB Graphics Card (RX9070 16G-A): $559.99 (Sold and Shipped by Woot US) Good to know This Amazon deal is U.S. specific, and not available in other regions unless specified. We only use first-party seller links (at the time of article publishing); ensure that you purchase from a first-party seller link only. Check out Today's Deals on Amazon | or our recent tech deals. Become a Prime member (for Students or SNAP) via Neowin Get Prime Access - Prime for half price (for qualifying Medicaid, EBT, SNAP) Subscribe to Prime Video, Audible Plus, Music Unlimited or Kindle Unlimited via Neowin As an Amazon Associate, we earn from qualifying purchases.
    • Are they marketed as an entry into astronomy or astrophotography? I do astrophotography. With big rigs, lots of computers, cables and headaches. I love it. And by learning this ridiculously complex hobby, I’ve learned about the objects I’m shooting. Astronomy followed from photography.
    • Microsoft confirms Recycle Bin bug across all versions of Windows by Usama Jawad A couple of days ago, we reported that the latest Patch Tuesday update has seemingly resulted in a lot of issues for many users, including OneDrive and Dropbox access problems, BitLocker recovery lockouts, and BSODs. Although Microsoft is yet to acknowledge these bugs, it has confirmed another, relatively smaller issue across all supported versions of Windows. In an update on its Windows Release Health Dashboard, Microsoft has confirmed that after installing June's Patch Tuesday update (KB5094126), you'll experience unexpected behavior when leveraging Recycle Bin. Basically, when you attempt to delete an item from the Recycle Bin, the confirm dialog will show you the internal file name of that content rather than the actual name. For example, the file may be named abc.png, but the confirm dialog will ask if you're sure that you want to permanently delete $Rxxxxx.png from the Recycle Bin. This is pretty much it for the scope of the bug itself; it just displays the wrong name in the confirm dialog. The correct name will be shown in the list view of the Recycle Bin and if you restore the file, it will return with the correct name as well. This issue affects pretty much all supported versions of Windows client and server, including: Client: Windows 11, version 26H1; Windows 11, version 25H2; Windows 11, version 24H2; Windows 11, version 23H2; Windows 10, version 22H2; Windows 10 Enterprise LTSC 2021; Windows 10 Enterprise LTSC 2019; Windows 10 Enterprise LTSB 2016 Server: Windows Server 2025; Windows Server 2022; Windows Server 2019; Windows Server 2016; Windows Server 2012 R2; Windows Server 2012 As things currently stand, Microsoft is working on a concrete solution that will be released in a "future" Windows update. It remains to be seen if the firm will wait till the next Patch Tuesday or roll out an out-of-band (OOB) fix. The good news is that commercial customers can deploy a workaround right now, but they will have to reach out to Microsoft Support for Business for additional details.
  • Recent Achievements

    • Week One Done
      Jordan Smith earned a badge
      Week One Done
    • Reacting Well
      BizSAR earned a badge
      Reacting Well
    • First Post
      AndreaB earned a badge
      First Post
    • Week One Done
      Huge Trailer earned a badge
      Week One Done
    • Week One Done
      Classifyskilleducation earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      579
    2. 2
      +Edouard
      184
    3. 3
      PsYcHoKiLLa
      75
    4. 4
      Michael Scrip
      72
    5. 5
      neufuse
      64
  • Tell a friend

    Love Neowin? Tell a friend!