You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello~ I do a simple test about the latency of liblightnvm. Then compare with the posix interface.
This is what I do:
Open nvm dev with nvm_dev_open
Write a string into this dev
Calculate the latency of such a write op.
I find the latency is a bit long, around 1ms. Do I use the interface with wrong?
And I repeat this test with posix interface. I'm not sure the result is correct or not but the latency is obviously shorter, about 60us. I use femu in white-box-SSD mode to emulate OCSSD . Do you have any idea or advice about my problem? Shall I pull this issue in femu project?
Hi @ChaosD,
I apologize, did not see this. You are seeing this difference for two reasons:
liblightnvm when opening with "/dev/nvme0n1" is using the NVMe Driver IOCTL interface for sending the command, thus in this way it blocks until the NVMe command is completed, so the time measured should be close the the round-trip-time it takes femu to process and complete a command + overhead of the ioctl() syscall and the in-kernel handling of the command.
The posix write/read you do here is opening the device with open("/dev/nvme0n1", O_RDWR);, since this is not using O_DIRECT what you are really measuring is how long it takes to utilize the Linux page cache.
Hello~ I do a simple test about the latency of liblightnvm. Then compare with the posix interface.
This is what I do:
I find the latency is a bit long, around 1ms. Do I use the interface with wrong?
And I repeat this test with posix interface. I'm not sure the result is correct or not but the latency is obviously shorter, about 60us. I use femu in white-box-SSD mode to emulate OCSSD . Do you have any idea or advice about my problem? Shall I pull this issue in femu project?
Thanks for your watching!
This is my test and result:
Code:
Output:
The text was updated successfully, but these errors were encountered: