18 Star 28 Fork 114

src-openEuler/qemu

 / 详情

qemu-6.2.0 内存预分配性能比 qemu-4.1.0有严重下降

待办的
任务
创建于  
2023-04-28 17:37

openEuler-22.03(SP1) 的qemu版本是 qemu-6.2.0,
测试发现内存预分配性能相比 openEuler-20.03(SP3)的qemu-4.1有大幅下降:
qemu-4.1.0 预分配32GB内存耗时 ~7s
qemu-6.2.0 预分配32GB内存耗时 ~12s

复现步骤:

  1. 创建测试虚机磁盘:
    $ qemu-img create -f qcow2 t1.qcow2 100G

  2. 卸载qemu-4.1.0,安装 qemu-6.2.0:
    $ rpm -e qemu-4.1.0-62.oe1.x86_64
    $ rpm -ivh qemu-6.2.0-65.oe2203sp1.x86_64.rpm

  3. 创建虚拟机,加入预留内存参数: -mem-prealloc -overcommit mem-lock=on:
    $ qemu-kvm -enable-kvm -name t1 -m 32768 -smp cpus=4 -hda t1.qcow2 -mem-prealloc -overcommit mem-lock=on -monitor stdio

  4. 查看虚机创建时间(可以监控内存分配过程耗时)

  5. 卸载qemu-6.2.0,安装 qemu-4.1.0, 重复上述:#3,#4过程,对比耗时指标;

评论 (1)

wanglmb 创建了任务

Hi wanglmb, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Virt, and any of the maintainers: @Chuan , @imxcc , @ZhiGang , @Bin Wu , @alexchen , @朱科潜 , @frankyj915 , @yezengruan , @ZhangBo , @avenLiu , @黄勇

openeuler-ci-bot 添加了
 
sig/Virt
标签
wanglmb 修改了描述
wanglmb 修改了描述
wanglmb 修改了描述
wanglmb 修改了标题
wanglmb 修改了描述

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936 7513872 wanglmb 1672826893
1
https://gitee.com/src-openeuler/qemu.git
git@gitee.com:src-openeuler/qemu.git
src-openeuler
qemu
qemu

搜索帮助