[Problem feedback] 占用内存过高
Tofloor
poster avatar
张立强
deepin
2025-12-16 15:09
Author

开机执行:free -h

            总计        已用        空闲        共享   缓冲/缓存        可用

内存: 28Gi 26Gi 742Mi 562Mi 2.5Gi 2.1Gi
交换: 15Gi 8.1Gi 7.9Gi

该如果释放内存?

Reply Favorite View the author
All Replies
张立强
deepin
2025-12-16 15:18
#1

  • 仅清理页缓存(pagecache)
sync; echo 1 > /proc/sys/vm/drop_caches
  • 清理dentry和inode
sync; echo 2 > /proc/sys/vm/drop_caches
  • 清理页缓存、dentry和inode
sync; echo 3 > /proc/sys/vm/drop_caches

重启电脑后内存被释放了

free -h
总计 已用 空闲 共享 缓冲/缓存 可用
内存: 28Gi 4.5Gi 21Gi 339Mi 4.3Gi 24Gi
交换: 15Gi 0B 15Gi

Reply View the author
zccrs
deepin
2025-12-16 16:04
#2

都是哪些进程用的?

Reply View the author