From 6067b452aed710a88535645ab3f7966c85851aab Mon Sep 17 00:00:00 2001 From: Jeremy Kescher Date: Sat, 29 Oct 2022 23:41:37 +0200 Subject: [PATCH] Use mimalloc instead of jemalloc --- dist/mastodon-sidekiq.service | 2 +- dist/mastodon-web.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/mastodon-sidekiq.service b/dist/mastodon-sidekiq.service index 324cd5a398..7ff8a6a8ae 100644 --- a/dist/mastodon-sidekiq.service +++ b/dist/mastodon-sidekiq.service @@ -9,7 +9,7 @@ WorkingDirectory=/home/mastodon/live Environment="RAILS_ENV=production" Environment="DB_POOL=25" Environment="MALLOC_ARENA_MAX=2" -Environment="LD_PRELOAD=libjemalloc.so" +Environment="LD_PRELOAD=libmimalloc.so" ExecStart=/home/mastodon/.rbenv/shims/bundle exec sidekiq -c 25 TimeoutSec=15 Restart=always diff --git a/dist/mastodon-web.service b/dist/mastodon-web.service index a5598fdaa8..bc96c0accb 100644 --- a/dist/mastodon-web.service +++ b/dist/mastodon-web.service @@ -8,7 +8,7 @@ User=mastodon WorkingDirectory=/home/mastodon/live Environment="RAILS_ENV=production" Environment="PORT=3000" -Environment="LD_PRELOAD=libjemalloc.so" +Environment="LD_PRELOAD=libmimalloc.so" ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb ExecReload=/bin/kill -SIGUSR1 $MAINPID TimeoutSec=15