From 6b34d160784243ffa2ec33bf4539bc33723697c3 Mon Sep 17 00:00:00 2001 From: logwang Date: Thu, 1 Mar 2018 16:07:35 +0800 Subject: [PATCH] Set the default configuration `kern.ncallout`(number of entries in callwheel and size of timeout() preallocation). --- app/nginx-1.11.10/conf/f-stack.conf | 2 ++ config.ini | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/nginx-1.11.10/conf/f-stack.conf b/app/nginx-1.11.10/conf/f-stack.conf index 38b6d078..5f390e77 100644 --- a/app/nginx-1.11.10/conf/f-stack.conf +++ b/app/nginx-1.11.10/conf/f-stack.conf @@ -66,6 +66,8 @@ net.inet.tcp.syncache.bucketlimit=100 net.inet.tcp.tcbhashsize=65536 +kern.ncallout=262144 + [freebsd.sysctl] kern.ipc.somaxconn=32768 kern.ipc.maxsockbuf=16777216 diff --git a/config.ini b/config.ini index 38b6d078..5f390e77 100644 --- a/config.ini +++ b/config.ini @@ -66,6 +66,8 @@ net.inet.tcp.syncache.bucketlimit=100 net.inet.tcp.tcbhashsize=65536 +kern.ncallout=262144 + [freebsd.sysctl] kern.ipc.somaxconn=32768 kern.ipc.maxsockbuf=16777216