]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/simple: significantly reduce minimal memory usage of Pipes 7567/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Mon, 8 Feb 2016 13:05:03 +0000 (14:05 +0100)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Mon, 8 Feb 2016 14:18:39 +0000 (15:18 +0100)
commit7181a6f1b013671c0690b3d7dbdcad9d7ad18aba
tree9b40c7c8b172637d1e250cf366b21e9bf2d2ed79
parent69d98b6563e7aa69c610f26a6d2321a98d90002e
msg/simple: significantly reduce minimal memory usage of Pipes

Pipe class instance weights over 17 KB in size, and most of it is used by
msgvec structure, which weights 16 KB. Reduce it to 4KB by reducing
number of iovecs in this array down to 256 (= 1024/4). This won't cause
noticeable perf decrease, as even under extreme loads, we exceed 256 used
iovecs in only less than 1% of all write calls. For high-density nodes and
large clusters, savings will exceed hundreds of megabytes per node.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
src/msg/simple/Pipe.cc
src/msg/simple/Pipe.h