Skip to content

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

Description

@ChaithraMahadeva

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions