Skip to content

Avoid using 1280 file descriptors

Shawn O. Pearce git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Refactor WindowCache.reconfigure() to take a configuration objectorg.spearce.jgit.test/tst/org/spearce/jgit/lib/RepositoryTestCase.java org.spearce.jgit/src/org/spearce/jgit/lib/UnpackedObjectCache.java org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java +1 more+178 -250 replies
2/4Update EGit plugin to use WindowCacheConfigorg.spearce.egit.core/src/org/spearce/egit/core/project/GitProjectData.java+7 -50 replies
3/4Cap the number of open files in the WindowCacheorg.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java org.spearce.jgit/src/org/spearce/jgit/lib/WindowCacheConfig.java+70 -154 replies
4/4Teach WindowCacheConfig to read core.packedgit* settings from configorg.spearce.jgit/src/org/spearce/jgit/lib/WindowCacheConfig.java+16 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [JGIT PATCH 0/4] Avoid using 1280 file descriptors

This is a small series to teach WindowCache not to use 1280 file descriptors by default. Most JVMs won't have a ulimit that large, resulting in out of file errors if the WindowCache actually tries to fully populate itself.

Shawn O. Pearce (4):
Refactor WindowCache.reconfigure() to take a configuration object Update EGit plugin to use WindowCacheConfig
Cap the number of open files in the WindowCache
Teach WindowCacheConfig to read core.packedgit* settings from config

 .../spearce/egit/core/project/GitProjectData.java  |   12 +-
 .../org/spearce/jgit/lib/RepositoryTestCase.java   |    8 +-
 .../org/spearce/jgit/lib/UnpackedObjectCache.java  |    7 +-
 .../src/org/spearce/jgit/lib/WindowCache.java      |  119 ++++++++++----
 .../org/spearce/jgit/lib/WindowCacheConfig.java    |  170 ++++++++++++++++++++
 5 files changed, 271 insertions(+), 45 deletions(-)
 create mode 100644 org.spearce.jgit/src/org/spearce/jgit/lib/WindowCacheConfig.java