Virtualbox6.1 SATA控制器默认设置导致jbd2低效磁盘访问

在Ubuntu20.04桌面环境中,我安装了Virtualbox6.1虚拟机环境,并新增了Ubuntu18.04 Server的虚拟机玩玩

在Ubuntu18.04虚拟机中,安装软件资源时,总是耗费比较长的时间,而在另外一个以Centos7为Host环境虚拟机中没有产生类似问题,所以,觉得有必要深入跟踪下。

幸而,Linux中提供了各种'''*top‘’‘’工具,用**iotop**查看了下竟然是系统进程jbd2在阻塞磁盘效率。

搜索到一篇E文说到虚拟机设置SATA磁盘的默认设置“Use Host I/O Cache”没有被勾选所致,设置了下,果如它说,不见jbd2的阻塞进程占用!

顺便提交了E文的Bug Report,希望老外能够看懂我的英文描述吧

---

I use VirtualBox 6.1 In Ubuntu 20.04
when I create a new virtual machine with SATA disk controller , but have not  set the "Use Host I/O Cache"  option (the default setting) 
if I intall a lot of debs, I will get very high disk I/O consumption at host machine, but have very very low disk throughput. 

useing  **iotop**, I find The reason is the jbd2 process blocking the disk access


Maybe it is a bug !!!
 

你可能感兴趣的:(笔记,virtualbox,jbd2,ubuntu)