Delen via


Trim Test

This test verifies that a SATA device that supports Trim performs according to the certification requirements.

Test details

Associated requirements

Device.Storage.Hd.Trim.BasicFunction

See the device hardware requirements.

Platforms

Windows 7 (x64) Windows 7 (x86) Windows Server 2008 R2 (x64)

Expected run time

~150 minutes

Categories

Certification Reliability

Type

Automated

 

Running the test

Before you run the test, complete the test setup as described in the test requirements: Hard Disk Drive Testing Prerequisites.

Troubleshooting

For troubleshooting information, see Troubleshooting Device.Storage Testing.

Note  

The devcon tasks may fail. If they fail with ExitCode=1, restart the system and run the test again. If the tasks fail with ExitCode=2, the driver install or driver removal failed - most commonly because the test system is not configured for AHCI (SATA) mode. This test will not pass for a system in PATA emulation mode.

 

More information

Trim is a Data Set Management command feature described in the ATA/ATAPI Command Set-2 (ACS-2) or later. For more information about the ATA/ATAPI specification, visit the T13 Technical Committee Web site.

This test installs a test miniport based on msahci, which provides a framework for validating hardware. The Trim Test uses this ATA Miniport Hardware Validation framework to generate and measure the effects that Trim has on device performance. When the test completes, the test miniport will be uninstalled.

This test may trim or overwrite any or all of the sectors on the test device. As a result, the data on the drive will be lost. This test must be run against a secondary SATA device running in AHCI mode

Parameters

Parameter Description

DiskDeviceObjLink

The device object link.

Verbosity

Detail of logging. The value can be 0, 1, or 2.

Default value: 1

 

Command syntax

Command option Description

trim.exe -d “[DiskDeviceObjLink]” -v “[Verbosity]”

Runs the test.

 

Note  

For command line help for this test binary, type /h.

 

File list

File Location

Devcon.exe

<[osbinroot]>\idw\

Dp_delete.cmd

<[testbinroot]>\nttest\driverstest\storage\wdk\trim\

Minioctl.exe

<[testbinroot]>\nttest\driverstest\storage\wdk\trim\

Msahci.cat

<[testbinroot]>\nttest\driverstest\storage\wdk\trim\

Msahci.inf

<[testbinroot]>\nttest\driverstest\storage\wdk\trim\

Msahci.sys

<[testbinroot]>\nttest\\driverstest\storage\wdk\trim\

saveinf.js

<[testbinroot]>\nttest\\driverstest\storage\wdk\trim\

Trim.exe

<[testbinroot]>\nttest\DriversTest\storage\wdk\trim\

 

 

 

Send comments about this topic to Microsoft