diff src/core/ngx_alloc.h @ 78:9f81437e0ad3

nginx-0.0.1-2003-04-21-18:55:47 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 21 Apr 2003 14:55:47 +0000
parents 0e81ac0bb3e2
children 637625a2acdb
line wrap: on
line diff
--- 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; }