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

Re: [PATCH v2] Bump core.deltaBaseCacheLimit to 128MiB

From
David Kastrup <dak@gnu.org>
Date
Mar 21, 2014, 08:02 UTC
Message-ID
<87ior8c72z.fsf@fencepost.gnu.org>
In-Reply-To
<xmqqlhw5260l.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> I know that the 512MiB default for the bitFileThreashold (aka
> "forget about delta compression") came out of thin air.  It was just
> "1GB is always too huge for anybody, so let's cut it in half and
> declare that value the initial version of a sane threashold",
> nothing more.
>
> So it might be that the problem is 512MiB is still too big, relative
> to the 16MiB of delta base cache, and the former may be what needs
> to be tweaked.

Well, the point with the 512MiB limit is basically that you can always argue "if you are working with 500MiB files, you will not be using just 128MiB of main memory anyway". The 16MiB limit, in contrast, will get utilized for basically every history, even one of small files, that's deep enough.

Show 5 quoted lines
> If a blob close to but below 512MiB is a problem for 16MiB delta base
> cache, it would still be too big to cause the same problem for 128MiB
> delta base cache---it would evict all the other objects and then end
> up not being able to fit in the limit itself, busting the limit
> immediately, no?

I think, but may be mistaken, that the delta base limit decides when to flush whole blobs. So a 500MiB file would still be encoded relative to a single newer version anyway and take memory accordingly.

But I am not sure about that at all.
-- 
David Kastrup
Previous: Duy NguyenNext: Jeff King
Message 11 of 14 in “Bump core.deltaBaseCacheLimit to 128MiB”
  1. Bump core.deltaBaseCacheLimit to 128MiBDavid Kastrup, Mar 19, 2014
  2. Junio C HamanoMar 19, 2014
  3. David KastrupMar 19, 2014
  4. Junio C HamanoMar 19, 2014
  5. Duy NguyenMar 20, 2014
  6. Junio C HamanoMar 20, 2014
  7. David KastrupMar 20, 2014
  8. Junio C HamanoMar 20, 2014
  9. David KastrupMar 21, 2014
  10. Duy NguyenMar 21, 2014
  11. David KastrupMar 21, 2014
  12. Jeff KingMar 20, 2014
  13. David KastrupMar 21, 2014
  14. David KastrupMar 21, 2014

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.