[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Sheflug] Squid disk space
>
> The problem that I have is that there isn't much disk space
> in the box(1.3GB
> in total, over two drives. Most free on a single drive is
> 161MB), and I was
> wondering if anyone had any idea as to how large the cache
> would get if 5
> people were using it.
I can't directly comment on how much space the cache will use with 5 people
accessing it. What I do know however is that you can restrict the size of
the cache on disk, and spread the cache over multiple discs.
The snippet below (sorry it's a bit long) is from squid.conf where it
describes the setup of the cache_dir tag which controls all this sort of
stuff.
I hope this helps.
# TAG: cache_dir
# Usage:
#
# cache_dir Type Directory-Name Mbytes Level-1 Level2
#
# You can specify multiple cache_dir lines to spread the
# cache among different disk partitions.
#
# Type specifies the kind of storage system to use. Most
# everyone will want to use "ufs" as the type. If you are using
# Async I/O (--enable async-io) on Linux or Solaris, then you may
# want to try "asyncufs" as the type. Async IO support may be
# buggy, however, so beware.
#
# 'Directory' is a top-level directory where cache swap
# files will be stored. If you want to use an entire disk
# for caching, then this can be the mount-point directory.
# The directory must exist and be writable by the Squid
# process. Squid will NOT create this directory for you.
#
# If no 'cache_dir' lines are specified, the following
# default will be used: /var/squid/cache.
#
# 'Mbytes' is the amount of disk space (MB) to use under this
# directory. The default is 100 MB. Change this to suit your
# configuration.
#
# 'Level-1' is the number of first-level subdirectories which
# will be created under the 'Directory'. The default is 16.
#
# 'Level-2' is the number of second-level subdirectories which
# will be created under each first-level directory. The default
# is 256.
#
#cache_dir ufs /var/squid/cache 100 16 256
--
David Morris
IT Manager, ALLVAC Ltd, Sheffield, UK
work: david [at] allvac.co.uk
home: david [at] brassedoff.net http://www.davidm.demon.co.uk
___________________________________________________________________
Sheffield Linux User's Group - http://www.sheflug.co.uk .
To unsubscribe from this list send mail to
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.