在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 !!!
本文介绍了一种在Ubuntu虚拟机环境下遇到的高磁盘I/O消耗问题及解决方案。通过使用iotop工具发现jbd2进程导致磁盘访问受阻,并通过调整VirtualBox的SATA磁盘控制器设置中的'UseHostI/OCache'选项有效解决了这一问题。
555

被折叠的 条评论
为什么被折叠?



