这内存都用到哪里了?
Tofloor
poster avatar
186******39
deepin
2018-01-05 18:25
Author
就运行了qq和firefox,8G内存,现在占用5.2G,没法活了啊简直!
最多的firefox才占了400M内存,求解决办法……



Reply Favorite View the author
All Replies
1 / 2
To page
avatar
longxiang
deepin
2018-01-05 18:43
#1
很明显,火狐是内存大户,然后是win qq
Reply View the author
avatar
duanyao
deepin
2018-01-05 18:46
#2
有些内存是深度系统监视器上看不到的,比如内存映射文件。虚拟机用得及较多,virtualbox 是做了特殊处理才能看到的:
https://bbs.deepin.org/post/145783

我估计你那个 mysqld 也有类似情况吧。你可以用 atop 看一下,按 m 按内存排序,看 RSIZE 一栏。
Reply View the author
avatar
hswddan
deepin
2018-01-05 18:51
#3
linux系统不分swap内存,你也真够大意啊,我8G内存分5G,稳妥的很
Reply View the author
avatar
186******39
deepin
2018-01-05 18:54
#4


麻烦看看是哪个占我那么多?我干掉他去!

Reply View the author
avatar
186******39
deepin
2018-01-05 18:55
#5
https://bbs.deepin.org/post/151203
linux系统不分swap内存,你也真够大意啊,我8G内存分5G,稳妥的很

本来开了4G的,慢慢就越来越卡,firefox开个页面就得等好几秒,痛苦啊
Reply View the author
avatar
duanyao
deepin
2018-01-05 19:08
#6
https://bbs.deepin.org/post/151203
麻烦看看是哪个占我那么多?我干掉他去!

没看出什么进程占内存多,但是 Shmem 有点偏高(我的机器上只有不到500M)。
你运行 df 看一下,注意 tmpfs。
另外 cat /proc/meminfo 看一下。
Reply View the author
avatar
duanyao
deepin
2018-01-05 19:09
#7
https://bbs.deepin.org/post/151203
本来开了4G的,慢慢就越来越卡,firefox开个页面就得等好几秒,痛苦啊

建议上 zram (压缩内存)。
https://bbs.deepin.org/post/148661
Reply View the author
avatar
hswddan
deepin
2018-01-05 19:13
#8
https://bbs.deepin.org/post/151203
linux系统不分swap内存,你也真够大意啊,我8G内存分5G,稳妥的很

第一张图看的没分swap啊
Reply View the author
avatar
hswddan
deepin
2018-01-05 19:13
#9
https://bbs.deepin.org/post/151203
本来开了4G的,慢慢就越来越卡,firefox开个页面就得等好几秒,痛苦啊

第一张图看的没分swap啊
Reply View the author
avatar
186******39
deepin
2018-01-05 19:22
#10
本帖最后由 l0rraine 于 2018-1-5 11:30 编辑

swap本来开了,但是太卡了,关掉了

cat /proc/meminfo结果



df结果
文件系统           1K-块      已用      可用 已用% 挂载点
udev             4025172         0   4025172    0% /dev
tmpfs             809664      1952    807712    1% /run
/dev/sdb2      103770992  60378680  38077960   62% /
tmpfs            4048308     43528   4004780    2% /dev/shm
tmpfs               5120         4      5116    1% /run/lock
tmpfs            4048308         0   4048308    0% /sys/fs/cgroup
tmpfs             809660        52    809608    1% /run/user/1000
/dev/sda5      766073852 162201760 603872092   22% /media/idn-lee/win-e
/dev/sda1      210685908 107285800 103400108   51% /media/idn-lee/win-c
/dev/sdb1      870799356 478016000 392783356   55% /media/idn-lee/win-d

Reply View the author
avatar
186******39
deepin
2018-01-05 19:31
#11
cached占用好多,这个正常吗?
Reply View the author
avatar
1***6@qq.com
deepin
2018-01-05 19:38
#12
感觉是正常的。。
Reply View the author
avatar
duanyao
deepin
2018-01-05 19:41
#13
本帖最后由 duanyao 于 2018-1-5 12:03 编辑
https://bbs.deepin.org/post/151203
swap本来开了,但是太卡了,关掉了

cat /proc/meminfo结果

仍然看不太出来,但应该是共享内存比较多。你再试试 gnome-system-monitor ,在右边菜单选中“所有进程”,在表头上右键选中“共享内存”,按共享内存排序。

还有,请直接回复别人,否则看不到提醒。
Reply View the author
avatar
tmacy
deepin
2018-01-05 20:39
#14
共享内存有2G
Reply View the author
avatar
186******39
deepin
2018-01-05 21:26
#15
https://bbs.deepin.org/post/151203
仍然看不太出来,但应该是共享内存比较多。你再试试 gnome-system-monitor ,在右边菜单选中“所有进程” ...



这样,麻烦啦!

Reply View the author
avatar
tmacy
deepin
2018-01-05 21:35
#16
计算内存方法,free -m  命令 total memeory = used + free  + buff/cache
Reply View the author
avatar
186******39
deepin
2018-01-05 21:44
#17
https://bbs.deepin.org/post/151203
计算内存方法,free -m  命令 total memeory = used + free  + buff/cache

used才3471,感觉差不多。buff/cache 有4174,颤抖了……怎么释放这部分内存呢?
Reply View the author
avatar
duanyao
deepin
2018-01-05 21:44
#18

没发现异常,看来还是有说不清去向的共享内存。只能试错了:一个一个关闭程序,看看共享内存和总内存占用的变化情况。按 firefox、php、mysql 这样的顺序关吧。
Reply View the author
avatar
186******39
deepin
2018-01-05 21:48
#19


没什么用,到底什么在占用内存啊,气疯

Reply View the author
avatar
186******39
deepin
2018-01-05 21:53
#20
https://bbs.deepin.org/post/151203
没发现异常,看来还是有说不清去向的共享内存。只能试错了:一个一个关闭程序,看看共享内存和总内存占用 ...



Reply View the author
1 / 2
To page