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

Re: blobs (once more)

From
Martin Langhoff <martin.langhoff@gmail.com>
Date
Apr 6, 2011, 14:14 UTC
Message-ID
<BANLkTi=03mrHzfcVhgF9woWhsWb3wenxMQ@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.1104061121000.2040@bonsai2>

On Wed, Apr 6, 2011 at 5:25 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

> I understand. The problem in your case might not be too bad, after all.
> The problem only arises when you have big files that are compressed. If
> you check in multiple versions of an uncompressed .dll file, Git will
> usually do a very good job at compressing them.

Except when they are very large; in that case git tends to OOM. But just yesterday Junio posted a proposed patch to honour a max file size for compression (search the archive for 'Git exhausts memory' and 'core.bigFileThreshold'.

So Pau might be in luck with current git + Junio's patch + enough RAM on the workstations. Pau, I definitely suggest you try it out.

If it still consumes too much memory with the largest filest (ie: the VM images you mention), the fedpkg approach (discussed in this thread) is good too. It's a Python wrapper around git, which tracks a text file listing the hashes of the large files, and fetches them (or uploads them) via SCP. You only need to use it when dealing with the large files -- most of the time you're just using git.

The fedpkg code is quite readable, and I've already "stolen" some of its code for my local needs. Recommended.

cheers,
m
-- 
 martin.langhoff@gmail.com
 martin@laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
Previous: Michael J GruberNext: Matthieu Moy
Message 4 of 9 in “blobs (once more)”
  1. Pau Garcia i QuilesApr 6, 2011
  2. Johannes SchindelinApr 6, 2011
  3. Michael J GruberApr 6, 2011
  4. Martin LanghoffApr 6, 2011
  5. Matthieu MoyApr 6, 2011
  6. Peter Jönsson PApr 6, 2011
  7. Magnus BäckApr 6, 2011
  8. Miles BaderApr 7, 2011
  9. Johannes SchindelinApr 7, 2011

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.