在KVM中运行windows 10响应缓慢且CPU sys占用严重的解决方法
top - 13:43:41 up 6 days, 22:24, 3 users, load average: 3.15, 2.72, 2.01
Tasks: 205 total, 4 running, 201 sleeping, 0 stopped, 0 zombie
%Cpu(s): 49.8 us, 20.2 sy, 0.0 ni, 29.7 id, 0.3 wa, 0.0 hi, 0.1 si, 0.0 st
KiB Mem : 8113620 total, 132176 free, 6632048 used, 1349396 buff/cache
KiB Swap: 999420 total, 32 free, 999388 used. 1018384 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7656 libvirt+ 20 0 7248848 3.720g 2512 S 146.2 48.1 736:00.16 qemu-system-x86
21715 libvirt+ 20 0 6707652 2.873g 2704 R 128.2 37.1 145:05.49 qemu-system-x86
31 root 25 5 0 0 0 S 1.6 0.0 133:51.26 ksmd
22127 huatai 20 0 41936 3584 2972 R 1.6 0.0 0:00.30 toptop - 14:07:23 up 6 days, 22:48, 3 users, load average: 3.25, 3.05, 2.86
Tasks: 206 total, 3 running, 203 sleeping, 0 stopped, 0 zombie
%Cpu0 : 46.5 us, 14.7 sy, 0.0 ni, 38.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 40.8 us, 31.7 sy, 0.0 ni, 26.8 id, 0.0 wa, 0.0 hi, 0.7 si, 0.0 st
%Cpu2 : 40.1 us, 20.1 sy, 0.0 ni, 39.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 70.3 us, 20.3 sy, 0.0 ni, 9.1 id, 0.3 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 8113620 total, 142212 free, 6650924 used, 1320484 buff/cache
KiB Swap: 999420 total, 0 free, 999420 used. 999268 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7656 libvirt+ 20 0 7248848 3.732g 2504 S 146.4 48.2 770:42.78 qemu-system-x86
21715 libvirt+ 20 0 6707652 2.864g 2664 R 131.1 37.0 177:21.19 qemu-system-x86
31 root 25 5 0 0 0 S 4.6 0.0 135:19.57 ksmd
22193 huatai 20 0 41936 3712 3016 R 0.7 0.0 0:00.19 top
43 root 20 0 0 0 0 R 0.3 0.0 3:25.96 kswapd0排查
使用 perf kvm --host stat live
perf kvm --host stat live参考
Last updated