Comment 28 for bug 1479295

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

Reviewed: https://review.opencontrail.org/14411
Committed: http://github.org/Juniper/contrail-controller/commit/bc00ebff899116e73620e6d47445b4689f0a1634
Submitter: Zuul
Branch: master

commit bc00ebff899116e73620e6d47445b4689f0a1634
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