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

    • Nothing kills CMF Phone 2 Pro's successor due to rising memory prices by Hamid Ganji Storage and RAM prices have been rising over the past year, leading to a significant increase in the cost of electronics for customers around the world. Many companies are now revising their plans for upcoming devices due to higher component costs and overall production expenses. CMF is the latest company to cancel the successor to one of its best-selling phones due to rising memory prices. CMF is a sub-brand of Nothing and focuses on making budget smartphones for growing markets. The brand launched the CMF Phone 2 Pro last year with some eye-catching specifications and an affordable price. While many customers may have been waiting for a successor this year, one of the company’s executives has announced that CMF will not release a new smartphone this year. And AI is to blame. As Nothing co-founder Akis Evangelidis announced on X, the company has been working on a successor to the CMF Phone 2 Pro, but with current memory prices, it cannot “build a phone that feels like a genuine step forward at a price that makes sense for CMF.” So, no new CMF phone will be launched this year. Meanwhile, Evangelidis said the company still has several new products in the pipeline, including some in entirely new categories. He added that the Nothing brand will also continue launching new products through 2026. Budget smartphones are among the first victims of the surge in RAM and memory prices, as they have become more expensive to build. The sharp increase in memory costs could also reshape the traditional price ranges associated with budget phones. Apple CEO Tim Cook also recently said that price increases for some of the company’s products are unavoidable because RAM and memory have become significantly more expensive this year. Analysts estimate that the base price of the upcoming iPhone 18 Pro could rise to $1,399 due to current market shortages.
    • Nudge me when they bring back hardware audio acceleration so I can get my EAX 5 back. We've evolved graphics to real-time path tracing, but regressed audio some 15 years back in time with this stupid software audio stack.
    • Ocenaudio 3.19.4 by Razvan Serea  Ocenaudio is a full featured, fast and easy to use audio and music editor. It is the ideal software for people who need to edit and analyze audio files without complications. Ocenaudio also has powerful features that will please more advanced users. To assist ocenaudio development, a powerful toolset of audio editing, analysis and manipulation called Ocen Framework was created. ocenaudio is also based on Qt framework, a well known library for cross-platform development. Cross-platform support ocenaudio is available for all major operating systems: Microsoft Windows, Mac OS X and Linux. Native applications are generated for each platform from a common source, in order to achieve excelent performance and seamless integration with the operating system. All versions of ocenaudio have a uniform set of features and the same graphical interface, so the skills you learn in one platform can be used in the others. VST plugins support Ocenaudio supports VST (Virtual Studio Technology) plugins, giving its users access to numerous effects. Like the native effects, VST effects can use real-time preview to aide configuration. Real-time preview of effects Applying effects such as EQ, gain and filtering is an important part of audio editing. However, it is very tricky to get the desired result by adjusting the controls configuration alone: you must listen the processed audio. To ease the configuration of audio effects, ocenaudio has a real time preview feature: you hear the processed signal while adjusting the controls. The effect configuration window also includes a miniature view of the selected audio signal. You can navigate on this miniature view in the same way as you do on the main interface, selecting parts that interest you and listening to the effect result in real time. Multiselection for delicate editions To speed up complex audio files editing, ocenaudio includes multi-selection. With this amazing tool, you can simultaneously select different portions of an audio file and listen, edit or even apply an effect to them. For example, if you want to normalize only the excerpts of an interview where the interviewee is talking, just select them and apply the effect. Eficient edition of large files With ocenaudio, there is no limit to the length or the quantity of the audio files you can edit. Using an advanced memory management system, the application keeps your files open without wasting any of your computer's memory. Even in files several hours long, common editing operations such as copy, cut or paste happen almost instantly. Fully featured spectrogram Besides offering an incredible waveform view of your audio files, ocenaudio has a powerful and complete spectrogram view. In this view, you can analyze the spectral content of your audio signal with maximum clarity. Advanced users will be surprised to find that the spectrogram settings are applied in real time. The display is updated immediately when altering features such as the number of frequency bands, window type and size and dynamic range of the display. Ocenaudio 3.19.4 changelog: Adds fallback fonts so every language and symbol displays correctly Improves autosave and session recovery stability Improves region navigation and display Fixes a crash when the level meter is used on displays with a scaling greater than 200% Fixes memory corruption when using the silence selection tools Fixes crashes when closing a file while effects are still being processed Fixes a freeze when applying effects to many files at once (macOS) Fixes crashes related to audio devices on Windows Fixes invalid file names when exporting regions whose label is used as the file name Other bug fixes and improvements Download: Ocenaudio 64-bit | Portable | ~40.0 MB (Freeware) Download: Ocenaudio for Linux and Mac OS View: Ocenaudio Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Hasleo Disk Clone 5.8.2.1 by Razvan Serea Hasleo Disk Clone is a free and all-in-one disk cloning software for Windows 11/10/8/7/Vista and Windows Server that can help you migrate Windows OS to another disk, clone one disk to another disk or clone one partition to another location quickly and efficiently. Completely Free Windows Migration and Disk/Partition Cloning Software Migrate Windows from one disk to another without reinstalling Windows, apps. Clone one disk to another and makes the data on 2 disks are exactly the same. Clone a partition to another location without losing any data. Easily adjust the size and location of the destination partition. Convert MBR to GPT or convert GPT to MBR by cloning. Creation of Windows PE emergency disk. Extremely fast cloning speed and multi-language support. Supported OS: Windows Vista/Server 2008 or later, fully compatible with GPT and UEFI. Hasleo Disk Clone 5.8.2.1 changelog: Fixed an issue that caused disk enumeration to fail Fixed an issue where WinPE created under Windows ARM64 26H1 did not work properly Download: Hasleo Disk Clone 5.8.2.1 | 32.3 MB (Freeware) Link: Hasleo Disk Clone Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • This got me thinking, would you rather a self driving car prioritise protecting its passengers or everyone else? I'd choose the one that keeps me and my kids safest. At some point, these cars have to make those choices already, don't they? Wonder if we have a way to find out what way they lean.
  • Recent Achievements

    • Collaborator
      ryansurfer98 went up a rank
      Collaborator
    • 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
  • Popular Contributors

    1. 1
      +primortal
      546
    2. 2
      +Edouard
      188
    3. 3
      Michael Scrip
      78
    4. 4
      PsYcHoKiLLa
      74
    5. 5
      neufuse
      71
  • Tell a friend

    Love Neowin? Tell a friend!