16.2 为什么top显示很少的的空闲内存即使我运行…

2009-05-13 04:49:01来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

16.2 为什么top显示很少的的空闲内存即使我运行很少的程序?
简单地说就是空闲的内存就是浪费的内存。任何你程序没有分配的都被作为Freebsd的内核的缓存。top程
序显示的值不是真实的,高速缓存和缓冲空间都是不同时期层面上的缓存数据。这些缓存数据以为着系统
不必再去访问低速的磁盘来获得它刚刚访问过的数据,因此系统的总体性能将会得到提高。一般来说,只
要top显示的空闲内存空间值不是太低,显示一个低值是有利的。

PS 原文
16.2. Why does top show very little free memory even when I have very few programs running?
The simple answer is that free memory is wasted memory. Any memory that your programs do not actively allocate is used within the FreeBSD kernel as disk cache. The values shown by
top(1)
labeled as Inact, Cache, and Buf are all cached data at different aging levels. This cached data means the system does not have to access a slow disk again for data it has accessed recently, thus increasing overall performance. In general, a low value shown for Free memory in
top(1)
is good, provided it is not very low.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/18248/showart_183350.html

标签:

版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

上一篇:第16章 各种各样的问题(Miscellaneous Questions)

下一篇:16.3 为什么chmod不能更改符号连接的权限?