diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-04-27 00:30:26 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-05-29 21:06:16 +0200 |
commit | ccd51bd2108fceadccaa4f5c6829a32207d5091f (patch) | |
tree | cca57ccd1666898cd0f9a2f2a8e2b1fe2a7a0ccc /zebra/zserv.h | |
parent | zebra: don't send data after closing connection (diff) | |
download | frr-ccd51bd2108fceadccaa4f5c6829a32207d5091f.tar.xz frr-ccd51bd2108fceadccaa4f5c6829a32207d5091f.zip |
zebra: misc fixes, perf improvements
* Coalesce multiple write() syscalls into one
* Write larger chunks
* Decrease default read limit to 1000
* Remove unnecessary operations from hot loop (zserv_write)
* Move cross-schedule out of obuf lock
* Use atomic ops to update atomic variable
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r-- | zebra/zserv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h index c8b65b6a4..2a681552d 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -186,7 +186,7 @@ struct zebra_t { /* LSP work queue */ struct work_queue *lsp_process_q; -#define ZEBRA_ZAPI_PACKETS_TO_PROCESS 100000 +#define ZEBRA_ZAPI_PACKETS_TO_PROCESS 1000 _Atomic uint32_t packets_to_process; }; extern struct zebra_t zebrad; |