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

Re: svnversion & svn st

From: Bill Comisky <bcomisky_at_pobox.com>
Date: 2003-08-22 17:30:28 CEST

On Fri, 22 Aug 2003, Ben Collins-Sussman wrote:

> Bill Comisky <bcomisky@pobox.com> writes:
> > I noticed that when I run 'svnversion' and 'svn st' it will take a "long"
> > time (~12s on /svn source tree) to execute,
> Yes. Every single working file in your working copy needs to be stat()ted.
> > and then after the first execution it will run quickly (< 1s).
> And now your OS disk-caching kicks in. :-)

Hadn't thought of the caching as the reason for the speed up. Especially
since the slowdown seems so regular (overnight). I was assuming some cron
job was changing my directory access times and making svnversion/svn st do
more work. As a test I just ran 'hdparm -f' on my filesystem to flush the
cache, then 'time svnversion .' twice.

1st run after flush: 2.56s elapsed
2nd run after flush: .40s elapsed

1st run every morning: ~10-12s elapsed.

Maybe there is some other caching somewhere I'm missing to make up the
difference? Regardless, I think I'll just setup a cron job to run it
early in the morning!


Bill Comisky
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 22 17:32:35 2003

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