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)
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>

No differences found
This page took 0.028267 seconds and 4 git commands to generate.