Problem: {in,out}_batch_size must be configured at compiled time

Solution: Added a socket option to configure them at runtime.
This commit is contained in:
jean-airoldie
2019-06-27 00:34:56 -04:00
parent 4904bf7177
commit cfcab66c71
11 changed files with 145 additions and 35 deletions

View File

@@ -52,18 +52,6 @@ enum
// real-time behaviour (less latency peaks).
inbound_poll_rate = 100,
// Maximal batching size for engines with receiving functionality.
// So, if there are 10 messages that fit into the batch size, all of
// them may be read by a single 'recv' system call, thus avoiding
// unnecessary network stack traversals.
in_batch_size = 8192,
// Maximal batching size for engines with sending functionality.
// So, if there are 10 messages that fit into the batch size, all of
// them may be written by a single 'send' system call, thus avoiding
// unnecessary network stack traversals.
out_batch_size = 8192,
// Maximal delta between high and low watermark.
max_wm_delta = 1024,