[Bugs] [Bug 1229282] Disperse volume: Huge memory leak of glusterfsd process

bugzilla at redhat.com bugzilla at redhat.com
Wed Jul 8 05:34:58 UTC 2015


--- Comment #20 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/11527 committed in release-3.7 by Raghavendra
G (rgowdapp at redhat.com) 
commit 3f9dae11173475d759adb16dd64bea9cef0bf1c4
Author: vmallika <vmallika at redhat.com>
Date:   Mon Jun 29 19:12:28 2015 +0530

    quota/marker: fix mem leak in marker

    This is a backport of http://review.gluster.org/#/c/11457/

    Now the marker accounting happens in background,
    There is a possibility that before completing
    create_xattr_txn another create txn can be initiated
    for the same inode.
    suppose if few 100 txns are initiated
    before completion, this can block all synctask threads
    waiting on a lock and this can also consume lot of memory
    and can take more time to complete the background accounting

    This patch improves the locking mechanism which
    can improve the performance as well reduce memory

    For every lookup and for all inodes in readdirp
    we were initiating a new txn, this can result
    in more txn pending in synctask queue and
    lead to huge memory consumption. inspect
    file/dir should start a txn only if there
    is some delta

    When there are multiple write operations on
    same inode and all the synctask threads are busy.
    As we are checking for updation_status
    flag in background, all txn will be move to synctask queue.
    This can increase the mem usage.

    Only one txn for inode in a queue will be sufficient,
    so check and set updation falg before moving txn to

    > Change-Id: Ic42ce00f0a50ce51c7128ba68a1b6a0699a1cd14
    > BUG: 1207735
    > Signed-off-by: vmallika <vmallika at redhat.com>

    Change-Id: I52a05b99b19b97c79b69671120f53e05481f99cd
    BUG: 1229282
    Signed-off-by: vmallika <vmallika at redhat.com>
    Reviewed-on: http://review.gluster.org/11527
    Tested-by: NetBSD Build System <jenkins at build.gluster.org>
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    Tested-by: Raghavendra G <rgowdapp at redhat.com>

You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=trlpfhFjVn&a=cc_unsubscribe

More information about the Bugs mailing list