bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs is slooooooow with large directories


From: Larry Jones
Subject: Re: cvs is slooooooow with large directories
Date: Sun, 27 Feb 2005 14:26:56 -0500 (EST)

Andrew Morton writes:
> 
> On a dual 2.7GHz power4, the cvs client has racked up an hour of CPU time
> so far.  There's something in there which is quadratic (or worse) in the
> number of files in a directory.

Yes, the fix for a release problem that Derek made a year ago
(2004-02-25) is responsible for this behavior.  Prior to that fix, CVS
would cache the Entries for a directory so that it wouldn't have to read
(and possibly rewrite) the Entries file for each file being processed. 
Unfortunately, it sometimes changed to a different directory without
flushing the cache, resulting in one directory's Entries ending up in a
different directory.  Derek's fix removed the cache, so each new file
being checked out ends up reading the Entries file, adding the new file,
and then writing it back out, which is indeed quadratic behavior.  We
need to figure out a way to restore the cache without reintroducing the
original problem, a non-trivial task.

-Larry Jones

He piqued my curiosity. -- Calvin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]