Reduce memory consumption in Cinder services

This patch reduces memory usage for Cinder Volume and Backup services by
tuning glibc.

The specific tuning consist on disabling the per thread arenas and
disabling dynamic thresholds.

This is the equivalent of the devstack proposed patch from Change-Id
Ic9030d01468b3189350f83b04a8d1d346c489d3c

Related-bug: #1908805
Change-Id: I066ee76fe0cef9443f9e9f1ed3c8062d6c6f8566
This commit is contained in:
Simon Hensel 2023-07-10 11:16:23 +02:00
parent 2820fcc1d6
commit 3c014fb2b6
2 changed files with 13 additions and 0 deletions

View File

@ -351,6 +351,10 @@ cinder_services:
start_order: 2
execstarts: "{{ cinder_bin }}/cinder-volume"
execreloads: "/bin/kill -HUP $MAINPID"
environment:
MALLOC_ARENA_MAX: 1
MALLOC_MMAP_THRESHOLD_: 131072
MALLOC_TRIM_THRESHOLD_: 262144
cinder-backup:
group: cinder_backup
service_name: cinder-backup
@ -359,6 +363,10 @@ cinder_services:
start_order: 3
execstarts: "{{ cinder_bin }}/cinder-backup"
execreloads: "/bin/kill -HUP $MAINPID"
environment:
MALLOC_ARENA_MAX: 1
MALLOC_MMAP_THRESHOLD_: 131072
MALLOC_TRIM_THRESHOLD_: 262144
cinder-api:
group: cinder_api
service_name: cinder-api

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fix high water mark memory usage on Cinder Volume and Backup services and
reduce peak memory usage.