Print this page
13097 improve VM tunables for modern systems (fix mismerge)

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/vm/vm_page.c
          +++ new/usr/src/uts/common/vm/vm_page.c
↓ open down ↓ 76 lines elided ↑ open up ↑
  77   77  #include <vm/pvn.h>
  78   78  #include <vm/seg_kmem.h>
  79   79  #include <vm/vm_dep.h>
  80   80  #include <sys/vm_usage.h>
  81   81  #include <fs/fs_subr.h>
  82   82  #include <sys/ddi.h>
  83   83  #include <sys/modctl.h>
  84   84  
  85   85  static pgcnt_t max_page_get;    /* max page_get request size in pages */
  86   86  pgcnt_t total_pages = 0;        /* total number of pages (used by /proc) */
       87 +uint64_t n_throttle = 0;        /* num times page create throttled */
  87   88  
  88   89  /*
  89   90   * freemem_lock protects all freemem variables:
  90   91   * availrmem. Also this lock protects the globals which track the
  91   92   * availrmem changes for accurate kernel footprint calculation.
  92   93   * See below for an explanation of these
  93   94   * globals.
  94   95   */
  95   96  kmutex_t freemem_lock;
  96   97  pgcnt_t availrmem;
↓ open down ↓ 7396 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX