git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* pack-object poor performance (with large number of objects?)
@ 2011-10-03 14:43 Piotr Krukowiecki
  2011-10-03 16:05 ` Shawn Pearce
  0 siblings, 1 reply; 11+ messages in thread
From: Piotr Krukowiecki @ 2011-10-03 14:43 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Ingo Molnar, Junio C Hamano

Hi,

I'm having poor git gc (pack-object) performance. Please read below
for details. What can I do to improve the performance/debug the reason
for the slowness? Should I leave the process running over night, or
should I stop it (for debugging)?
CCing people who posted some patches/benchmarks for pack-objects recently.

git gc was first run automatically by git svn clone. It found 1544673
objects and worked for 50 minutes until I've killed it.

Then I've run it by hand with --aggresive (because I've found on
Internet it helped in some cases). It found 1742200 objects this time.
At this moment it's been working for about 90 minutes.

The large number of unpacked objects is probably caused by me - I've
disabled auto gc when I was cloning from svn (I though it might speed
up things if it didn't repack several times during clone, only once
afterwards).

My git version is 1.7.7.rc3.4.g8d714
The file system is ext4.

First run process tree:
pkruk    27873  0.0  0.0  15704   816 pts/2    S+   11:53   0:00
       |           |                       \_ git gc --auto
pkruk    27885  0.0  0.0  15704   776 pts/2    S+   11:53   0:00
       |           |                           \_ git repack -d -l
pkruk    27886  0.0  0.0   4220   608 pts/2    S+   11:53   0:00
       |           |                               \_ /bin/sh
/usr/local/stow/git-master/libexec/git-core/git-repack -d -l
pkruk    27897  3.6  9.3 1136072 381148 pts/2  D+   11:53   5:51
       |           |                                   \_ git
pack-objects --keep-true-parents --honor-pack-keep --non-empty --all
--reflog --unpacked --incremental --local --delta-base-offset
/home/pkruk/dv/devel1_git_repos/.git/objects/pack/.tmp-27886-pack

Second run process tree:
pkruk     6171  0.0  0.0  15704  1428 pts/2    S+   14:34   0:00
       |           |               \_ git gc --aggressive
pkruk     6174  0.0  0.0  15704  1356 pts/2    S+   14:34   0:00
       |           |                   \_ git repack -d -l -f
--depth=250 --window=250 -A
pkruk     6175  0.0  0.0   4220   648 pts/2    S+   14:34   0:00
       |           |                       \_ /bin/sh
/usr/local/stow/git-master/libexec/git-core/git-repack -d -l -f
--depth=250 --window=250 -A
pkruk     6189  4.9 10.5 1143640 427396 pts/2  D+   14:34   4:50
       |           |                           \_ git pack-objects
--keep-true-parents --honor-pack-keep --non-empty --all --reflog
--unpack-unreachable --local --no-reuse-delta --depth=250 --window=250
--delta-base-offset
/home/pkruk/dv/devel1_git_repos/.git/objects/pack/.tmp-6175-pack



-- 
Piotr Krukowiecki

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

end of thread, other threads:[~2011-10-05  8:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 14:43 pack-object poor performance (with large number of objects?) Piotr Krukowiecki
2011-10-03 16:05 ` Shawn Pearce
2011-10-03 17:17   ` Piotr Krukowiecki
2011-10-03 19:34     ` Junio C Hamano
2011-10-04  7:59       ` Piotr Krukowiecki
2011-10-04 11:07         ` Jeff King
2011-10-04 12:22           ` Piotr Krukowiecki
2011-10-04 12:45             ` Jeff King
2011-10-04 13:21               ` Piotr Krukowiecki
2011-10-04 18:08                 ` Jeff King
2011-10-05  8:48                   ` Piotr Krukowiecki

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).