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

Re: Lockless Refs?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 4, 2013, 21:28 UTC
Message-ID
<7vip7ctz7j.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201301031652.44982.mfick@codeaurora.org>
Martin Fick <mfick@codeaurora.org> writes:
> Any thoughts on this idea?  Is it flawed?  I am trying to 
> write it up in a more formal generalized manner and was 
> hoping to get at least one "it seems sane" before I do.

The general impression I have been getting was that this isn't even worth the effort and the resulting complexity of the code, given Peff's observations earlier in the thread that ref update conflicts and leftover locks are reasonably rare in practice. But perhaps I has been mis-reading the discussion.

I also have this suspicion that if you really want to shoot for multi-repository transactions in an massively scaled repository hosting environment, you would rather want to not rely on hacks based on filesystem semantics, but instead want to RPC with a dedicated "ref management service" that knows the transaction semantics you want, but that could become a much larger change.

I dunno.
Previous: Martin FickNext: Jeff King
Message 19 of 23 in “refs: do not use cached refs in repack_without_ref”
  1. refs: do not use cached refs in repack_without_refJeff King, Dec 21, 2012
  2. Michael HaggertyDec 26, 2012
  3. Lockless Refs? (Was [PATCH] refs: do not use cached refs in repack_without_ref)Martin Fick, Dec 27, 2012
  4. Martin FickDec 28, 2012
  5. Junio C HamanoDec 28, 2012
  6. Jeff KingDec 29, 2012
  7. Martin FickDec 29, 2012
  8. Jeff KingDec 29, 2012
  9. Martin FickDec 29, 2012
  10. Junio C HamanoDec 28, 2012
  11. Martin FickDec 29, 2012
  12. Jeff KingDec 29, 2012
  13. Martin FickDec 29, 2012
  14. Martin FickDec 30, 2012
  15. Martin FickDec 31, 2012
  16. Martin FickJan 3, 2013
  17. Pyeron, Jason J CTR (US)Jan 4, 2013
  18. Martin FickJan 4, 2013
  19. Junio C HamanoJan 4, 2013
  20. Jeff KingJan 5, 2013
  21. Drew NorthupJan 22, 2013
  22. Jeff KingDec 29, 2012
  23. Martin FickJan 7, 2013

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.