Writing data to disk in parallel?

我与影子孤独终老i 提交于 2019-11-29 08:10:59

Writing/reading in parallel to/from a single mechanical disk is not a good idea because the mechanical head needs to spin every time to service an I/O request, so using multiple threads will just bounce it around needlessly and create overhead.

You can try to benchmark a bit, but I'm afraid you'll just have to resort to using a single thread and writing sequentially.

Queueing off the disk writes to another thread seems like a qood idea, but only to one writer thread per disk so that the complex analysis can run on without the slow disk-writes holding it up.

If it's worth it you can invest some time into understanding how to use Parallel HDF5. It can write to a file in parallel.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!