自己环境内存94G,通过top命令看到内存占用了24G,但是进程mysql当当VIRT的虚拟内存就占用了32g,并且没有设置交换空间(swap=0),
那mysql中那么大的虚拟内存是从哪里申请的?
相关信息如下:
[root@host1]# free -m
total used free shared buffers cached
Mem: 96639 24291 72347 0 152 3497
-/+ buffers/cache: 20641 75997
Swap: 0 0 0
[root@host1]# top
top - 11:57:02 up 1:15, 4 users, load average: 0.87, 0.92, 1.14
Tasks: 681 total, 2 running, 679 sleeping, 0 stopped, 0 zombie
Cpu(s): 4.5%us, 1.6%sy, 0.0%ni, 92.4%id, 1.5%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 98958696k total, 24897824k used, 74060872k free, 156120k buffers
Swap: 0k total, 0k used, 0k free, 3582552k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
89164 keystone 20 0 227m 20m 3556 R 46.5 0.0 0:00.28 keystone-manage
89148 root 20 0 15432 1596 832 R 8.3 0.0 0:00.15 top
22335 qemu 20 0 10.5g 1.6g 5200 S 5.0 1.7 2:14.76 qemu-kvm
6060 mysql 20 0 32.9g 1.7g 30m S 3.3 1.8 4:18.05 mysqld
|