home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / tuneable.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  2.3 KB  |  65 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. /*    Copyright (c) 1987, 1988 Microsoft Corporation    */
  9. /*      All Rights Reserved    */
  10.  
  11. /*    This Module contains Proprietary Information of Microsoft  */
  12. /*    Corporation and should be treated as Confidential.       */
  13.  
  14. #ident    "@(#)head.sys:tuneable.h    1.3.1.2"
  15.  
  16. typedef struct tune {
  17.     int    t_gpgslo;    /* If freemem < t_getpgslow, then start    */
  18.                 /* to steal pages from processes.    */
  19.     int    t_gpgshi;    /* Once we start to steal pages, don't    */
  20.                 /* stop until freemem > t_getpgshi.    */
  21.     int    t_gpgsmsk;    /* Mask used by getpages to determine    */
  22.                 /* whether a page is stealable.  The    */
  23.                 /* page is stealable if pte & t_gpgsmsk    */
  24.                 /* is == 0.  Possible values for this    */
  25.                 /* mask are:                */
  26.                 /* 0        - steal any valid page.    */
  27.                 /* PG_REF    - steal page if not    */
  28.                 /*          referenced in     */
  29.                 /*          t_vhandr seconds.    */
  30.                 /*          mask = 0x00000001    */
  31.                 /* PG_REF|PG_NDREF - steal page if not    */
  32.                 /*          referenced in 2 *    */
  33.                 /*          t_vhandr seconds.    */
  34.                 /*          mask = 0x08000001    */
  35.     int    t_notused;    /* Not used                */
  36.     int    t_ageinterval;    /* Age process every so many seconds    */
  37.     int    t_maxsc;    /* The maximum number of pages which    */
  38.                 /* will be swapped out in a single    */
  39.                 /* operation.  Cannot be larger than    */
  40.                 /* MAXSPGLST in getpages.h.        */
  41.     int    t_maxfc;    /* The maximum number of pages which    */
  42.                 /* will be saved up and freed at once.    */
  43.                 /* Cannot be larger than MAXFPGLST in    */
  44.                 /* getpages.h.                */
  45.     int    t_maxumem;    /* The maximum size of a user's virtual    */
  46.                 /* address space in pages.        */
  47.     int    t_bdflushr;    /* The rate at which bdflush is run in    */
  48.                 /* seconds.                */
  49.     int    t_minarmem;    /* The minimum available resident (not    */
  50.                 /* swapable) memory to maintain in     */
  51.                 /* order to avoid deadlock.  In pages.    */
  52.     int    t_minasmem;    /* The minimum available swapable    */
  53.                 /* memory to maintain in order to avoid    */
  54.                 /* deadlock.  In pages.            */
  55. } tune_t;
  56.  
  57. extern tune_t    tune;
  58.  
  59. /*    The following is the default value for t_gpgsmsk.  It cannot be
  60.  *    defined in /etc/master or /etc/system due to limitations of the
  61.  *    config program.
  62.  */
  63.  
  64. #define    GETPGSMSK    PG_REF|PG_NDREF
  65.