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
/dev/mapper/VolGroup00-LogVol00
262G 4.6G 244G 2% /
/dev/cciss/c1d0p1 190M 30M 151M 17% /boot
tmpfs 1.5G 88K 1.5G 1% /dev/shm
[root@fedora ~]#
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
[root@fedora ~]#
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/
660M /var/spool/squid/
[root@fedora ~]#
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
- Add new comment
- 10575 reads
- Email this page
Thanks for Reading and Check Other Popular Linux Topics
All time:
- Configure and Setup Squid Cache Proxy Server on Fedora Core.
- Using Linux rm command to delete, remove hidden files and folder - Basic Linux Command.
- Copy Linux Files and Copy Directory Using cp Command - Linux Basic Command.
- Moving or rename files and directory using Linux mv command - Basic Linux Command.
- Add, view, edit and configure route and static route on Linux Fedora Core - Linux Server Configuration.
- Get and display the size of file and directory in Linux system using du command.
- Step by step Install Setup and Configure Linux Fedora Core Server and Network Management with Screen Shot and Example.
- Create file and display file contents in Linux using cat command.
- Configure Squid to block HTTP request to specific web sites.
- Example of samba smbpasswd file and samba smbusers configuration file.

Recent comments
1 day 3 hours ago
3 days 8 hours ago
3 days 17 hours ago
5 weeks 1 day ago
9 weeks 1 day ago
13 weeks 6 days ago
13 weeks 6 days ago
14 weeks 4 days ago
15 weeks 1 day ago
15 weeks 5 days ago