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

svn rm painfully slow with 1.7.2 and many files

From: Attila Nagy <bra_at_fsn.hu>
Date: Mon, 16 Jan 2012 16:44:23 +0100

Hi,

I have a local working copy with some files and directories:
# find . | wc -l
  1255817

wc.db is currently 1.1 GiB:
# du -hsA wc.db
1.1G wc.db

I've started an svn rm * in one directory and after 20 minutes it's
still running. The directory is not quite "large", it contains 153 small
text files.

Measuring the time between each "D file name" svn print I get 10 seconds.
So it takes 10 seconds to remove a file.
Top says 100% CPU usage:
   PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU
COMMAND
11048 root 1 103 0 74052K 7424K CPU5 5 11:55 100.00% svn

and the system doesn't touch the disks, wc.db is in the memory cache.

The system is FreeBSD. I've found some options to sqlite (secure erase,
default turned on, stat3, and memtable, turned off), which I flipped, so
now I can remove a file in just 6 seconds. :)

Is it possible somehow to speed that up? Sometimes I remove hundreds of
files, which takes ages.

Thanks,

ps: is there a debug mode to subversion, so it would print out its SQL
commands?
Received on 2012-01-16 16:45:03 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.