LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-27-2009, 04:35 AM   #1
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Rep: Reputation: 33
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??
 
Old 11-27-2009, 07:38 AM   #2
mknirsch
Member
 
Registered: Feb 2003
Location: Germany
Distribution: SLES 10, SuSe 11.x
Posts: 31

Rep: Reputation: 16
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
 
Old 11-27-2009, 07:55 AM   #3
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by mknirsch View Post
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
 
Old 12-06-2009, 11:01 PM   #4
mail4vijay
Member
 
Registered: Oct 2009
Location: Delhi
Distribution: CentOS , RHEL
Posts: 214

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by mail4vijay View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 12:25 PM
Memory taking 95% for X server. rehan999 Linux - Software 3 11-14-2009 09:45 AM
My squid server is running slow i have 40 fedora 11 in my squid proxy ashraflinux1@gmail.com Linux - Server 4 09-15-2009 01:17 AM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 02:03 AM
Lan Squid Proxy+Increase Memory pin_bk Linux - Networking 3 10-14-2004 12:42 PM


All times are GMT -5. The time now is 04:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration