RE: [squid-users] squid stop responding

From: Sumith Gamage <[email protected]>
Date: Sun, 13 Mar 2005 16:54:26 +0600

> -----Original Message-----
> From: Alex [mailto:o_again2004@yahoo.com]
> Sent: Sunday, March 13, 2005 3:47 PM
> Subject: RE: [squid-users] squid stop responding
>
> regarding the the ulimit-HSn 2048 TAG

Dear Alex,

This is not a TAG. It is a simple shell command, which you can used to control resource available to the shell.

Quoting from "man ulimit":
        ulimit [-SHacdflmnpstuv [limit]]
        Provides control over the resources available to the shell and
        to processes started by it, on systems that allow such control.

If you wish to use ulimit for file descriptor allocation, you can simply use following script to start squid service.

# Setting number of file descriptors
ulimit -HSn 2048
# Assuming default location of squid installation
exec /usr/local/squid/sbin/squid

> and the mx_open_disk_fds TAG
> can you please tell me what is the use of these tags,

Other way of doing a similar thing is to setup the max_open_disk_fds TAG accordingly. If you use "ulimit" setup file descriptors you can leave max_open_disk_fds 0 (default value - no limit)

> anything wrong with my configuration shown below kindly correct me.
>

I am simply quoting following directions from the presentation did by Dr. Gihan Dias in APRICOT 2004 (http://www.is.lk/is/apricot/dias-bw-mgmt-2.ppt). If you interested refer the entire document for detailed information.

Calculating Disc Space:
- Recommend keeping at least 2 days worth of objects
- 10 days may be better
- Example:
  - 256kb link loaded 10 hrs/day ~= 1GB
  - assume 50% cacheable - .5GB / day
  - 2 days objects - 1GB
  - 10 days objects - 5 GB

Memory Requirements:
- Squid uses memory for many things
  - code and data
  - “hot” objects
  - object list
  - directories and I-nodes
- Swapping slows down squid
- make sure squid runs without swapping
- Rule of Thumb (on x86 Linux)
  - 48MB + 8MB / GB of disc cache
  - 1GB of disc  64MB of memory
  - More won’t hurt

CPU:
- Generally, Squid is not CPU intensive
- any modern CPU should have enough horsepower
- 450MHz P II handles 1Mb/s without a problem
- Use a decent server machine
- Using delay-pools increases CPU usage

Regards,
Sumith
Received on Sun Mar 13 2005 - 04:17:39 MST

This archive was generated by hypermail pre-2.1.9 : Fri Apr 01 2005 - 12:00:02 MST