diff --git a/src/common/queue.h b/src/common/queue.h index 98a72e1197372c86b59165a94f7f2cbf47a32e7c..0cfd182592b949f596a0e288ff9ea756ca5a5e3f 100644 --- a/src/common/queue.h +++ b/src/common/queue.h @@ -25,7 +25,7 @@ #include <stdlib.h> #include <pthread.h> -#define QUEUE_ELEMS 512 +#define QUEUE_ELEMS 32 struct queue { unsigned int head; unsigned int prod_waiting; diff --git a/src/knot/common.h b/src/knot/common.h index f677f93d5650fb8ceb49dc0da06c07b5d991b563..9e31fcfaa8efcfcb8363cbb10974727bbfc69a88 100644 --- a/src/knot/common.h +++ b/src/knot/common.h @@ -51,7 +51,7 @@ typedef unsigned int uint; /*!< \brief Unsigned. */ #define DEFAULT_THR_COUNT 2 /*!< \brief Default thread count. */ #define TCP_BACKLOG_SIZE 10 /*!< \brief TCP listen backlog size. */ #define XFR_THREADS_COUNT 3 /*!< \brief Number of threads for XFR handler. */ -#define RECVMMSG_BATCHLEN 16 /*!< \brief Define for recvmmsg() batch size. */ +#define RECVMMSG_BATCHLEN 64 /*!< \brief Define for recvmmsg() batch size. */ ///*! \brief If defined, the statistics module will be enabled. */ //#define STAT_COMPILE