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

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

From
Jakub Narebski <jnareb@gmail.com>
Date
Oct 27, 2011, 22:32 UTC
Message-ID
<m3ehxy5aoe.fsf@localhost.localdomain>
In-Reply-To
<CACBZZX7tghoHhxCygEj9DZSxvKyTvybawVA2HwHBkjBaH73Ujg@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 13 quoted lines
> On Thu, Oct 27, 2011 at 23:49, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> 
> > Actually it just seems slow in general, not just on repositories with
> > a lot of tags, on linux-2.6.git with this patch:
> 
> Here's profiling with gprof for everything with >1% of execution time
> with the patch applied:
> 
>     Each sample counts as 0.01 seconds.
>       %   cumulative   self              self     total
>      time   seconds   seconds    calls   s/call   s/call  name
>      21.07     15.99    15.99  2184059     0.00     0.00  add_descendants_to_write_order
>      20.25     31.35    15.37 1146371554     0.00     0.00  add_to_write_order
[...]
Show 8 quoted lines
> 
> And without:
> 
>     Each sample counts as 0.01 seconds.
>       %   cumulative   self              self     total
>      time   seconds   seconds    calls   s/call   s/call  name
>      21.29      9.13     9.13 142180385     0.00     0.00  hashcmp
>      10.59     13.67     4.54 90592818     0.00     0.00  lookup_object
[...]

Errr... do or do not gprof results include time spend in libraries? Though that might not matter for this case.

Can you repeat profiling using "perf events" or something using it (e.g. via PAPI library like HPCToolkit)?

-- 
Jakub Narębski
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 12 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.