Browse Source

synapse: preload libjemalloc

Preload the jemalloc library supported by the upcoming 1.30.0 release
pull/941/head
Béla Becker 5 years ago
parent
commit
ef38ed6496
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      roles/matrix-synapse/templates/synapse/systemd/matrix-synapse-worker.service.j2
  2. +1
    -0
      roles/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2

+ 1
- 0
roles/matrix-synapse/templates/synapse/systemd/matrix-synapse-worker.service.j2 View File

@@ -39,6 +39,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name {{ matrix_synapse_wor
--mount type=bind,src={{ matrix_synapse_storage_path }},dst=/matrix-media-store-parent,bind-propagation=slave \ --mount type=bind,src={{ matrix_synapse_storage_path }},dst=/matrix-media-store-parent,bind-propagation=slave \
{% for volume in matrix_synapse_container_additional_volumes %} {% for volume in matrix_synapse_container_additional_volumes %}
-v {{ volume.src }}:{{ volume.dst }}:{{ volume.options }} \ -v {{ volume.src }}:{{ volume.dst }}:{{ volume.options }} \
-e "LD_PRELOAD=/usr/lib/{{ ansible_machine }}-linux-gnu/libjemalloc.so.2" \
{% endfor %} {% endfor %}
{% for arg in matrix_synapse_container_extra_arguments %} {% for arg in matrix_synapse_container_extra_arguments %}
{{ arg }} \ {{ arg }} \


+ 1
- 0
roles/matrix-synapse/templates/synapse/systemd/matrix-synapse.service.j2 View File

@@ -58,6 +58,7 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-synapse \
{% for volume in matrix_synapse_container_additional_volumes %} {% for volume in matrix_synapse_container_additional_volumes %}
-v {{ volume.src }}:{{ volume.dst }}:{{ volume.options }} \ -v {{ volume.src }}:{{ volume.dst }}:{{ volume.options }} \
{% endfor %} {% endfor %}
-e "LD_PRELOAD=/usr/lib/{{ ansible_machine }}-linux-gnu/libjemalloc.so.2" \
{% for arg in matrix_synapse_container_extra_arguments %} {% for arg in matrix_synapse_container_extra_arguments %}
{{ arg }} \ {{ arg }} \
{% endfor %} {% endfor %}


Loading…
Cancel
Save