[Bugs] [Bug 1418536] Portmap allocates way too much memory (256KB) on stack

bugzilla at redhat.com bugzilla at redhat.com
Thu Feb 2 17:32:53 UTC 2017


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



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/16511 committed in release-3.10 by
Shyamsundar Ranganathan (srangana at redhat.com) 
------
commit c10507ce75547a7a7899fbf36be650ddc89ba467
Author: Jeff Darcy <jdarcy at redhat.com>
Date:   Thu Oct 27 11:51:47 2016 -0400

    libglusterfs+transport+io-threads: fix 256KB stack abuse

    Some functions were allocating 64K booleans, which are (crazily)
    mapped to 4-byte ints, for a total of 256KB per call.  Changed to use
    bitfields instead, so usage is now only 8KB per call.  This was the
    impediment to changing the io-threads stack size, so that has been
    adjusted too.

    Backport of:
    > Change-Id: I8781c4f2c8f2b830f4535e366995fac8dd0a8653
    > BUG: 1418095
    > Reviewed-on: https://review.gluster.org/15745

    Change-Id: Ia5dada61703e6bea95f2511da71feb573fc9a429
    BUG: 1418536
    Signed-off-by: Jeff Darcy <jdarcy at redhat.com>
    Reviewed-on: https://review.gluster.org/16511
    Reviewed-by: N Balachandran <nbalacha at redhat.com>
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Reviewed-by: Vijay Bellur <vbellur at redhat.com>
    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.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=1q99ZaFaOB&a=cc_unsubscribe


More information about the Bugs mailing list