I have a C++ application on Linux which writes some data to an SSD. The application writes at ~100 MBytes per second.
Every second, the application writes 20 new files in to the disk. Additional threads of the application perform other logic and maintenance, beside those 20 threads.
For now, my application uses multiple threads to write multiple files at the same time, writing one file per thread.
It is better to change the design of the code and have one thread write all 20 new files every second?