Comment 24 for bug 1479295

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/13975
Committed: http://github.org/Juniper/contrail-controller/commit/860f56196cf3d4a17eda7f2a94848f0b9ccb5182
Submitter: Zuul
Branch: R2.22-dev

commit 860f56196cf3d4a17eda7f2a94848f0b9ccb5182
Author: Praveen K V <email address hidden>
Date: Tue Sep 22 16:41:26 2015 +0530

Use variable sized buffer for KSync Encode

The old code was using 4K buffer for Sandesh Encode and KSync write
operations. However, most of the messages are much smaller.

The encoded message buffers are enqueued into async_send_queue_. In
scaled setups, the size of work-queue can grow large resulting in lots
of unused memory.

Modifying KSync to use 512bytes buffer by default. Only NH will use 4K
buffer to take care of large composite-NH.

Change-Id: I27408e6e96f8dea86056fb1760e4704851c4d4ae
Partial-Bug: #1479295