Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# ThreadPool for writing to SSD disk

I have a thread pool writing data to an SSD disk. (windows XP, c#) I would like to choose a pool size to optimize performance. Theoretically, should performance improve with more threads? How do SSDs handle concurrent writes? And also concurrent reads, for that matter?

Thanks!

like image 245
Jacko Avatar asked Feb 20 '26 08:02

Jacko


1 Answers

If you need to perform random io operations, you might want to ensure you're drive is running in AHCI, as random performance with high concurrency is usually faster with AHCI than IDE (see http://benchmarkreviews.com/index.php?option=com_content&task=view&id=505&Itemid=38&limit=1&limitstart=3).

This review also shows that concurrent random reads and writes (4K-64Trd Results) are faster than when using only a single thread (4K results).

like image 186
BatteryBackupUnit Avatar answered Feb 22 '26 22:02

BatteryBackupUnit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!