[OpenAFS] AFS client suddenly extremely slow

Russ Allbery rra@stanford.edu
Sat, 28 Oct 2006 19:51:37 -0700


Bastian <dea1306@melvex.xs4all.nl> writes:

> AFSD options: -stat 2000 -dcache 800 -daemons 3 -volumes 70 -fakestat
> -afsdb -nosettime
> (these are the Debian defaults)

For what it's worth, those haven't been the defaults in Debian for a
while.  If you're using the stable openafs-client package, you may get
something like that (I don't remember) but the current defaults are:

# The default behavior is to pick one of the following option sets based on
# the size of the AFS cache, as follows:
#
#           cache < 128MB       $SMALL
#   128MB < cache < 512MB       $MEDIUM
#   512MB < cache < 1GB         $LARGE
#     1GB < cache < 2GB         $XLARGE
#     2GB < cache               $XXLARGE
#
# You can override that default behavior by setting OPTIONS below.
XXLARGE="-chunksize 20 -files 80000 -dcache 10000 -stat 15000 -daemons 6 -volumes 500"
XLARGE="-chunksize 20 -files 50000 -dcache 10000 -stat 15000 -daemons 5 -volumes 250"
LARGE="-chunksize 18 -files 25000 -dcache 10000 -stat 15000 -daemons 5 -volumes 200"
MEDIUM="-chunksize 18 -files 10000 -dcache 5000 -stat 7500 -daemons 3 -volumes 200"
SMALL="-chunksize 18 -files 2500 -dcache 2000 -stat 3000 -daemons 2 -volumes 200"

In particular, the increase in -chunksize helps most modern systems a
great deal.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>