git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] pack-objects: optimize "recency order"

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Oct 28, 2011, 09:17 UTC
Message-ID
<CACBZZX7taoaRWALYd_scf6Z2Hr-xo3voNh=vx8LoPvU8Xo290w@mail.gmail.com>
In-Reply-To
<7vy5w6xf7n.fsf@alter.siamese.dyndns.org>
On Fri, Oct 28, 2011 at 00:05, Junio C Hamano <gitster@pobox.com> wrote:
Show 7 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>
>> We recently upgraded to 1.7.7 and I've traced a very large slowdown in
>> packing down to this commit.
>
> Does Dan McGee's series leading to 38d4deb (pack-objects: don't traverse
> objects unnecessarily, 2011-10-18) help?
Yes it does!
When I do:
    git cherry-pick 703f05ad5835cff92b12c29aecf8d724c8c847e2..38d4deb
Here's the time on the linux-2.6.git repack with that series:
    real    0m53.969s
    user    0m47.063s
    sys     0m3.020s

On the repository I was having troubles with this was the result on master:

    Total 911023 (delta 687744), reused 905500 (delta 683064)
    real    6m0.487s
    user    4m1.751s
    sys     1m56.331s
And with the cherry-pick:
    Total 911023 (delta 687744), reused 911023 (delta 687744)
    real    1m44.192s
    user    0m32.169s
    sys     0m4.383s
And with 1b4bb16b9ec331c91e28d2e3e7dee5070534b6a2 reverted:
    Total 911023 (delta 687744), reused 911023 (delta 687744)
    real    1m23.796s
    user    0m31.931s
    sys     0m3.549s

So it's still slower, but not intolerably slower. I'd be interested to find out why we have that 20% difference that doesn't show up on linux-2.6.git though, the repository is mostly source code but there are some binary blobs in it as well, although not very large, the overall size of the entire repository is <500MB.

Previous: Junio C Hamano
Message 14 of 14 in “For improved pack locality”
  1. 0/2 For improved pack localityJunio C Hamano, Jul 8, 2011
  2. 1/2 core: log offset pack data accesses happenedJunio C Hamano, Jul 8, 2011
  3. 2/2 pack-objects: optimize "recency order"Junio C Hamano, Jul 8, 2011
  4. Shawn PearceJul 8, 2011
  5. Junio C HamanoJul 8, 2011
  6. Nicolas PitreJul 11, 2011
  7. Junio C HamanoJul 8, 2011
  8. Shawn PearceJul 9, 2011
  9. Ævar Arnfjörð BjarmasonOct 27, 2011
  10. Ævar Arnfjörð BjarmasonOct 27, 2011
  11. Ævar Arnfjörð BjarmasonOct 27, 2011
  12. Jakub NarebskiOct 27, 2011
  13. Junio C HamanoOct 27, 2011
  14. Ævar Arnfjörð BjarmasonOct 28, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.