[OpenAFS-port-darwin] Performance/misconfiguration?

Nicholas Riley njriley@uiuc.edu
Thu, 28 Aug 2003 14:44:02 -0500


Hi,

I and others here have experienced high CPU usage and poor performance
copying large files to AFS.  We're using OpenAFS 1.2.10 on OS X
clients with Linux and Solaris servers running OpenAFS 1.2.9 and 1.2.10.

At the moment, I'm attempting to copy some disk images into AFS.
OpenAFS has taken 43 minutes to copy 500 MB (200 KB/sec) on a 100Mbit
network.  I can use SCP to copy the same file at about 6 MB/sec.

Top reports (client is a dual 533 MHz Power Mac G4 with 1.5 GB RAM):

Processes:  109 total, 4 running, 8 stuck, 97 sleeping... 298 threads  14:20:25
Load Avg:  1.57, 1.56, 1.45     CPU usage:  6.9% user, 54.0% sys, 39.1% idle
SharedLibs: num =  135, resident = 34.5M code, 2.48M data, 12.9M LinkEdit
MemRegions: num = 12599, resident =  312M + 28.8M private,  135M shared
PhysMem:   140M wired,  589M active,  777M inactive, 1.47G used, 30.4M free
VM: 5.31G + 88.1M   98910(0) pageins, 311741(0) pageouts

  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
10931 cp          86.8% 28:41.78   1     9    13    60K   392K   312K  1.59M

The CPU usage of one of the afsd processes sometimes increases to 45%,
but generally stays at zero.  The ~100% CPU 'cp' process appears on
faster machines as well, such as a dual 1.25 GHz Power Mac G4.

Copying the same file from a Linux machine (2.53 GHz Pentium 4) on the
same network, 'cp' uses between 4 and 18% CPU, and requires about 5
minutes (1.5 MB/sec).  The AFS servers were otherwise unloaded during
these tests.

Is OpenAFS really this CPU-intensive and slow on Mac OS X, or is
something misconfigured?

Thanks,

-- 
=Nicholas Riley <njriley@uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
        Pablo Research Group, Department of Computer Science and
  Medical Scholars Program, University of Illinois at Urbana-Champaign