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

Re: What's cooking in git.git (Feb 2011, #07; Mon, 28)

From
Erik Faye-Lund <kusmabite@gmail.com>
Date
Mar 2, 2011, 18:28 UTC
Message-ID
<AANLkTim_euHU-vSULW0zk6SwrHridtvv5aqPVhBr_aXi@mail.gmail.com>
In-Reply-To
<AANLkTim7Jo5KLwf760dQN5PucrsD1wvuksds-4Qi0csd@mail.gmail.com>
On Wed, Mar 2, 2011 at 7:22 PM, Erik Faye-Lund <kusmabite@gmail.com> wrote:
Show 25 quoted lines
> On Tue, Mar 1, 2011 at 2:05 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> * sp/maint-fd-limit (2011-02-28) 2 commits
>>  - mingw: add minimum getrlimit() compatibility stub
>>  - Limit file descriptors used by packs
>>
>> Erik, please check the made-up commit log message and sign it off.
>> Will merge to 'next' after that.
>
> Seems to work:
>
> $ ls .git/objects/pack/*.pack | wc -l
>   2049
> $ git gc --auto
> Auto packing the repository for optimum performance. You may also run
> "git gc" manually. See "git help gc" for more information.
> Counting objects: 2056, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (2049/2049), done.
> Writing objects: 100% (2056/2056), done.
> Total 2056 (delta 2048), reused 13 (delta 5)
> Removing duplicate objects: 100% (256/256), done.
>
> So feel free to add:
> Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
>
Oh, and to be clear: Doing the same before these two patches gave this error:

$ git gc --auto Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more information. Counting objects: 2056, done. Delta compression using up to 4 threads. Compressing objects: 100% (2049/2049), done. fatal: Unable to create temporary file: Too many open files error: failed to run repack

So the issue is indeed fixed, and it seems we don't have to bias the resource limit.

Previous: Erik Faye-LundNext: Michael J Gruber
Message 7 of 8 in “What's cooking in git.git (Feb 2011, #07; Mon, 28)”
  1. Junio C HamanoMar 1, 2011
  2. Jens LehmannMar 1, 2011
  3. Erik Faye-LundMar 1, 2011
  4. Junio C HamanoMar 1, 2011
  5. Johannes SixtMar 2, 2011
  6. Erik Faye-LundMar 2, 2011
  7. Erik Faye-LundMar 2, 2011
  8. Michael J GruberMar 5, 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.