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

Re: open files limit

From
Shawn Pearce <spearce@spearce.org>
Date
Aug 12, 2011, 16:09 UTC
Message-ID
<CAJo=hJsj8_VjD5wN9Gge_Me-eXKK-P7nLAxERiiLp0+ayiEBbg@mail.gmail.com>
In-Reply-To
<20110812151548.GA14385@padd.com>
On Fri, Aug 12, 2011 at 08:15, Pete Wyckoff <pw@padd.com> wrote:
Show 14 quoted lines
> Somebody at $work found this problem:
>
>    $ git ls-files -s | wc
>    error: packfile .git/objects/pack/pack-1627e77da82bbb36118762649c8aa88c05664b1e.pack cannot be accessed
>    [..lots more similar errors..]
>
> Turns out his shell's open file descriptor limit was 500.  And
> there are 1600 pack files in the repo.
>
> Increasing the descriptor limit to 1024 fixed it.  I could
> probably get him to repack, which may also fix it.
>
> Does it seem feasible to look for EMFILE errors and close
> some packs?  Or at least spit out a more intuitive error?
What version of Git? I remember fixing this already.... :-)
-- 
Shawn.
Previous: Pete WyckoffNext: Pete Wyckoff
Message 2 of 4 in “open files limit”
  1. Pete WyckoffAug 12, 2011
  2. Shawn PearceAug 12, 2011
  3. Pete WyckoffAug 12, 2011
  4. test showing EMFILE error with too many packsPete Wyckoff, Aug 13, 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.