[Bugs] [Bug 1365743] GlusterFS - Memory Leak - High Memory Utilization

bugzilla at redhat.com bugzilla at redhat.com
Wed Aug 10 10:32:31 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1365743



--- Comment #2 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/15125 committed in release-3.8 by Niels de
Vos (ndevos at redhat.com) 
------
commit 26471bc310db9ac010935b6fa2716ae555c6f1c7
Author: root <root at dhcp35-131.lab.eng.blr.redhat.com>
Date:   Tue Jul 5 14:33:15 2016 +0530

    glusterd: Fix memory leak in glusterd (un)lock RPCs

    Problem:  At the time of execute "gluster volume profile <vol> info"
command
              It does have memory leak in glusterd.

    Solution: Modify the code to prevent memory leak in glusterd.

    Fix    : 1) Unref dict and free dict_val buffer in
glusterd_mgmt_v3_lock_peer and
                glusterd_mgmt_v3_unlock_peers.

    Test   : To verify the patch run below loop to generate io traffic
             for (( i=0 ; i<=1000000 ; i++ ));
               do echo "hi Start Line " > file$i;
               cat file$i >> /dev/null;
             done

             To verify the improvement in memory leak specific to glusterd run
below command

             cnt=0;while [ $cnt -le 1000 ]; do
             pmap -x <glusterd-pid> | grep total;
             gluster volume profile distributed info > /dev/null; cnt=`expr
$cnt + 1`; done

             After apply this patch it will reduce leak significantly.

    > Reviewed-on: http://review.gluster.org/14862
    > Smoke: Gluster Build System <jenkins at build.gluster.org>
    > CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    > NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    > Reviewed-by: Atin Mukherjee <amukherj at redhat.com>
    > Reviewed-by: Prashanth Pai <ppai at redhat.com>

    BUG: 1365743
    Change-Id: I52a0ca47adb20bfe4b1848a11df23e5e37c5cea9
    Signed-off-by: Mohit Agrawal <moagrawa at redhat.com>
    Signed-off-by: Oleksandr Natalenko <oleksandr at natalenko.name>
    Reviewed-on: http://review.gluster.org/15125
    Reviewed-by: Atin Mukherjee <amukherj at redhat.com>
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Prashanth Pai <ppai at redhat.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list