Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What cache_dir size should I use?

cache_dir size
0
Posted

What cache_dir size should I use?

0

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.

0

This chapter assumes that you are dedicating an entire disk partition to a squid cache_dir, as is often the case.

0

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.

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123