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

git only writing 4k at a time

From
HMHaylin Moore <hmoore@qumulo.com>
Date
Jun 18, 2025, 20:58 UTC
Message-ID
<CALnKHDCH_174KnP6Um+G8YCpDBGNNk40xS0T2K6VtnDv9hE37Q@mail.gmail.com>
Hiya list,

I've been investigating some performance issues around git clones over network mounts. We have noticed that git is only writing 4k at a time. These small serial writes are making it such that even though each write is only a 3ms operation, the total time balloons. Looking around the source code I found that reftable_writer is initialized by default (though I cannot find the block_size argument being supplied in my cursory look) always to DEFAULT_BLOCK_SIZE (4096). Is there some way to increase/configure this block size such that larger writes happen? In git/Documentation/config/reftable.adoc this block size is mentioned in a manner that almost feels configurable, but I'm not sure if this is just internal for development.

Thanks, ~ Haylin Moore

Next: brian m. carlson
Message 1 of 3 in “git only writing 4k at a time”
  1. Haylin MooreJun 18, 2025
  2. brian m. carlsonJun 18, 2025
  3. Patrick SteinhardtJul 1, 2025

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.