[squid-users] squid.conf cache_mem

From: Matt Anderson <manderson@dont-contact.us>
Date: Fri, 24 Aug 2001 15:57:22 -0400

Ok, I changed my cache_mem to 48 but when I do a top my memory is still almost completey gone and swap is barely being touched. After I made the changed I did a squid -k reconfigure. I have 256 RAM and only 3 meg is free while only 3 meg of swap is being used. Is it time to buy more RAM or is this normal? Any ideas???

--matt

--------------------------------------------------------------------------------

Ok, here is my stupid question :). My production squid server was set up by a contractor and I'm trying to figure out how he's got it set up so if it ever breaks I can fix it or what not. I notice in the squid.conf there is this statement .... something looks a little fishy to me -- is this a normal statement? Thanks!

If it's not normal will this cause problems? Is it something I should change? Should I never call this contractor again ;)?

# TAG: cache_mem (bytes)
# NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS
# SIZE. IT PLACES A LIMIT ON ONE ASPECT OF SQUID'S MEMORY
# USAGE. SQUID USES MEMORY FOR OTHER THINGS AS WELL.
# YOUR PROCESS WILL PROBABLY BECOME TWICE OR THREE TIMES
# BIGGER THAN THE VALUE YOU PUT HERE
#
# 'cache_mem' specifies the ideal amount of memory to be used
# for:
# * In-Transit objects
# * Hot Objects
# * Negative-Cached objects
#
# Data for these objects are stored in 4 KB blocks. This
# parameter specifies the ideal upper limit on the total size of
# 4 KB blocks allocated. In-Transit objects take the highest
# priority.
#
# In-transit objects have priority over the others. When
# additional space is needed for incoming data, negative-cached
# and hot objects will be released. In other words, the
# negative-cached and hot objects will fill up any unused space
# not needed for in-transit objects.
#
# If circumstances require, this limit will be exceeded.
# Specifically, if your incoming request rate requires more than
# 'cache_mem' of memory to hold in-transit objects, Squid will
# exceed this limit to satisfy the new requests. When the load
# decreases, blocks will be freed until the high-water mark is
# reached. Thereafter, blocks will be used to store hot
# objects.
#
# The default is 8 Megabytes.
#
cache_mem 484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848 MB

Matt Anderson
MCSE, CNE, CCNA, Network+
Network Engineer
Maly's Corporate Headquarters
(616) 956-2246
Received on Fri Aug 24 2001 - 14:01:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:55 MST