November 25, 2024, 09:46:40 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Estimation Of Hardware In Squid  (Read 6996 times)

Offline rajesh.bahl

  • Linux Learner
  • ***
  • Posts: 86
Estimation Of Hardware In Squid
« on: July 11, 2007, 01:53:16 PM »

Dear Professionals,

I need your advice on squid implementation.

How to decide on the amount of RAM and Hard disk space for caching on the machine running squid ?



regards
rajesh.bahl

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Estimation Of Hardware In Squid
« Reply #1 on: July 11, 2007, 06:32:07 PM »
Squid is not resource hungry seeing the hardware of present world.
Well, giving 256 mb RAM to squid with a raid 1 hardisk configuration can really give you a nice performance. Use reiserfs as filesystem to be used for caching.

When you instruct squid to use 64 mb RAM in squid.conf then actually it uses around 200 mb RAM so .. reserve 256mb then.

Offline rajesh.bahl

  • Linux Learner
  • ***
  • Posts: 86
Re: Estimation Of Hardware In Squid
« Reply #2 on: July 12, 2007, 08:58:59 AM »

Thanks Ricky !

How to decide how much space is to be given for caching on hard disk ?

regards
rajesh.bahl

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Estimation Of Hardware In Squid
« Reply #3 on: July 12, 2007, 01:39:11 PM »
Keep it small if you have small client base.. otherwise .. bigger is better..

Have first 200-300 mb .. if it gets fills up fast then increase as you feel is better..

Offline rajesh.bahl

  • Linux Learner
  • ***
  • Posts: 86
Re: Estimation Of Hardware In Squid
« Reply #4 on: July 17, 2007, 11:45:22 AM »
 There is a very important parameter in /etc/squid.conf file called cache_dir which gives the details of the size of cache on hard disk and first and second level directories.

Is there any method/algorithm to decide upon the number of first and second level directories ?
Let us say if I have to use 10 GB of hard disk space for caching purpose, how to calculate the number of first and second level directories ?



regards
rajesh.bahl

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Estimation Of Hardware In Squid
« Reply #5 on: July 17, 2007, 06:51:24 PM »
As far as I remember, it did not allow you do that but yes it allows you to be type of data syncing method .. squid.conf.default has most of the description clearly.