简体   繁体   中英

Disk IO simulator on Linux

我想测试数据库性能,并了解数据库吞吐量(以每秒事务数计)如何取决于磁盘属性,如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

我将研究使用Linux的设备映射器功能来综合磁盘,更明确地说,是延迟目标 (用于减慢/拆分I / O)和flakey目标 (用于使“磁盘”不可靠)。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM