diff --git a/manifests/executor.pp b/manifests/executor.pp index df33d44..8a52d6f 100644 --- a/manifests/executor.pp +++ b/manifests/executor.pp @@ -33,6 +33,13 @@ class zuul::executor ( ], } + # Alternative malloc implementation with better packing performance + if ! defined(Package['libjemalloc1']) { + package { 'libjemalloc1': + ensure => present, + } + } + include ::pip::python3 exec { 'install-ara-safely': diff --git a/manifests/init.pp b/manifests/init.pp index e627d83..de99bad 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -503,7 +503,7 @@ class zuul ( file { '/etc/default/zuul-executor': ensure => present, mode => '0444', - content => "PIDFILE=/var/run/zuul/executor.pid\n", + content => "PIDFILE=/var/run/zuul/executor.pid\nexport LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1\n", } file { '/etc/default/zuul-scheduler':