Squid running very Slow!


Results 1 to 2 of 2

Thread: Squid running very Slow!

Hybrid View

  1. #1
    pcghost Guest

    Question Squid running very Slow!

    I am running RH8 on our squid/squidguard proxy server connected to a T1 connection to the internet. For some reason squid 2.5 is running very slowly. It can't be cache related as the machine has only been online a couple days. Anyone out there have a similar problem with squid 2.5?

  2. #2
    Join Date
    Sep 1999
    Location
    NY, USA
    Posts
    139
    Following this faq you could improve the speed of squid drasticly, due to the way I/O requests are done.
    http://www.squid-cache.org/Doc/FAQ/FAQ-22.html


    requirements

    - a kernel which supports message queues
    check with ls /proc/sys/kernel

    among other modules you find the files who are needed to fit requirements.

    shmall
    shmmax
    shmmni
    msgmax
    msgmnb
    msgmni

    another indication: The availabilty of the file /etc/sysctl.conf

    - use of shared memory
    not a problem at all

    How to implement
    There are 2 different methods to implement this. You can use Webmin or you can modify the squid.conf file directly.

    webmin way
    https://192.168.1.1:10000/squid/edit_cache.cgi
    or
    http://192.168.1.1:10000/squid/edit_cache.cgi

    add

    Directory: /var/spool/squid
    Type: DISKD
    Size: 100 Mb
    1st level dir: 16
    2nd level dirs 256

    modifying /etc/squid/squid.conf

    In
    # TAG: cache_dir
    add a line like this

    #Default: (existing line)
    # cache_dir ufs /var/spool/squid 100 16 256(existing line)

    cache_dir diskd /var/spool/squid 100 16 256

    restart squid
    options enough: use webmin or type service squid restart
    Linux - the O/S of the GNU Millenium

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •