ubuntu 9.04 如何释放物理内存

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
dshbusiness
帖子: 1831
注册时间: 2009-04-03 15:10

Re: ubuntu 9.04 如何释放物理内存

#31

帖子 dshbusiness » 2010-03-29 14:11

我也觉得这软件脑残……一般软件都会向内核申请内存……如果内存不够内核肯定会把现有的页交换到swap,空出来足够的地方给软件用。难道这个软件向内核申请内存,内核会不批准?没道理啊……除非这个软件是自己用某种手段来检测物理内存的,但这样一来不是越俎代庖了吗?本来该内核干的事啊……

至于说把磁盘缓存去掉,我不甚了解。不过就我检测的,每次开机后内存总是满满的,其中磁盘缓存竟然能占到一半左右……说实话我不太在乎磁盘I/O,我严重需要响应速度。但是照这个趋势发展下去,我就是装4G的条子,也只能用到2G啊
DruculaC
帖子: 22
注册时间: 2009-06-29 16:55

Re: ubuntu 9.04 如何释放物理内存

#32

帖子 DruculaC » 2010-04-05 20:16

:em06

tenzu 写了:
DruculaC 写了:
AbuseYou 写了:simvision may check this by some scripts, modify it by urself.

and, in other word, if ur machine can't support rythmbox + simvision at the same time that means ur machine really sucks...
not enough is "really not enough", linux will not use all ram if it have enough, that's not linux business, can linux help u if ur machine have only 600MB RAM for all?
add ram to ur machine.

All your words are so perfect. But first (suggested be deleted),I am an IC designer (normally such person is called an engineer), not a software designer (suggested be changed to engineer). I do (suggested be changed to did) my best to understand the software , but I cannot spend time on modifying the software. That is not my business.
If u know how to modify the scripts , u can type them out.
For company (I don't understand what you mean) , it is really damned. but I am not able to demand an upgrade for my PC. The rythmbox i said , is just an example , and there are more applications swallowing the ram.
btw:my PC has just 1G ram,not 600M,
PS: Some minor mistakes are omitted.
Nothing endures but change!
头像
速腾1994
论坛版主
帖子: 17379
注册时间: 2008-11-01 20:43
系统: Arch+gnome

Re: ubuntu 9.04 如何释放物理内存

#33

帖子 速腾1994 » 2010-04-06 9:17

tenzu 写了:
DruculaC 写了:
AbuseYou 写了:simvision may check this by some scripts, modify it by urself.

and, in other word, if ur machine can't support rythmbox + simvision at the same time that means ur machine really sucks...
not enough is "really not enough", linux will not use all ram if it have enough, that's not linux business, can linux help u if ur machine have only 600MB RAM for all?
add ram to ur machine.

All your words are so perfect. But first (suggested be deleted),I am an IC designer (normally such person is called an engineer), not a software designer (suggested be changed to engineer). I do (suggested be changed to did) my best to understand the software , but I cannot spend time on modifying the software. That is not my business.
If u know how to modify the scripts , u can type them out.
For company (I don't understand what you mean) , it is really damned. but I am not able to demand an upgrade for my PC. The rythmbox i said , is just an example , and there are more applications swallowing the ram.
btw:my PC has just 1G ram,not 600M,
PS: Some minor mistakes are omitted.
[/quote]
就你能!i is
zigzed
帖子: 267
注册时间: 2006-02-27 10:32

Re: ubuntu 9.04 如何释放物理内存

#34

帖子 zigzed » 2010-04-06 10:25

我觉得21楼的回答是正确的。

另外,如果楼主能够改变提问题的方式是否效果会更好呢?例如你已经找到了方法,但是遇到的问题是 Permission denied,而不是如何释放内存。

为何

代码: 全选

sudo echo 3 > /proc/xxxx 
会失败,返回错误 Permission denied 呢?

因为 sudo 只会提升 echo 的权限,不能提升管道 > 的权限。所以采用 21 楼的方法才是正确的方法(当然正确的方法有很多种,并不是唯一的)。
头像
kaji331
帖子: 565
注册时间: 2009-04-27 6:33

Re: ubuntu 9.04 如何释放物理内存

#35

帖子 kaji331 » 2010-07-09 14:02

其实不光楼主这个软件有问题,我给我的9.04开了2G的swap,我的机器有4G的ram,但是我开着什么也不做,也不开屏保,一个通宵去看,内存只剩下21mb了,平时如果上上网,聊聊天什么的,内存就不断的看着往下掉,当然,没内存后启动个什么软件什么的用用都暴卡~我用了前面说的命令释放内存,机器就活过来了~相当郁闷啊,不知道怎么回事,后来装了ailurus,用里面调整内存那个设置,就是把默认的60变成0或者100都可以,随便什么,只要调过,机器就好像拥有了自动垃圾回收一样,内存不再无故减小了,现在开个文件管理器和FF,内存稳定在3591好久不动了~不像以前什么不做内存还不断减小~

ps 楼主也不要怪大家,逼近这种问题现在遇到的人很少,大家不懂就会变成水贴:)我也是给我的9.04装了pekwm,配上fbpanel后才出现这个问题的,看着fbpanel自带的内存工具和free -m里数值不断减小才发现怎么机器用着用着变卡了,以前用gnome和e17都没有……
知道base64解密的女生请看

5oiR5Zyo5p2t5bee5rWZ5aSn57Sr6YeR5riv6K+75Lmm77yM5aaC5p6c5L2g5a+C5a+e5oOz6KaB54Ku5Y+L77yM6K+357uZ5oiR55WZIOiogOWQp++8mu+8iQo=
IDesign
帖子: 1
注册时间: 2012-04-25 12:43

Re: ubuntu 9.04 如何释放物理内存

#36

帖子 IDesign » 2012-04-25 12:46

那我的内存显示满了。。咋个整。。系统没有自动释放啊。。。。咋办。。。。求解
回复