linux內存查看、清理、釋放命令


echo 1 > /proc/sys/vm/drop_caches

清理前

# free -h

total used free shared buffers cached

Mem: 19G 19G 203M 1.1G 82M 17G

-/+ buffers/cache: 1.5G 18G

Swap: 23G 159M 23G

 

清理后

 

# echo 1 > /proc/sys/vm/drop_caches

# free -h

total used free shared buffers cached

Mem: 19G 2.4G 17G 1.1G 680K 1.4G

-/+ buffers/cache: 1.1G 18G

Swap: 23G 163M 23G

 

查看內存條數命令:

dmidecode | grep -A16 "Memory Device$"

 

查看服務器內存槽數量及各內存條大小

linux

dmidecode | grep -A16 "Memory Device$"

 

esxi

vclient-主機-硬件狀態

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM