git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* observations on parsecvs testing
@ 2006-06-15 20:37 Nicolas Pitre
  2006-06-15 22:03 ` Keith Packard
       [not found] ` <20060615164742.570e33a0.seanlkml@sympatico.ca>
  0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Pitre @ 2006-06-15 20:37 UTC (permalink / raw)
  To: Keith Packard; +Cc: git


My machine is a P4 @ 3GHz with 1GB ram.

Feeding parsecvs with the Mozilla repository, it first ran for 175 
minutes with about 98% CPU spent in user space reading the 100458 ,v 
files and writing 700000+ blob objects.  Memory usage grew to 1789MB 
total while the resident memory saturated around 700MB.  This part was 
fine even with 1GB of ram since unused memory was gently pushed to swap.  
Only problem is that spawned git-pack-object instances started failing 
with memory allocation by that time, which is unffortunate but not 
fatal.

But then things started to go bad after all ,v files were parsed.  The 
parsecvs dropped to 3% CPU while the rest of the time was spent waiting 
after swap IO and therefore no substantial progress was made at that 
point.

So the Mozilla clearly requires 2GB of ram to realistically be converted 
to GIT using parsecvs, unless its second phase is reworked to avoid 
totally random access in memory in order to improve swap behavior, or 
its in-memory data set is shrinked at least by half.

Also rcs2git() is very inefficient especially with files having many 
revisions as it reconstructs the delta chain on every call.  For example 
mozilla/configure,v has at least 1690 revisions, and actually converting 
it into GIT blobs goes at a rate of 2.4 objects per second _only_ on my 
machine.  Can't objects be created as the delta list is walked/applied 
instead?  That would significantly reduce the initial convertion time.


Nicolas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-15 22:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15 20:37 observations on parsecvs testing Nicolas Pitre
2006-06-15 22:03 ` Keith Packard
     [not found] ` <20060615164742.570e33a0.seanlkml@sympatico.ca>
2006-06-15 20:47   ` Sean
2006-06-15 20:55     ` Nicolas Pitre
2006-06-15 22:04   ` Keith Packard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).