Search squid archive

Re: memory usage

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

 



On 06/10/17 20:04, Vieri wrote:
Hi,

On a Squid server I'm seeing how the buffer mem usage is steadily growing.


You mean mem_node? or the "*K Buffers" entries?

The mem_node is used by cache_mem entries, in-transit objects and some hot cache_dir index entries. So the value there need to be considered in light of the info report value for how full cache_mem is:

> Storage Mem size:       22700 KB
> Storage Mem capacity:   69.3% used, 30.7% free

Which states that 30% of you cache_mem has yet to be filled. Until that cache space reaches 100% mem_node will continue growing. If it continues to grow significantly after that point then you might have a problem, but definitely not before then.

You should also expect HttpRequest, HttpReply, StoreEntry, HttpHeaderEntry and various Buffer and Strings allocations to increase until that same point. These ones can be quite volatile, but no significant long-term growth is expected once the memory cache is full. ie changes in them should roughly match active traffic peaks and troughs with a baseline relative to the amount used by cache_mem objects. [thats a *very* rough description of estimates, don't count on it being predictable with a formula].

...

I'm not familiar with how the Linux kernel manages memory, so I don't know if the "buff/cache" memory is easily reusable by user processes.
In other words, should I worry or not if the value of "free" (in top) drops that much?

see my post in the other thread you started about that top report.


I not sure how I'm supposed to interpret the output of the ps commands above.
For example, the sum of %MEM is usually between 5 and 10%. Shouldn't this mean that the overall system is not requiring that much RAM?


Yes, exactly that.


Amos
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux