Skip to content

Commit

Permalink
t/nvmept: add trim test with ioengine options enabled
Browse files Browse the repository at this point in the history
Add a test for a trim workload with ioengine options enabled like the
ones we have for read and write. fixedbufs cannot be enabled for a
trim-only workload because fio does not allocate data buffers for these
workloads.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
  • Loading branch information
vincentkfu committed Jul 5, 2023
1 parent 8604be0 commit d47132c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions t/nvmept.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,23 @@ def check_result(self):
},
"test_class": PassThruTest,
},
{
# We can't enable fixedbufs because for trim-only
# workloads fio actually does not allocate any buffers
"test_id": 15,
"fio_opts": {
"rw": 'randtrim',
"timebased": 1,
"runtime": 3,
"fixedbufs": 0,
"nonvectored": 1,
"force_async": 1,
"registerfiles": 1,
"sqthread_poll": 1,
"output-format": "json",
},
"test_class": PassThruTest,
},
]

def parse_args():
Expand Down

0 comments on commit d47132c

Please sign in to comment.