[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnadmin taking a break?

From: Carsten Heyl <cal_at_pixelboxx.de>
Date: Wed, 28 Oct 2009 09:31:25 +0100

Hi subversion users and supporters!

First a big thanks to the subversion team!
Please continue your great work!

Currently I test converting a cvs repository to svn.
The cvs2svn took 15 hours and the dump file is about 12 GB.
Nothing special here.

Than I took svnadmin to load the dumpfile into a new repository

svnadmin create --fs-type fsfs svnroot
svnadmin load -q ${PWD}/svnroot <cvs2svn-out.dump

System: Linux 2.6.22.19-0.2-bigsmp (opensuse 10.3), xfs filesystem

I expected the svnadmin to be either busy or waiting for io but most of
the time
the percentage of "idle" is above 50 %.

A short strace shows that reading from stdin is done "by byte":

read(0, "K", 1) = 1
<0.000005>

read(0, " ", 1) = 1
<0.000004>

read(0, "1", 1) = 1
<0.000004>

read(0, "3", 1) = 1
<0.000004>

read(0, "\n", 1) = 1
<0.000004>

read(0, "svn:mime-type", 13) = 13
<0.000004>

read(0, "\n", 1) = 1
<0.000004>

read(0, "V", 1) = 1
<0.000005>

read(0, " ", 1) = 1
<0.000005>

read(0, "2", 1) = 1
<0.000005>

read(0, "4", 1) = 1
<0.000005>

read(0, "\n", 1) = 1
<0.000004>

read(0, "application/octet-stream", 24) = 24
<0.000004>

read(0, "\n", 1) = 1
<0.000004>

That may be a problem.
(Try that on NFS ...)

Doing a strace -c on svnadmin running for a few minutes (!) gave:

% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
 56.22 3.304842 2 1893895 close
 22.81 1.341002 16 81366 fsync
 13.98 0.821780 40 20656 fdatasync
  2.77 0.162701 0 1929533 35634 open
  1.67 0.098424 1 181236 6303 unlink
  1.31 0.076992 0 11349854 read
  0.51 0.030215 0 1093822 write
  0.26 0.015424 0 62457 rename
  0.22 0.012863 0 749347 lstat64
  0.07 0.004116 0 25406 getdents64
  0.05 0.003233 1 6303 rmdir
  0.04 0.002594 0 875977 lseek
  0.03 0.001832 0 308237 fcntl64
  0.02 0.001030 0 31529 chmod
  0.01 0.000523 0 35893 35893 access
  0.01 0.000420 0 31529 stat64
  0.00 0.000251 0 86064 fstat64
  0.00 0.000231 0 6317 mkdir
  0.00 0.000190 0 4390 ftruncate
  0.00 0.000000 0 433 brk
  0.00 0.000000 0 12606 gettimeofday
------ ----------- ----------- --------- --------- ----------------
100.00 5.878663 18786850 77830 total

So that does not point to read.
But 6 seconds of 5-10 minutes elapsed time spend in system calls?

Where does svnadmin spend it's time?

Greetings,
    Carsten Heyl

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2411971

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-28 08:33:48 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.