Step by Step How to Check Squid Cache Size on Linux Fedora 10
Step by Step How to Check Squid Cache Size on Linux Fedora 10.
The step by step example below show how to check squid cache size on Linux system. The example on how to check squid cache size below is done on the Linux Fedora 10 with squid version 3 installed. Sometimes you may wonder how big squid cache size that already caching on your hard disk... or may be you need to find out why oh why your squid not working as fast as it should be. To check why your squid not perform as well as it should be... on of the place to start looking is the cache size on system hard disk... may be squid cache size near or 100% full it cache capacity on the disk that you specify on the squid configuration file.
Check system hard disk size.
1. To start this squid cache size investigation... we start with check the system disk or your system hard disk.. If the system disk if full, or the capacity is near to 100% of disk size its can drag your squid server down to her knee (no space left for squid to put the squid cache). To do this use df command as show on example below to check hard disk size on Linux Fedora system.
[root@fedora ~]# df -h
Filesystem Size Used Avail Use% Mounted on
262G 4.6G 244G 2% /
/dev/cciss/c1d0p1 190M 30M 151M 17% /boot
tmpfs 1.5G 88K 1.5G 1% /dev/shm
Check squid cache location and cache size setting.
2. Check squid cache configuration file for the size of squid cache and the location of squid cache directory. Please note that the squid configuration file squid.conf location on the Linux system may be differ base on your squid installation setup.
[root@fedora ~]# cat /etc/squid/squid.conf |grep ^cache_dir
cache_dir ufs /var/spool/squid 10000 16 256
Check squid cache size on the hard disk.
3. Use the du command as show on example below to check squid cache directory size on the hard disk.
[root@fedora ~]# du -hs /var/spool/squid/
Note: This step by step how to check squid cache size is tested on Linux Fedora 10 operating system with Squid Cache: Version 3.0.STABLE13 install on the system.
Keywords: check squid cache, check squid cache size, squid cache size, squid cache directory size, check squid cache directory size