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

Re: GIT issue while cloning (fatal: pack is corrupted (SHA1 mismatch)) !!!

From
Jeff King <peff@peff.net>
Date
Jun 28, 2019, 23:55 UTC
Message-ID
<20190628235532.GA2625@sigill.intra.peff.net>
In-Reply-To
<TU4PR8401MB1216FC788B6A421F8FD82B2EE1FC0@TU4PR8401MB1216.NAMPRD84.PROD.OUTLOOK.COM>
On Fri, Jun 28, 2019 at 04:18:37PM +0000, Vanak, Ibrahim wrote:
Show 5 quoted lines
> But HPUX Dev team have seen one significance difference, when they
> were triaging this issue, the ways GIT operations handled by 2 OSs: On
> linux, around 40 processes are spawned for handling a GIT operation
> whereas on HPUX only one process manages the operation. Is there
> something special being written for linux on GIT code ?

On Linux (and any platform that supports pthreads), Git will do the lstat() operations to refresh the index in parallel. See the core.preloadIndex option (which I think defaults to true).

If you have a very high-latency lstat() and your build does not have pthread support, that could be a significant difference.

That might be worth exploring.
-Peff
Previous: Vanak, IbrahimNext: Johannes Schindelin
Message 13 of 14 in “GIT issue while cloning (fatal: pack is corrupted (SHA1 mismatch)) !!!”
  1. Vanak, IbrahimMay 28, 2019
  2. Jeff KingMay 28, 2019
  3. Ævar Arnfjörð BjarmasonMay 28, 2019
  4. Vanak, IbrahimMay 28, 2019
  5. Jeff KingMay 28, 2019
  6. Vanak, IbrahimMay 29, 2019
  7. Vanak, IbrahimMay 29, 2019
  8. Jeff KingMay 30, 2019
  9. Vanak, IbrahimJun 11, 2019
  10. Vanak, IbrahimJun 18, 2019
  11. Jeff HostetlerJun 18, 2019
  12. Vanak, IbrahimJun 28, 2019
  13. Jeff KingJun 28, 2019
  14. Johannes SchindelinMay 28, 2019

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.