From b1ab5d0606817286e743f8060cfc61c6fd8b6f3e Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 21 Apr 2003 14:55:47 +0000 Subject: nginx-0.0.1-2003-04-21-18:55:47 import --- src/core/ngx_alloc.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/core/ngx_alloc.h') 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_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; } -- cgit v1.2.3