Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need clarification on writing on NVMe SSDs with maximum speed possible. #21

Open
ChaithraMahadeva opened this issue May 5, 2022 · 0 comments

Comments

@ChaithraMahadeva
Copy link

Hi,

I'm trying to write a binary file to NVMe SSD with highest speed possible. According to CrystalDiskMark results, a RAID0 Disk (8 NVMe SSDs) with 16TB capacity can give 16.5GB/s writing speed.
Then, I checked the CrystalDiskMark source code as a reference to improve write performance. I created a small trial project with CreateFile and WriteFile functions from C++ standard library to write 4MB of data 16 times sequentially and the speed I observed was just 150MB/s. On the contrary, writing 4MB of data 16 times using ofstream::write gave speed upto 4.5GB/s.

I'm now confused from my observations, whether I have interpreted your code to write faster is wrong or missed something important while using it. Kindly advice me with a small piece of example code (preferably in C++) to achieve maximum write speed in NVMe SSDs/RAID0 disks.

Thank you for your time.

Best regards,
Chaithra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant