Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Anyone know how to see the space on squid? I mean the cache space on the squid that is being used, like the available space and used space of the cache itself, thanks!

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Check squid cache configuration file for the size of squid cache.

Goto Terminal and type the following,

cat /etc/squid/squid.conf | grep ^cache_dir

cache_dir ufs /var/spool/squid 15000 16 256

Here 15000 is your squid cache directory size.

NOTE: Please note that the squid configuration file is squid.conf

If you want to know how much data is currently cached,then type the following in terminal

sudo du -sh /var/spool/squid

18M /var/spool/squid

So 18MB data is currently cached here.

share|improve this answer
    
thanks very much for helping . its works , –  santosamaru Nov 10 '10 at 5:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.