LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Squid Proxy Server Taking more Physical Memory (https://www.linuxquestions.org/questions/linux-general-1/squid-proxy-server-taking-more-physical-memory-771860/)

mail4vijay 11-27-2009 03:35 AM

Squid Proxy Server Taking more Physical Memory
 
Hi,

I have configured squid proxy server on CentOS 5 and it is taking more Physical memory and swap is almost free... I am using physical 4 GB RAM in the system which is consuming almost by squid, but swap is almost free.

How to optimise squid proxy server to use swap space / Physical RAM??

mknirsch 11-27-2009 06:38 AM

Squid Memory Issue
 
The Squid configuration option
"memory_pools on"
may cause the the allocation of a huge amount of memory.
The option
memory_pools_limit X MB"
limits the allocated amount of memory by the specified amount. The value of "0" means that Squid can utilize an unlimited amount of memory.
regards
Martin

mail4vijay 11-27-2009 06:55 AM

Quote:

Originally Posted by mknirsch (Post 3771291)
The Squid configuration option
"memory_pools on"
may cause the the allocation of a huge amount of memory.
The option
memory_pools_limit X MB"
limits the allocated amount of memory by the specified amount. The value of "0" means that Squid can utilize an unlimited amount of memory.
regards
Martin

Thanks for the reply, if i set up this option in squid will it affect the performance of squid server.. Is it possible to tell squid server to use more swap instead of physical RAM??

Right now my system using almost 3.5 GB out of 4GB physical RAM because of squid.. and swap space is almost free to 100%..

How much memory_pools_limit i should set for the optimal usage of squid.

Physical RAM : 4GB
Swap Space : 8GB

mail4vijay 12-06-2009 10:01 PM

Quote:

Originally Posted by mail4vijay (Post 3771314)
Thanks for the reply, if i set up this option in squid will it affect the performance of squid server.. Is it possible to tell squid server to use more swap instead of physical RAM??

Right now my system using almost 3.5 GB out of 4GB physical RAM because of squid.. and swap space is almost free to 100%..

How much memory_pools_limit i should set for the optimal usage of squid.

Physical RAM : 4GB
Swap Space : 8GB

Thaks for your help i changes per your instructions now it is taking only specified memory in the box.


All times are GMT -5. The time now is 07:21 AM.