Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Why is (getpagesize() - 1) special?
  2. /*
  3.  * NGX_MAX_ALLOC_FROM_POOL should be (ngx_pagesize - 1), i.e. 4095 on x86.
  4.  * On Windows NT it decreases a number of locked pages in a kernel.
  5.  */
  6. #define NGX_MAX_ALLOC_FROM_POOL  (ngx_pagesize - 1)