git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/gitlab: Set MALLOC_ARENA_MAX to "2"

This should reduce memory fragmentation drastically and is recommended by both the Puma and the Sidekiq author. It's also the default value for Ruby deployments on Heroku.

commit6389170b3927556ca3f2404b6525f2f57948419d authortalyz <kim.lindberger@gmail.com> dateThu 8 Apr 2021, 19:03 (6 years ago) parent306fc06
1 file changed+1
nixos/modules/services/misc/gitlab.nix+1
nixos/modules/services/misc/gitlab.nix+1
@@ -155,6 +155,7 @@ let
155155 GITLAB_REDIS_CONFIG_FILE = pkgs.writeText "redis.yml" (builtins.toJSON redisConfig);
156156 prometheus_multiproc_dir = "/run/gitlab";
157157 RAILS_ENV = "production";
158+ MALLOC_ARENA_MAX = "2";
158159 };
159160
160161 gitlab-rake = pkgs.stdenv.mkDerivation {