我想测试数据库性能,并了解数据库吞吐量(以每秒事务数计)如何取决于磁盘属性,如IO延迟和变化,写入队列长度等。理想情况下,我需要一个可以作为磁盘卷挂载的模拟器,并且有一个包装在控制器中的RAM盘,该RAM盘允许在延迟,吞吐量,稳定性等方面设置所需的IO配置文件。我想知道是否有用于Linux的模拟器或用C编写它的最佳方法是什么?
I would start looking at loop device (losetup) and iostat. In general you can mount some image (from ramfs if needed) and perform all IO in this image
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.