8g内存占用的问题
Tofloor
poster avatar
158******14
deepin
2017-11-28 00:11
Author
top - 16:09:18 up  4:59,  0 users,  load average: 0.77, 1.00, 1.16
Tasks: 230 total,   1 running, 228 sleeping,   0 stopped,   1 zombie
%Cpu(s):  5.2 us,  2.7 sy,  0.0 ni, 91.7 id,  0.3 wa,  0.0 hi,  0.1 si,  0.0 st
KiB Mem :  8082860 total,   194104 free,  2516372 used,  5372384 buff/cache
KiB Swap:  4194300 total,  4194300 free,        0 used.  4359792 avail Mem



贴子上传图片没反应,粘的top命令的显示结果,
想问一下,8g的内存,最后free的只有不到200M
基本上没有运行什么程序

每次装系统都发现内存分给了Swap 4个g

请问这个Swap能调整吗?

为什么这个分这么大,系统可用内存剩几百m看着挺郁闷的。

这个是一个问题吗?
你们遇到相同的问题不?

Reply Favorite View the author
All Replies
avatar
158******14
deepin
2017-11-28 00:24
#1
来个大神给我回复一下啊,谢谢!
Reply View the author
avatar
jingle
deepin
2017-11-28 01:00
#2
https://bbs.deepin.org/post/149068
来个大神给我回复一下啊,谢谢!

feedback日志走起  下次遇到后
Reply View the author
avatar
justforlxz
deepin
2017-11-28 01:23
#3
linux会用部分内存当硬盘的缓存,剩余内存越多,并不意味着系统当前负载很低。

                       total        used        free      shared  buff/cache   available
Mem:           7.6G        4.6G        145M        328M        2.8G        2.3G
Swap:          9.5G        101M        9.4G

我这边硬盘cache了2.8G了,如果只看free,我现在应该是内存爆炸。这是linux的机制。
Reply View the author
avatar
duanyao
deepin
2017-11-28 02:28
#4
Linux 的实际可用内存从来不是看 "free" 这一项的,要看 "available"。具体到你的 top 输出,是 "4359792 avail Mem",所以内存还很充足。
Reply View the author
avatar
deepinlove1987
deepin
2017-11-28 02:45
#5
一共发了三篇贴,基本都会有回复,这是一个可以驻留的论坛.
Reply View the author