diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2019-06-21 11:28:08 +0200 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-09-16 02:02:00 +0000 |
commit | a2201d804d8e76ca82a9d086a6ee545cb26228a1 (patch) | |
tree | 86fda09ae3d9b5d666987c662ebc582ab2b68954 /libglusterfs/src/glusterfs/iatt.h | |
parent | 8c5bc03a47ee38b6cfec8725224248896c75f5d8 (diff) |
core: fix memory allocation issuesv7.0rc1
Two problems have been identified that caused that gluster's memory
usage were twice higher than required.
1. An off by 1 error caused that all objects allocated from the memory
pools were taken from a pool bigger than required. Since each pool
corresponds to a size equal to a power of two, this was wasting half
of the available memory.
2. The header information used for accounting on each memory object was
not taken into consideration when searching for a suitable memory
pool. It was added later when each individual block was allocated.
This made this space "invisible" to memory accounting.
Credits: Thanks to Nithya Balachandran for identifying this problem and
testing this patch.
>Fixes: bz#1722802
Change-Id: I90e27ad795fe51ca11c13080f62207451f6c138c
>Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
>(cherry picked from commit 1716a907da1a835b658740f1325033d7ddd44952)
Fixes: bz#1748774
Change-Id: I90e27ad795fe51ca11c13080f62207451f6c138c
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'libglusterfs/src/glusterfs/iatt.h')
0 files changed, 0 insertions, 0 deletions