Opened 8 years ago

Closed 7 years ago

#162 closed defect (fixed)

git 2.11.0-2 fsck fails with fatal: mmap failed: Too many open files for large repositories.

Reported by: Steven Levine Owned by:
Priority: major Milestone:
Component: git Version:
Severity: medium Keywords:
Cc: dryeo

Description

git 2.11.0-2 fsck fails with

fatal: mmap failed: Too many open files for large repositories.

The fix is probably a call to DosSetRelMaxFH in response to ERROR_TOO_MANY_OPEN_FILES near mmapc near line 494.

The testcase is

git fsck

on any relatively large repo. The samba repo and the suitecrm repo are large enough to fail.

Change History (4)

comment:1 by dryeo, 8 years ago

Cc: dryeo added

comment:2 by Silvan Scherrer, 7 years ago

did you eventually retest with latest libcx?

comment:3 by Steven Levine, 7 years ago

Limited testing on several large repos seems to indicate that the updated libcx resolves the out of handles issue.

The only failure so far has been:

git fsck

Checking object directories: 100% (256/256), done.
error: .git/objects/pack/pack-cd24ed4ac81ffd757d24bc2de5290534c4c13f09.pack SHA1 checksum mismatch
error: .git/objects/pack/pack-cd24ed4ac81ffd757d24bc2de5290534c4c13f09.pack SHA1 does not match its index
Checking objects: 100% (47689/47689), done.
error: bad signature
fatal: index file corrupt

This occurred because memory was too fragmented. Shutting down restarting firefox cleared up enough fragmentation that fsck was able to run.

comment:4 by Silvan Scherrer, 7 years ago

Resolution: fixed
Status: newclosed

So I'm closing this as fixed. If it occurs again please reopen.

Note: See TracTickets for help on using tickets.