What cache_dir size should I use?
Most people have a disk partition dedicated to the Squid cache. You don’t want to use the entire partition size. You have to leave some extra room. Currently, Squid is not very tolerant of running out of disk space. Lets say you have a 9GB disk. Remember that disk manufacturers lie about the space available. A so-called 9GB disk usually results in about 8.5GB of raw, usable space. First, put a filesystem on it, and mount it. Then check the “available space” with your df program. Note that you lose some disk space to filesystem overheads, like superblocks, inodes, and directory entries. Also note that Unix normally keeps 10% free for itself. So with a 9GB disk, you’re probably down to about 8GB after formatting. Next, I suggest taking off another 10% or so for Squid overheads, and a “safe buffer.” Squid normally puts its swap.state files in each cache directory. These grow in size until you rotate the logs, or restart squid.
Most people have a disk partition dedicated to the Squid cache. You don’t want to use the entire partition size. You have to leave some extra room. Currently, Squid is not very tolerant of running out of disk space. Lets say you have a 9GB disk. Remember that disk manufacturers lie about the space available. A so-called 9GB disk usually results in about 8.5GB of raw, usable space. First, put a lesystem on it, and mount it. Then check the available space with your df program. Note that you lose some disk space to lesystem overheads, like superblocks, inodes, and directory entries. Also note that Unix normally keeps 10% free for itself. So with a 9GB disk, you’re probably down to about 8GB after formatting. Next, I suggest taking o another 10% or so for Squid overheads, and a “safe bu er.” Squid normally puts its swap.state les in each cache directory. These grow in size until you rotate the logs, or restart squid. Also note that Squid performs better when there is more free space.
Most people have a disk partition dedicated to the Squid cache. You don’t want to use the entire partition size. You have to leave some extra room. Currently, Squid is not very tolerant of running out of disk space. Lets say you have a 9GB disk. Remember that disk manufacturers lie about the space available. A so-called 9GB disk usually results in about 8.5GB of raw, usable space. First, put a filesystem on it, and mount it. Then check the “available space” with your df program. Note that you lose some disk space to filesystem overheads, like superblocks, inodes, and directory entries. Also note that Unix normally keeps 10% free for itself. So with a 9GB disk, you’re probably down to about 8GB after formatting. Next, I suggest taking off another 10% or so for Squid overheads, and a “safe buffer.” Squid normally puts its swap.state files in each cache directory. These grow in size until you rotate the logs, or restart squid. Also note that Squid performs better when there is more free