This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Squid Disk Usage

Hi there, my squid partition (5.3GB) never seems to get used more than 141MB (3%)... How can i get it to use all the space it can? or at the very least 2 or 3 GB, so that it actually becomes usefull?

Thanks, 


This thread was automatically locked due to age.
Parents
  • You probably need to check somewhere like /var/chroot-squid/etc/squid.conf or squid.conf-default.

    Look for a line like "cache_dir ufs /cache 508 16 256"

    It translates to :

    Use ufs file system in /cache (in the chroot, remember, so /var/chroot-squid/cache), size 508 meg, 16 first ;level directories containing 256 subdirectories. Basically, I'd experiment with upping the "508".
    I guess this is all set on install, based on your disk size, so yours maybe different.
    There are also others worth a look, such as maximum_object_size, minimum_object_size, I would think.

    I've just read through a squid.conf on a "normal" workstation distro (RH9, as it happens), and it still has all the "help" comments in it......

    Hope this helps,

    Karl 
Reply
  • You probably need to check somewhere like /var/chroot-squid/etc/squid.conf or squid.conf-default.

    Look for a line like "cache_dir ufs /cache 508 16 256"

    It translates to :

    Use ufs file system in /cache (in the chroot, remember, so /var/chroot-squid/cache), size 508 meg, 16 first ;level directories containing 256 subdirectories. Basically, I'd experiment with upping the "508".
    I guess this is all set on install, based on your disk size, so yours maybe different.
    There are also others worth a look, such as maximum_object_size, minimum_object_size, I would think.

    I've just read through a squid.conf on a "normal" workstation distro (RH9, as it happens), and it still has all the "help" comments in it......

    Hope this helps,

    Karl 
Children
  • cache_dir ufs /cache 508 16 256.. in my case, 508 was  .. I figured that was strange and set it to 4096 .. restarted squid and left it for a while.. then I df -h and got this:

    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda7             550M  190M  360M  35% /
    /dev/hda1             320M   37M  283M  12% /emergency
    /dev/hda3             5.4G  251M  5.1G   5% /var/log
    /dev/hda5             1.8G   56M  1.8G   3% /var/chroot-smtp
    /dev/hda6             220M   47M  173M  21% /var/recovery
    /dev/hda8             5.3G  120M  5.2G   2% /var/chroot-squid
    /dev/hda9             5.3G   69M  5.3G   1% /var/chroot-report
    none                  157M     0  157M   0% /var/shm

    Notice that it seems to use 2% only...

    here is the relevant part of my squid.conf-default:

    cache_dir ufs /cache 4096 16 256
    cache_access_log 
    cache_log 
    cache_store_log /dev/null
    mime_table /etc/mime.conf
    log_mime_hdrs off
    pid_filename /logs/squid.pid
    log_fqdn off
    maximum_object_size 50 MB

    ... notice the  and .... seems a bit strange to me...

    Any thoughts?




     
  • ah.... you were looking at squid.conf-default. If you're going to change things on the fly, you'd need to change squid.conf, however this will be overwritten at reboot I believe. I have not found where the  and other tags are obtained from, as I am still looking around the system.