summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht
diff options
context:
space:
mode:
authorXavi Hernandez <xhernandez@redhat.com>2019-06-21 11:28:08 +0200
committerhari gowtham <hari.gowtham005@gmail.com>2019-07-03 06:26:55 +0000
commit3d10901842cdc11f5cf9ed5c97837b4d2efe0b60 (patch)
treeb6496dd11a93eadcd51d6f0247b807034a130258 /xlators/cluster/dht
parent5d4564833963c5d668bd9d73ac3921848d843eb2 (diff)
core: fix memory allocation issues
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. Backport of: > BUG: 1722802 > Change-Id: I90e27ad795fe51ca11c13080f62207451f6c138c > Signed-off-by: Xavi Hernandez <xhernandez@redhat.com> Fixes: bz#1724210 Change-Id: I90e27ad795fe51ca11c13080f62207451f6c138c Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'xlators/cluster/dht')
0 files changed, 0 insertions, 0 deletions