OOM has trouble to KVM, it can’t shot down the kvm

本文讨论了Linux系统中内存管理的问题,特别是当运行多个虚拟机(VMs)并耗尽所有内存时,Linux如何处理内存不足(OOM)情况。详细介绍了尝试在FC18环境下运行64个使用1GB内存的QEMU-KVM虚拟机时遇到的挑战,以及开启交换分区(swap)的重要性。文章最后强调了在使用QEMU-KVM或OpenStack时开启交换分区的必要性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

碰到过同样的问题。

http://peter.kingofcoders.com/?p=322

In Linux, if the system is out of memory, OOM will pick one process to kill. But someone reported the OOM can’t kill the qemu-kvm, that mean if you are running many VMs that eat up all the memory, the Linux will hang because OOM can’t kill them

In tried to run 64 VMs using qemu-kvm with 1GB ram each. Without turn on the swap, the linux just hang, i am using FC18 64 bits. If i turn on the swap, the linux will become very slow, but at least it won’t hang.

So turn on the swap is important when you are playing kvm or openstack.

Peter. 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值