Linux centos7系统执行yum跳出Exiting on user cancel解决办法,总是被Killed,内存不足杀死进程,无法启动锐速tcp加速,kvm虚拟化动态内存超售(HugePages)
yum无法执行是内存不足导致的,定位到
[root@test ~]# dmesg | grep 'Out of memory'
[ 297.018784] Out of memory: Kill process 1284 (yum) score 7 or sacrifice child
[ 311.199801] Out of memory: Kill process 834 (tuned) score 4 or sacrifice child
[ 311.419631] Out of memory: Kill process 1145 (kangle) score 3 or sacrifice child
[ 311.874535] Out of memory: Kill process 833 (mysqld) score 1 or sacrifice child
[ 311.908636] Out of memory: Kill process 491 (polkitd) score 1 or sacrifice child
[ 311.936735] Out of memory: Kill process 1133 (cdnbest) score 1 or sacrifice child
[ 312.010911] Out of memory: Kill process 561 (NetworkManager) score 0 or sacrifice child
[ 312.025528] Out of memory: Kill process 562 (gmain) score 0 or sacrifice child
[ 312.356744] Out of memory: Kill process 1216 (sshd) score 0 or sacrifice child
[ 312.577229] Out of memory: Kill process 1216 (sshd) score 0 or sacrifice child
[ 312.605899] Out of memory: Kill process 1396 (lotServer.sh) score 0 or sacrifice child
[ 312.665263] Out of memory: Kill process 1112 (rsyslogd) score 0 or sacrifice child
[ 312.694343] Out of memory: Kill process 1149 (in:imjournal) score 0 or sacrifice child
[ 312.856384] Out of memory: Kill process 1432 (systemd-udevd) score 0 or sacrifice child
[ 313.001333] Out of memory: Kill process 1431 (systemd-udevd) score 0 or sacrifice child
[ 313.433675] Out of memory: Kill process 1142 (kangle) score 0 or sacrifice child
[ 313.653308] Out of memory: Kill process 1118 (crond) score 0 or sacrifice child
[ 313.863466] Out of memory: Kill process 1425 (acce-3.11.36.2-) score 0 or sacrifice child
[ 485.989867] Out of memory: Kill process 1539 (yum) score 5 or sacrifice child
[ 526.442162] Out of memory: Kill process 1540 (yum) score 7 or sacrifice child
[ 527.566683] Out of memory: Kill process 1540 (yum) score 7 or sacrifice child
[ 527.775615] Out of memory: Kill process 1540 (yum) score 7 or sacrifice child
[ 714.152401] Out of memory: Kill process 1649 (yum) score 6 or sacrifice child
[ 768.726852] Out of memory: Kill process 1656 (yum) score 6 or sacrifice child
[ 769.955937] Out of memory: Kill process 1656 (yum) score 6 or sacrifice child
[ 794.681401] Out of memory: Kill process 1656 (yum) score 6 or sacrifice child
[ 883.994721] Out of memory: Kill process 1661 (yum) score 6 or sacrifice child
[ 959.288157] Out of memory: Kill process 1667 (yum) score 6 or sacrifice child
[ 1000.197305] Out of memory: Kill process 1667 (yum) score 12 or sacrifice child
之前系统重启后锐速启动不了也是这个原因。。。
分析了下是vps服务器使用的为kvm虚拟化,查了下原来是机房kvm虚拟化做了动态内存超售
服务器总是执行不了yum跳出Exiting on user cancel,开机就自动用尽了内存,在尝试增加swap