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

Re: Linux 2.6.15-rc2

From
Junio C Hamano <junkio@cox.net>
Date
Nov 24, 2005, 21:02 UTC
Message-ID
<7vveyhpxmy.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0511241154340.13959@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> Since git-pack-objects has to generate the pack _anyway_, it might as well 
> save it away when it does - so that if you have lots of people doing 
> clones or pulling, you'd only need to run it once for a particular set of 
> objects, and you'd not have to do any extra (or unnecessary) maintenance.

Caching itself is relatively easy (just implement an equivalent of tee inside pack-objects ourselves). More problematic is pruning. We could do it from cron based on atime _if_ the filesystem is not mounted noatime but without arranging a reasonably way for automated pruning this would become a disk hog and extra maintenance burden, which is why I did not implement the dynamic caching part in the initial round.

Since git-daemon would be the primary user of pack-cache/, this implies a repository writable by git-daemon user on public machine (not master), which is an extra thing to note.

Previous: Linus TorvaldsNext: Linus Torvalds
Message 6 of 10 in “Re: Linux 2.6.15-rc2”
  1. Ed TomlinsonNov 24, 2005
  2. Andreas EricssonNov 24, 2005
  3. Linus TorvaldsNov 24, 2005
  4. Junio C HamanoNov 24, 2005
  5. Linus TorvaldsNov 24, 2005
  6. Junio C HamanoNov 24, 2005
  7. Linus TorvaldsNov 24, 2005
  8. Nick HengeveldNov 24, 2005
  9. Ed TomlinsonNov 25, 2005
  10. Andreas EricssonNov 25, 2005

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.