relayd: optimize receive throughput
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Jun 2016 20:27:36 +0000 (22:27 +0200)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 Jun 2016 06:25:48 +0000 (02:25 -0400)
commitb95ad2e1035a3a09c0df6215a38c8a51459a313b
treed3dfbc9f6e85a3b3dc9b2aab29468e80b95abebe
parent70cfe01dca817811451fe3748ace217aa81bbf9f
relayd: optimize receive throughput

For channels configured with large sub-buffer size, the relayd copies
the entire trace sub-buffer (trace packet) into a large buffer, and then
copies the large buffer to disk. It is inefficient from a point of view
of cache locality.

Use a 64k buffer on the stack instead, and move the data piece-wise.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-relayd/main.c
This page took 0.030097 seconds and 4 git commands to generate.