原帖由 sc66 于 2008-11-28 17:50 发表
3c905_sh 谢谢
老大不这么认为啊我没办法 叫我一定要把他搞定....我想问你一下Red Hat Enterprise Linux AS release 4 (Nahant Update 4)能行吗? 好像centos有drop_caches这个参数
原帖由 sc66 于 2008-11-28 17:22 发表
3c905_sh 谢谢!!
/proc/sys/vm/drop_caches
Red Hat Enterprise Linux AS release 4 (Nahant Update 4) 此系没有上述参数我想问一下能如何修改
谢谢!!!
原帖由 3c905_sh 于 2008-11-28 17:07 发表
那么有人说过段时间,linux会自动释放掉所用的内存,我们使用free再来试试,看看是否有释放>?
[root@server test]# free -m
total used free shared buffers cached
Mem: 249 244 5 0 8 174
-/+ buffers/cache: 61 188
Swap: 511 0 511
MS没有任何变化,那么我能否手动释放掉这些内存呢???回答是可以的!
[root@test1 network-scripts]# free -m
total used free shared buffers cached
Mem: 249 242 6 0 7 192
-/+ buffers/cache: 42 207
Swap: 509 0 509
[root@test1 network-scripts]# free -m
total used free shared buffers cached
Mem: 249 242 6 0 7 192
-/+ buffers/cache: 41 207
Swap: 509 0 509
[root@test1 network-scripts]# ps -ef|grep vnc
root 5614 5367 0 11:55 pts/0 00:00:00 grep vnc
[root@test1 network-scripts]# vncserver :1
New 'test1:1 (root)' desktop is test1:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/test1:1.log
[root@test1 network-scripts]# free -m
total used free shared buffers cached
Mem: 249 222 27 0 9 135
-/+ buffers/cache: 76 172
Swap: 509 0 509
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |