OCP_2_6_Group_3
DSSD_26_Composite_Temperature_Variation_Test_Case.py
The test involves the comparison of the Composite Temperature reported on 2 separate drives from the same supplier, model, capacity, FW revision, and under identical workload conditions in the same slot to ensure a fair apples-to-apples comparison.
The objectives of this test case are to verify the following:
Device to device composite temperature variation shall be +/- 1 C under the same environmental conditions, slot location and workload.
Single device.s composite temperature variation shall not vary by more than +/- 1C once it is in steady state under the same environmental condition.
Note that environmental thermal conditions must be controlled by the supplier when testing.
NOTE: The user is required to run this script from the CLI as Yes/No questions will need to be answered
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.6 requirements referenced by this script:
TRPT-1/2/3/4
DSSD_26_Data_Integrity_Test_Case.py
- This script will run the following tests:
Issue Identify Controller and verify it’s successful
Check RTD3 Entry Latency field value
Issue a Sequential Write IO for 128kiB, QD=128
Issue Sequential Read IO for 128kiB, QD=128
Execute normal shutdown process and verify CC.SHN and CSTS.SHST values
Execute abrupt shutdown process and verify CC.SHN and CSTS.SHST values
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.6 requirements referenced by this script:
PLP-1
- check_performance_logs(dut, perf_metrics, io_bytes, shutdown_type, no_path_timeout)
Checks the performance log using the perf_metrics dict to determine if a “Performance Not Met” warning needs to be issued
- Parameters:
dut (XML_API) – Device object under test
perf_metrics (list | dict) – Performance metrics of Read and Write
io_bytes (dict) – dict for read/write bytes
shutdown_type (int) – Original Abrupt value
no_path_timeout (int) – Original no path timeout value
- Return type:
None
- collect_performance_logs(dut, io_test, perf_field)
Collects logs from the ADP and prints the performance logs for a given IO command
- Parameters:
dut (XML_API) – Device object under test
io_test (dict) – Custom IO dict
perf_field (str | list) – Performance field to be collected. Either “TestReadBytes” | “TestWriteBytes” | “TestLatencyQoS” | “TestWriteIOs” | “TestReadIOs”
- Returns:
perf_val_dict – Parsed QoS latency values or dict for Number of read/write bytes
- Return type:
dict
- execute_IO_Profile(dut, test_type, io_profile, io_runtime=-1, io_pattern=17)
- Executes each of the IO Profiles listed in Table 4
Sequential Read (MiB/s) (128kiB, QD = 128)
Sequential Write (MiB/s) (128kiB, QD = 128)
Random Read (KIOPS) (4kiB, QD = 128)
Random Writes (KIOPS) (4kiB, QD = 128)
Random 70R:30W mix (KIOPS) (4kiB, QD = 128)
- Parameters:
dut (XML_API) – Device object under test
test_type (str) – Either ‘Sequential’ | ‘Random’
io_profile (str) – IO Profile to be executed
io_runtime (int) – Time in seconds for IO to execute
io_pattern (int) – Pattern for io to be executed
- Return type:
dict
- get_runtime_seconds(dut, test_id)
Get the starting or ending timestamp and format it for use in sb_filter
- Parameters:
dut (XML_API) – Device object under test
test_id (str) – I/O testname
- Returns:
timestamp – Timestamp formatted in seconds
- Return type:
int
- restore_orig_abrupt_value(dut, shutdown_type, no_path_timeout)
Restore original value of Abrupt shutdown
- Parameters:
dut (XML_API) – Device object under test
shutdown_type (int) – Original Abrupt value
no_path_timeout (int) – Original no path timeout value
- Return type:
None
- verify_ios(io_tests)
Verifies the succession of an I/O command
- Parameters:
io_tests (list) – list of I/O Command dicts
- Returns:
io_failed – Returns failed if any io test failed
- Return type:
bool
DSSD_26_Device_Panic_Type_10_No_More_NAND_Spares_Read_Only_Mode_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 10 (No More NAND Spares)
Detect injected Panic Type 10 (No More NAND Spares)
Read log page data
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O performance test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_1_CPU_Controller_Hang_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 1 (CPU/Controller Hang)
Detect injected Panic Type 1 (CPU/Controller Hang)
Execute the workflow to attempt recovery
Verify whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_2_NAND_Hang_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 2 (NAND Hang)
Detect injected Panic Type 2 (NAND Hang)
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_3_PLP_Defect_Read_Only_Mode_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 3 (PLP Defect)
Detect injected Panic Type 3 (PLP Defect)
Read log page data
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O performance test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_4_Logical_Firmware_Error_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 4 (Logical Firmware Error)
Detect injected Panic Type 4 (Logical Firmware Error)
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O performance test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_5_DRAM_Corruption_Critical_Path_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 5 (DRAM Corruption Critical Path)
Detect injected Panic Type 5 (DRAM Corruption Critical Path)
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O performance test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_6_DRAM_Corruption_Non_Critical_Path_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 6 (DRAM Corruption Non-Critical Path)
Detect injected Panic Type 6 (DRAM Corruption Non-Critical Path)
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O performance test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_7_NAND_Corruption_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 7 (NAND Corruption)
Detect injected Panic Type 7 (NAND Corruption)
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O performance test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_8_SRAM_Corruption_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 8 (SRAM Corruption)
Detect injected Panic Type 8 (SRAM Corruption)
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O performance test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Device_Panic_Type_9_HW_Malfunction_Test_Case.py
- This script will run the following tests:
Perform sequential write/read for five minutes
Inject Panic Type 9 (HW Malfunction)
Detect injected Panic Type 9 (HW Malfunction)
Execute the workflow to attempt recovery
Determine whether the workflow has resolved the injected panic
Verify that error injection is disabled, and device is no longer in an injected panic state
Perform final I/O performance test
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
CRASH-1/2/3/4
DSSD_26_Garbage_Collection_Test_Case.py
- The objectives of this test case are as follows:
Verify that the device supports Garbage Collection during periods of no I/O (Idle GC).
Verify that Read latency does not change more than -5% from baseline when the host is issuing Dataset Management commands with AD = 1.
Verify that Read latency does not change more than -5% from baseline after the device has been performing Idle GC.
Open Compute Project Datacenter NVMe SSD Spec v2.6 requirements referenced by this script:
TRIM-5/6/7
- collect_performance_logs(test_id)
Collects logs from the ADP and prints the performance logs for a given IO command
- compare_qos_performance_logs(test_id, performance_logs, baseline_qos)
Determine if the measured QoS values are within 5% of the baseline QoS values.
- precondition(dut, INDIRECT_UNIT_SIZE)
Precondition the DUT by performing 1x128KiB sequential writes and 2x(Indirection Unit Size)KiB random writes.
DSSD_26_IO_Commands_Test_Case.py
- This script will run the following tests:
Verify Read/Write/Flush commands are successful
Verify random write I/O performance with FUA=0 and FUA=1 is within 5% of each other
Execute Flush during random write I/O and verify both pass
Do random write/read I/O with FUA=0 for both; then do random write/read I/O with FUA=0 for write and FUA=1 for read, and verify performance is within 5% of each other
If supported, disable volatile write cache, do random write I/O, and verify performance is within 5% of the value in step 2
If supported, enable volatile write cache and verify it was successful
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.5 requirements referenced by this script:
NVMe-IO-1/3/4/5/6/7/8/9/10/11/12/13/14, GETF-2
DSSD_26_IO_Latency_And_Performance_Test_Case.py
- This script will run the following tests:
Issue Get-Feature FID=C6h for PLP Health Check Interval data
Issue Set-Feature FID=C6h to set PLP Health Check Interval data for the following values: 05h, 19h, 0Fh
Issue both a Read and Write IO at 128kiB, QD=128, for 5 minutes
Compare IO tests performance to the performance logs in the ADP
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.6 requirements referenced by this script:
PLP-2/7
- check_performance_logs(perf_metrics, io_bytes)
Checks the performance log using the perf_metrics dict to determine if a “Performance Not Met” warning needs to be issued
- Parameters:
perf_metrics (list | dict) – Performance metrics of Read and Write
io_bytes (dict) – dict for read/write bytes
- Return type:
None
- collect_performance_logs(dut, io_test, perf_field)
Collects logs from the ADP and prints the performance logs for a given IO command For a Sequential IO: MiB/s, for a Random IO: IOPS
- Parameters:
dut (XML_API) – Device object under test
io_test (dict) – Custom IO dict
perf_field (str | list) – Performance field to be collected. Either “TestReadBytes” | “TestWriteBytes” | “TestLatencyQoS” | “TestWriteIOs” | “TestReadIOs”
- Returns:
perf_val_dict – Parsed QoS latency values or dict for Number of read/write bytes
- Return type:
dict
- execute_IO_Profile(dut, test_type, io_profile, io_runtime=-1, io_pattern=17)
- Executes each of the IO Profiles listed in Table 4
Sequential Read (MiB/s) (128kiB, QD = 128)
Sequential Write (MiB/s) (128kiB, QD = 128)
Random Read (KIOPS) (4kiB, QD = 128)
Random Writes (KIOPS) (4kiB, QD = 128)
Random 70R:30W mix (KIOPS) (4kiB, QD = 128)
- Parameters:
dut (XML_API) – Device object under test
test_type (str) – Either ‘Sequential’ | ‘Random’
io_profile (str) – IO Profile to be executed
io_runtime (int) – Time in seconds for IO to execute
io_pattern (int) – Pattern for io to be executed
- Return type:
dict
- get_runtime_seconds(dut, test_id)
Get the starting or ending timestamp and format in seconds
- Parameters:
dut (XML_API) – Device object under test
test_id (str) – I/O testname
- Returns:
timestamp – Timestamp formatted in seconds
- Return type:
int
- verify_ios(io_tests)
Verifies the succession of an I/O command
- Parameters:
io_tests (list) – list of I/O Command dicts
- Returns:
io_failed – Returns failed if any io test failed
- Return type:
bool
DSSD_26_Precondition_Drive.py
- This script will run the following tests:
Precondition the entire drive once with 128KiB sequential writes
Precondition the entire drive twice with INDIRECT_UNIT_SIZE_BYTES random writes
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.6 requirements referenced by this script:
N/A
- get_current_queue_depth(dut)
Get the current queue depth on the controller
- Parameters:
dut (XML_API) – Device object under test
- Returns:
Current queue depth
- Return type:
int
- set_queue_depth(dut, value)
Set the queue depth on the controller
- Parameters:
dut (XML_API) – Device object under test
value (int) – Queue depth to set
- Return type:
None
DSSD_26_Temperature_Sensors_And_Composite_Temperature_Calculation_Test_Case.py
The objectives of this test case are to verify the following:
That the device supports the number of sensors indicated by the vendor parameter data.
That the equation, settings, thresholds and artifacts provided by the vendor, and the raw sensor data, can be used to calculate a composite temperature value that matches the value reported in the SMART Log data.
NOTE: The user is required to run this script from the CLI as Yes/No questions will need to be answered
Pass/Fail: Script passes if all tests pass
Open Compute Project Datacenter NVMe SSD Spec v2.6 requirements referenced by this script:
TRPT-1 to TRPT-4