[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 关于内存使用



wd wrote:
total used free shared buffers cached
Mem: 2060800 2014004 46796 0 104516 1670392
-/+ buffers/cache: 239096 1821704
这台机器上只起了MYSQL和APACHE,但没有人访问。那我的空余内存是多少?是
1821704???

>Dear flute,
>
>Mem: 2060800K total, 2016780K used, 44020K free, 104152K buffers
>
>看实际用掉的应该是used-buffers=2016780-104152吧?
>
>
>----------------------- Original Message -----------------------
>On Mon, 11 Apr 2005 11:57:50 +0800
>flute <flute@cgoo.com> wrote:
>
>  
>
>>Xing-qiang Lu wrote:
>>那我如何监控内存的使用状态?只看free是不行了。
>>
>>    
>>
>>>Linux内存管理本来就是这样吧,空闲的内存基本都用作cache,不管内存有多大,显示的占用量总是80以上的样子。这样才能提高内存的利用率,没必要向在windows下那样追求低的内存利用率。
>>>
>>>On Apr 10, 2005 6:23 PM, Alsor Zhou <alsor_zhou@163.com> wrote:
>>> 
>>>
>>>      
>>>
>>>>flute 写道:
>>>>   
>>>>
>>>>        
>>>>
>>>>>我有一个机器,有2G内存。是做测试用的。现在使用没有问题,但是我用TOP看到:
>>>>>Mem: 2060800K total, 2016780K used, 44020K free, 104152K buffers
>>>>>Swap: 2000084K total, 164K used, 1999920K free, 1670376K cached
>>>>>1.6G的内存被CACHED掉了,这部分内存是怎么分配的?被谁用了?全都用了吗?
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>被使用过的page并不是马上被释放的,而是被mark 成dirty, 链入cached list, 等
>>>>到真正 需要 的时候再进行回收..
>>>>可以参见 情景分析 中对内存管理 部分的描述..
>>>>
>>>>Best regards,
>>>>az
>>>>
>>>>   
>>>>
>>>>--
>>>>To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
>>>>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>>>>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>> 
>>>
>>>      
>>>
>>-- 
>>To UNSUBSCRIBE, email to debian-chinese-gb-REQUEST@lists.debian.org
>>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>>
>>    
>>
>
>
>--------------------- Original Message Ends --------------------
>-----
>wd <wd#caphbook.com>
>2005-4-11 12:06:17
>
>
>  
>



Reply to: