228 Star 835 Fork 386

GVPopenEuler / kernel

 / 详情

[openEuler 20.03 x86_64] qemu虚拟机性能压测结果不理想

Fixing
Bug
Opened this issue  
2021-06-24 14:59

【标题描述】分别在CentOS-7.2及openEuler-20.03系统上使用qemu创建了虚拟机进行压测,j结果不理想,希望能得到一些优化建议

实测结果小结:
1、Web服务性能分两种情况,当宿主机未做软中断均衡时,两台虚拟机的性能指标不均衡,但宿主机整机指标与CentOS接近;当宿主机做了软中断均衡处理后,两台虚拟机多性能指标接近,但宿主机整机指标略低于CentOS

此处的软中断不均衡是指:使用系统的irqbalance服务,默认中断绑核在偶数上,运行效果为si上有值(如下图)
输入图片说明
软中断均衡是指自己配置中断绑核,将中断绑核在所有CPU核心上

2、CPU压测结果:openEuler-20.03与CentOS-7.2没有明显差距

详细数据见实测结果部分

【环境信息】
1)硬件信息
输入图片说明

测试和对照用的两台宿主机均为PowerEdge R640,CPU详细信息如下

输入图片说明

【问题复现步骤】
1)spec软件压测
为了对比CPU单核性能,在不同核数的宿主机上,创建相同核数的vm,在vm内执行spec进行压测

2)AB模拟WEB压测
压测脚本生成如下:

cat > /root/ab_clients.sh <<'EOF'
NUM=$1
CON_MAX=$2
CON_NUM=$3
IP=$4
SIZE=$5

for((i=0;i<$NUM;i++))
do
    ab -k -r -c $CON_MAX -n $CON_NUM http://$IP/index_$SIZE.html > ab_$i.log 2>&1 &
    echo "ab -k -r -c $CON_MAX -n $CON_NUM http://$IP/index_$SIZE.html > ab_$i.log 2>&1 &"
done
EOF

压测命令,请求数逐步加压,如5000、10000...

sh ab_clients.sh 5 1000 num_of_requests testip:80

访问方式
输入图片说明

【预期结果】
openEuler虚拟机性能相比centos7.2有所提升

【实际结果】
1)CPU压测结果
输入图片说明

2)WEB压测
运行的虚拟机系统均为CentOS 7.2
输入图片说明

Comments (2)

Kayii created需求
Kayii set related repository to openEuler/kernel
Expand operation logs

Hey Kayii, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot .
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

openeuler-ci-bot added
 
sig/Kernel
label
成坚 (CHENG Jian) translation missing: en.project.new_issues_operate_log.link_issue(Normal)[openEuler 21.03] [kernel] [qemu] qemu性能压测结果不理想
成坚 (CHENG Jian) changed issue state from 新建 to 设计中
成坚 (CHENG Jian) changed description
成坚 (CHENG Jian) changed issue type from 需求 to 缺陷
成坚 (CHENG Jian) changed issue state from 设计中 to 待办的
成坚 (CHENG Jian) changed issue state from 待办的 to 修复中

Sign in to comment

Status
Assignees
Projects
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
Duration (hours)
Confirm
参与者(3)
5329419 openeuler ci bot 1632792936
C
1
https://toscode.gitee.com/openeuler/kernel.git
git@toscode.gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

Search

161121 f78d6d6f 1850385 154831 86f8c370 1850385