设为首页收藏本站

ZMX - IT技术交流论坛 - 无限Perfect,追求梦想 - itzmx.com

 找回密码
 注册论坛

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

用百度帐号登录

只需两步,快速登录

搜索
查看: 1791|回复: 1

kvm虚拟化的性能太拉跨了,si系统软中断跑满,毕竟是基于驱动级io虚拟化所以效率不行

[复制链接]
 成长值: 336

签到天数: 4737 天

[LV.Master]伴坛终老

发表于 2021/12/11 21:46 | 显示全部楼层 |阅读模式 |Google Chrome 96.0.4664.93|Windows 10
天涯海角搜一下: 百度 谷歌 360 搜狗 有道 雅虎 必应 即刻
kvm虚拟化的性能太拉跨了,si系统软中断跑满,毕竟是基于驱动级io虚拟化所以效率不行

诶,任何一个虚拟化性能都比kvm高
毕竟kvm是基于驱动级io虚拟化,效率不行可以理解
1.png

2.png

才5W连接数就塌了
3.png

放hyper里面,,可以跑100W连接数

听大佬说所以才要SRIOV来提升网卡性能

好可惜,网上云厂商都不愿意用hyper来做虚拟化,都用开源免费无需授权的kvm,这稀烂kvm搞的性能不到hyper的20分之一
毕竟这样故意摆烂才能卖什么黑曜石物理机对不对!!!

si跑死系统,hi全部为0,太难了
通过命令可以看到网卡型号信息,但是这命令不支持看有开没开SRIOV
https://bbs.itzmx.com/thread-99522-1-1.html

然后拿去ark查资料,,,发现,好吧,82540EM这破网卡就不支持SRIOV
https://ark.intel.com/content/www/cn/zh/ark/products/1285/intel-82540em-gigabit-ethernet-controller.html

发工单问问商家,然后客服被我问傻了
hello, What do I need to ssh order the verify check enable SRIOV in KVM my vps?
Hello,
Thank you for your patience. For better assistance on your concern I am escalating your ticket to Tier 4. Our senior admins will look into this and update you regarding this as soon as possible.
If I can be of any further assistance or if you have any questions, please let me know.
Regards,
Tarik K
Hello,
We would not be able to do this as there are 7 additional guests on the node you are using. By default this is not something thats enabled.One major change we can make is to change your network adapter to VIRT IO
If I can be of any further assistance or if you have any questions, please let us know.
Regards,
Nick R
Management
Thank you for your reply
Compared with VIRT IO, who can provide higher soft interrupt performance? The si system high cpu.
Hello, I have check through google, VIRT IO can a huge performance upgrade, please alter and VIRT IO.
Hello,
I will need to reboot the device to apply this change. THis will only change the network driver. If you want the disk driver changed it would require a reinstall.
Please confirm i can reboot the machine to enable network virt-io
If I can be of any further assistance or if you have any questions, please let us know.
Regards,
Nick R
Management
Yes, you please change.
Hello,
The config change is completed and the system is rebooting shortly. Please let us know if you require any further assistance
If I can be of any further assistance or if you have any questions, please let us know.
Regards,
Nick R
Management
Thank you, I have check the test, soft interruption hold reduce 80% to 5%.
IMG: https://ldbbs.ldmnq.com/bbs/topic/attachment/2022-1/18b5b369-11c3-4696-b6ab-8708da6201a9.png



通过查阅资料,KVM用qemu的99%都是模拟卡,查到的型号不一定是真实的物理型号
网络性能定义在 SR-IOV > Virtio > 模拟卡
https://www.linux-kvm.org/page/10G_NIC_performance:_VFIO_vs_virtio
https://www.juniper.net/documentation/en_US/junos/topics/concept/disaggregated-junos-virtio-sr-iov.html

通过群友了解到,,整个业界kvm虚拟化也就ucloud开的SR-IOV,开了关不掉 cx5
Q: 开启网络增强2.0的机型中,为何可以看到eth0, eth1, eth2 3张网卡?业务应该使用哪张网卡?
A:eth1是非网络增强网卡,eth2是网络增强2.0网卡;通常,主机的收发包由eth2支持,保持网络增强2.0的高性能,但由于网络增强2.0网卡在迁移时无法保持连通性,故主机在线迁移时,会由eth1保持连通性。由于eth1和eth2的连通性会变化,ucloud提供了eth0作为master网卡,在eth1通时映射eth1,在eth2通时映射eth2。业务使用时,直接使用eth0网卡即可
等于说就是每个虚拟机里都跑个bond1

联系机房给KVM打开了Virtio网卡直通,现在舒服多了,宽带跑3百M,si软中断基本没有了,占用不超过5%,之前跑50M软中断就占用80%

补充下帖子,今天我查了下两大国内云都是virtio_pci,怪不得跑起宽带来性能那么高

评分

参与人数 1樱币 +1 收起 理由
寻宝人2339 + 1 淡定

查看全部评分

欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复

使用道具 举报

签到天数: 1167 天

[LV.10]以坛为家III

发表于 2021/12/13 04:51 | 显示全部楼层 |Google Chrome 96.0.4664.93|Windows 10
路过
欢迎光临IT技术交流论坛:http://bbs.itzmx.com/
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册论坛 新浪微博账号登陆用百度帐号登录

本版积分规则

手机版|Archiver|Mail me|网站地图|IT技术交流论坛 ( 闽ICP备13013206号-7 )

GMT+8, 2024/12/23 23:44 , Processed in 0.128123 second(s), 20 queries , MemCache On.

Powered by itzmx! X3.4

© 2011- sakura

快速回复 返回顶部 返回列表