Re: Intriguing error with Git 1.6.3.1: Too many open files
- From
- Soham Mehta <soham@box.com>
- Date
- Jan 11, 2012, 06:52 UTC
- Message-ID
- <CALjyegVzchN==DEsARD65jEmz0BkkbYMQRhG=ujNiGCBHuB4SQ@mail.gmail.com>
- In-Reply-To
- <20120111030931.GA12862@burratino>
On Tue, Jan 10, 2012 at 7:09 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 11 quoted lines
> Hi, > > Soham Mehta wrote: > >> *"error: unable to open object pack directory: ./objects/pack: Too many >> open files" > > Do current git versions (v1.7.4.2 or later) behave the same way? > > Sorry for the trouble, > Jonathan
I haven't played with versions yet. Are you alluding that #2 on this list may have addressed it? https://raw.github.com/gitster/git/master/Documentation/RelNotes/1.7.4.2.txt
* We used to keep one file descriptor open for each and every packfile that we have a mmap window on it (read: "in use"), even when for very tiny packfiles. We now close the file descriptor early when the entire packfile fits inside one mmap window.
The corrupt repo does have a 1000+ pack files, anywhere from 650M to 2.5K.