RE: [squid-users] Squid & RAM

From: Muhammad Subtain <muhammad.subtain@dont-contact.us>
Date: Thu, 12 Aug 2004 09:36:28 +0500

Dear Mr. Zaidi
Thanks For your reply,
HTTP SERVER, KDE was only selection in the installation process, my
directory cache is

ufs 5500 16 256

What should be the recommended cache_mem? As I have 512MB ram in my
system.

Regards,
Subtain

-----Original Message-----
From: A.Sajjad Zaidi [mailto:sajjad@zaidi.jp] On Behalf Of A. Sajjad
Zaidi
Sent: Wednesday, August 11, 2004 6:42 PM
To: Muhammad Subtain
Cc: squid-users@squid-cache.org
Subject: Re: [squid-users] Squid & RAM

On Wed, Aug 11, 2004 at 06:06:10PM +0500, Muhammad Subtain wrote:
>
> Here is the output of free command.
>
> [root@SQUID etc]# free
> ?????????? ??????????? ??????????total?????? used?????? free????
shared??? buffers???? cached
> Mem:?????? ???????? ??????????? 514444???? 507920?????? 6524?????????
0????? 29044???? 353164
> -/+ buffers/cache??????????? 125712???? 388732
> Swap:????? ???????????????????? 1124508????????? 0??? 1124508

The "used" column in the above info is not the actual memory being used.
That includes memory used by buffers and cached objects. The second row
shows that you are actually only using 125712 kbytes which seems small,
even if you aren't running many services. If all your RAM was used up,
there would be at least some swap memory in use and the output shows 0
for that.

> In such condition users get jerky and very slow response.
>
> I have even tried to set cache_mem 0 MB but it doesn't work.

It looks like you are giving too little memory to Squid. Increase the
settings until it starts using more without resorting to swap.

This should make things smoother, but there are a lot of other factors
to
consider. Are there any other services running on the machine? What does
your cache directory layout look like? How is the throughput of your
drives? etc.

-- 
A. Sajjad Zaidi
GnuPG Key ID: 0xD7AD0E13
"Don't worry.. Stuart is taking an insanity break right now. Cthulhu
appeared in his dreams again last night."
Received on Wed Aug 11 2004 - 22:36:29 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:02 MDT