consultation about NVME_SGL_FMT_INVALIDATE not set when using nvme-rdma t10-pi
Hi Max,
I was testing T10-PI feature of nvme-rdma recently, and found that when using T10-PI, nvme-rdma driver did not set NVME_SGL_FMT_INVALIDATE flag in the sgl type field, so the host software needs to do invalid rkey by itself. I tried to add the flag to test it. Turns out T10-PI feature is still working, and I get better IO latency with it enable. I read the original patches in the mailing list, and found that patch v1 set this flag. But it was silent dropped on patch v5 without any comments. Is it for any special considerations to delete it?
Thanks,
Ruozhu
Hi Ruozhu,
The performance tests we did for all the IO sizes showed better performance with local invalidation in most of the cases (mainly for large IOs, the remote invalidation task is harder for the HW).
Maybe there is 1 or 2 cases, such as small IO latency, that improves with remote-invalidation but for now we decided to disable it.
I guess we can add a capability for the device that will indicate it in the future.
What is the difference you see ? and what is the scenario ?
Thanks,
-Max.
Quoted 8 lines · liruozhu
Hi Max,
I was testing T10-PI feature of nvme-rdma recently, and found that when using T10-PI, nvme-rdma driver did not set
NVME_SGL_FMT_INVALIDATEflag in the sgl type field, so the host software needs to do invalid rkey by itself. I tried to add the flag to test it. Turns out T10-PI feature is still working, and I get better IO latency with it enable. I read the original patches in the mailing list, and found that patch v1 set this flag. But it was silent dropped on patch v5 without any comments. Is it for any special considerations to delete it?Thanks,
Ruozhu
Hi Ruozhu,
Quoted 12 lines · Max Gurtovoy
Hi Ruozhu,
The performance tests we did for all the IO sizes showed better performance with local invalidation in most of the cases (mainly for large IOs, the remote invalidation task is harder for the HW).
Maybe there is 1 or 2 cases, such as small IO latency, that improves with remote-invalidation but for now we decided to disable it.
I guess we can add a capability for the device that will indicate it in the future.
Quoted 15 lines
What is the difference you see ? and what is the scenario ?
Thanks,
-Max.
Quoted 8 lines · liruozhu
Hi Max,
I was testing T10-PI feature of nvme-rdma recently, and found that when using T10-PI, nvme-rdma driver did not set
NVME_SGL_FMT_INVALIDATEflag in the sgl type field, so the host software needs to do invalid rkey by itself. I tried to add the flag to test it. Turns out T10-PI feature is still working, and I get better IO latency with it enable.
Please share your patch (informal or formal) with the performance numbers and the workload you have used that shows better I/O latency. It will make easier for everyone to understand the benefits...
Quoted 8 lines
Quoted 7 lines
I read the original patches in the mailing list, and found that patch v1 set this flag. But it was silent dropped on patch v5 without any comments. Is it for any special considerations to delete it?
Thanks,
Ruozhu
Hi Max,
Quoted 5 lines · Max Gurtovoy
Hi Ruozhu,
The performance tests we did for all the IO sizes showed better performance with local invalidation in most of the cases (mainly for large IOs, the remote invalidation task is harder for the HW).
Maybe there is 1 or 2 cases, such as small IO latency, that improves with remote-invalidation but for now we decided to disable it.
I test it with single thread 4K write IO, maybe this is why I get better latency data.
I will test various IO models when I have the opportunity, and then give you feedback.
In addition, I would like to know if the remote invalidation task is harder for the HW, Why do we need to enable it in the general(no t10-pi) scene?
Thanks,
Ruozhu
Quoted 19 lines
I guess we can add a capability for the device that will indicate it in the future.
What is the difference you see ? and what is the scenario ?
Thanks,
-Max.
Quoted 8 lines · liruozhu
Hi Max,
I was testing T10-PI feature of nvme-rdma recently, and found that when using T10-PI, nvme-rdma driver did not set
NVME_SGL_FMT_INVALIDATEflag in the sgl type field, so the host software needs to do invalid rkey by itself. I tried to add the flag to test it. Turns out T10-PI feature is still working, and I get better IO latency with it enable. I read the original patches in the mailing list, and found that patch v1 set this flag. But it was silent dropped on patch v5 without any comments. Is it for any special considerations to delete it?Thanks,
Ruozhu.
Hi Max,
Quoted 9 lines · Max Gurtovoy
Hi Ruozhu,
The performance tests we did for all the IO sizes showed better performance with local invalidation in most of the cases (mainly for large IOs, the remote invalidation task is harder for the HW).
Maybe there is 1 or 2 cases, such as small IO latency, that improves with remote-invalidation but for now we decided to disable it.
I guess we can add a capability for the device that will indicate it in the future.
What is the difference you see ? and what is the scenario ?
Sorry for the late reply, it is not very convenient for me to use the test environment recently. I tested various IO models last week.
In the low-stress model, such as 8k single-threaded writing, using remote-invalidation can increase latency and IOPS by about 20%.
In high pressure scenarios, such as 8k 32 threads and 256k 2 threads, the performance of whether to use remote-invalidation is almost the same.
In various scenarios, I have not measured that remote invalidation is worse.
The network card I use is BlueField(TM) SmartNIC 25GbE dual-port SFP28, PN: MBF1M332A-ASNAT. And I use vdbench for testing.
I would like to know what IO model you have measured that the remote-invalidation is worse?
Thanks,
Ruozhu
Quoted 15 lines
Thanks,
-Max.
Quoted 8 lines · liruozhu
Hi Max,
I was testing T10-PI feature of nvme-rdma recently, and found that when using T10-PI, nvme-rdma driver did not set
NVME_SGL_FMT_INVALIDATEflag in the sgl type field, so the host software needs to do invalid rkey by itself. I tried to add the flag to test it. Turns out T10-PI feature is still working, and I get better IO latency with it enable. I read the original patches in the mailing list, and found that patch v1 set this flag. But it was silent dropped on patch v5 without any comments. Is it for any special considerations to delete it?Thanks,
Ruozhu.