scalar: too many open files

I’m worried that Scalar is causing me to not be running git gc enough. Is there something I can do to check?

The symptom I’m seeing, is after a while, I get this failure when git pushing:

$ git push
...
ref <sha>:: open <path>git/objects/pack/pack-<sha>.pack: too many open files

Then if I run

$ git gc
Enumerating objects: 1395635, done.
Counting objects: 100% (1395635/1395635), done.
Delta compression using up to 12 threads
Compressing objects: 100% (325900/325900), done.
Writing objects: 100% (1395635/1395635), done.
Total 1395635 (delta 938477), reused 1390778 (delta 933690), pack-reused 0
Checking connectivity: 1395929, done.

It starts to work again.

I do see scalar running in my repo:

$ scalar list
/Users/paul.tarjan/robinhood/rh-staging
/Users/paul.tarjan/robinhood/rh

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

This just happened to me personally. Then by running:

$ git maintenance run --task=incremental-repack
Enumerating objects: 89559, done.
Counting objects: 100% (89559/89559), done.
Delta compression using up to 12 threads
Compressing objects: 100% (63722/63722), done.
Writing objects: 100% (89559/89559), done.
Total 89559 (delta 23834), reused 83651 (delta 17987), pack-reused 0

it resolved it.

I have:

$ scalar --version
scalar 20.10.178.7
$ git --version
git version 2.30.0