[Bugs] [Bug 1418095] New: Portmap allocates way too much memory (256KB) on stack
bugzilla at redhat.com
bugzilla at redhat.com
Tue Jan 31 20:17:47 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=1418095
Bug ID: 1418095
Summary: Portmap allocates way too much memory (256KB) on stack
Product: GlusterFS
Version: mainline
Component: glusterd
Assignee: bugs at gluster.org
Reporter: jdarcy at redhat.com
CC: bugs at gluster.org
Some functions were allocating 64K booleans, which are (crazily) mapped to
4-byte ints, for a total of 256KB per call. Besides being generally wasteful,
this means any code that creates worker threads - e.g. syncops, io-threads
translator - must allocate much bigger stacks for each thread *just in case* it
calls into portmap. With multiplexing, this limits the number of threads we
can have, and therefore the number of bricks we can support in one process.
--
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