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:
parent
2820fcc1d6
commit
3c014fb2b6
@ -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
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Fix high water mark memory usage on Cinder Volume and Backup services and
|
||||
reduce peak memory usage.
|
Loading…
x
Reference in New Issue
Block a user