diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2021-09-13 17:31:51 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2021-09-15 10:15:09 +0300 |
commit | 2f6f81300a7f27324c691557b8ea5b15252fb501 (patch) | |
tree | 6f2d192d8729fa832ea9faa5084b946480193bbf /Makefile | |
parent | ccd8ea3e1436d6464ac5f67e6bebd1ae317f4d50 (diff) |
Makefile: apply Git ref advertisement buffering patches
Prior to these patches, Git used unbuffered writes for upload-pack ref
advertisements, with one or two write syscalls per ref. In
repositories with many refs that adds up to a lot of syscalls. These
patches add stdio buffering for the ref advertisement writes.
Also see gitlab-com/gl-infra/scalability#1257.
Changelog: performance
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -152,13 +152,18 @@ ifeq ($(origin GIT_PATCHES),undefined) # 'ps/update-ref-batch-flush' into next, 2021-09-10). GIT_PATCHES += 0015-update-ref-fix-streaming-of-status-updates.patch + # Buffer ref advertisement writes in upload-pack. Merged into next via + # c31d871c (Merge branch 'jv/pkt-line-batch' into next, 2021-09-10). + GIT_PATCHES += 0016-pkt-line-add-stdio-packet-write-functions.patch + GIT_PATCHES += 0017-upload-pack-use-stdio-in-send_ref-callbacks.patch + # This extra version has two intentions: first, it allows us to detect # capabilities of the command at runtime. Second, it helps admins to # discover which version is currently in use. As such, this version must be # incremented whenever a new patch is added above. When no patches exist, # then this should be undefined. Otherwise, it must be set to at least # `gl1` given that `0` is the "default" GitLab patch level. - GIT_EXTRA_VERSION := gl3 + GIT_EXTRA_VERSION := gl4 endif ifeq ($(origin GIT_BUILD_OPTIONS),undefined) |