Mercurial > hg > nginx
comparison src/core/ngx_palloc.h @ 1200:ff63527ea29c
limit minimal pool size
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 07 May 2007 09:20:42 +0000 |
parents | 4d203f76b757 |
children | 4d8140271204 |
comparison
equal
deleted
inserted
replaced
1199:98317b0a0852 | 1200:ff63527ea29c |
---|---|
17 * On FreeBSD 5.x it allows to use the zero copy sending. | 17 * On FreeBSD 5.x it allows to use the zero copy sending. |
18 * On Windows NT it decreases a number of locked pages in a kernel. | 18 * On Windows NT it decreases a number of locked pages in a kernel. |
19 */ | 19 */ |
20 #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1) | 20 #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1) |
21 | 21 |
22 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) | 22 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) |
23 #define NGX_MIN_POOL_SIZE \ | |
24 (sizeof(ngx_pool_t) + 2 * sizeof(ngx_pool_large_t)) | |
23 | 25 |
24 | 26 |
25 typedef void (*ngx_pool_cleanup_pt)(void *data); | 27 typedef void (*ngx_pool_cleanup_pt)(void *data); |
26 | 28 |
27 typedef struct ngx_pool_cleanup_s ngx_pool_cleanup_t; | 29 typedef struct ngx_pool_cleanup_s ngx_pool_cleanup_t; |