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.
Reviewed: https:/ /review. opencontrail. org/14411 github. org/Juniper/ contrail- controller/ commit/ bc00ebff899116e 73620e6d47445b4 689f0a1634
Committed: http://
Submitter: Zuul
Branch: master
commit bc00ebff899116e 73620e6d47445b4 689f0a1634
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: I27408e6e96f8de a86056fb1760e47 04851c4d4ae
Partial-Bug: #1479295