aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_alloc.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-04-21 14:55:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-04-21 14:55:47 +0000
commitb1ab5d0606817286e743f8060cfc61c6fd8b6f3e (patch)
treec790004e06be0315e292bce3b785a9114df42a39 /src/core/ngx_alloc.h
parent6a7fd11170b5e8f62f67c739da6d83470f5407fd (diff)
downloadnginx-b1ab5d0606817286e743f8060cfc61c6fd8b6f3e.tar.gz
nginx-b1ab5d0606817286e743f8060cfc61c6fd8b6f3e.zip
nginx-0.0.1-2003-04-21-18:55:47 import
Diffstat (limited to 'src/core/ngx_alloc.h')
-rw-r--r--src/core/ngx_alloc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/ngx_alloc.h b/src/core/ngx_alloc.h
index 7fef65b7c..722d79cd1 100644
--- a/src/core/ngx_alloc.h
+++ b/src/core/ngx_alloc.h
@@ -6,8 +6,12 @@
#include <ngx_log.h>
+/* NGX_MAX_ALLOC_FROM_POOL should be (PAGE_SIZE - 1), i.e. 4095 on x86.
+ On FreeBSD 5.x it allows to use zero copy send.
+ On Windows NT it decreases number of locked pages in kernel.
+ */
+#define NGX_MAX_ALLOC_FROM_POOL 4095
-#define NGX_MAX_ALLOC_FROM_POOL (8192 - sizeof(ngx_pool_t))
#define NGX_DEFAULT_POOL_SIZE (16 * 1024)
#define ngx_test_null(p, alloc, rc) if ((p = alloc) == NULL) { return rc; }