1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-06 17:18:29 +03:00
lvm2/daemons
wangjufeng bcf9556b8f lvmetad: fix heap memory leak
error could be reproduced by calling pvs periodically:
    #!/bin/bash
    while :
    do
        pvs
        sleep 1
    done

use top command to watch RES memory of lvmetad. After a few minutes,
its RES memory will grow for a few KB. Then stop calling pvs, while
its RES will not decrease.

This is because, when lvmetad make reponse for clent request, it
will malloc new chunk for s->vgid_to_metadata, while actually the
new chunk should be added to the reponse dm_config_tree, or it will
make the chunk list of s->vgid_to_metadata keep growing.

Signed-off-by: wangjufeng <wangjufeng@huawei.com>
Reviewed-by: liuzhiqiang <liuzhiqiang26@huawei.com>
Reviewed-by: guiyao <guiyao@huawei.com>
2020-02-05 15:30:17 -06:00
..
clvmd cov: missing checks of syscalls 2019-11-08 13:04:02 +01:00
cmirrord build: add -D_FILE_OFFSET_BITS=64 2018-05-02 18:40:38 +01:00
dmeventd dmeventd: avoid bail out preventing repair in raid plugin but keep message 2019-09-20 17:52:02 +02:00
dmfilemapd cleanup: move cast to det_t into MKDEV macro 2019-03-05 12:39:17 +01:00
lvmdbusd python: use // for integer division 2018-05-18 16:25:44 +02:00
lvmetad lvmetad: fix heap memory leak 2020-02-05 15:30:17 -06:00
lvmlockd lvmlockd: make lockstart wait for existing start 2019-01-31 09:38:50 -06:00
lvmpolld libdaemon: use pselect to avoid condition checking race 2019-04-10 13:28:45 +02:00
Makefile.in daemons: add dmfilemapd 2017-03-09 18:50:15 +00:00