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

Re: bug, using latest version

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-02-13 19:50:05 CET

Philip Martin <philip@codematters.co.uk> writes:

> The repository has 100 nested directories, the number being
> controlled by the -N100 option. During the import on my Linux box
> there are over 100 file descriptors open simultaneously, with one
> more added for each additional directory level.

It's simply the way it libsvn_client/commit.c:import_dir works on
Linux. The algorithm is

   import_dir
      apr_dir_open
      for each entry
         if it's a directory
            import_dir
      apr_dir_close
      
so lots of directories are open simultaneously and on Linux each open
directory corresponds to a file descriptor. If Windows works the same
way but has a much lower limit on filehandles then it will restrict
the depth of tree that can be imported. I suppose we could rewrite
the algorithm

   import_dir
      apr_dir_open
      for each entry
         if it's a directory
            add to subdir list
      apr_dir_close
      for each entry in subdir list
         import_dir

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 13 19:51:36 2003

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

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