home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 9.ddi / usr / include / sys / vmparam.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.6 KB  |  95 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10. /*
  11.  * +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  12.  *         PROPRIETARY NOTICE (Combined)
  13.  * 
  14.  * This source code is unpublished proprietary information
  15.  * constituting, or derived under license from AT&T's UNIX(r) System V.
  16.  * In addition, portions of such source code were derived from Berkeley
  17.  * 4.3 BSD under license from the Regents of the University of
  18.  * California.
  19.  * 
  20.  * 
  21.  * 
  22.  *         Copyright Notice 
  23.  * 
  24.  * Notice of copyright on this source code product does not indicate 
  25.  * publication.
  26.  * 
  27.  *     (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  28.  *     (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  29.  *               All rights reserved.
  30.  *  
  31.  */
  32.  
  33. #ifndef _SYS_VMPARAM_H
  34. #define _SYS_VMPARAM_H
  35.  
  36. #ident    "@(#)/usr/include/sys/vmparam.h.sl 1.1 4.0 12/08/90 6431 AT&T-USL"
  37.  
  38.  
  39. /*
  40.  * Machine dependent constants 
  41.  */
  42.  
  43. #define    SSIZE        1            /* initial stack size */
  44. #define    SINCR        1            /* increment of stack */
  45.  
  46.  
  47. /*
  48.  * DISKRPM is used to estimate the number of paging i/o operations
  49.  * which one can expect from a single disk controller.
  50.  */
  51. #define    DISKRPM        60
  52.  
  53. /*
  54.  * Paging thresholds (see vm_pageout.c).
  55.  * Strategy of 3/17/83:
  56.  *    lotsfree is 256k bytes, but at most 1/8 of memory
  57.  *    desfree is 100k bytes, but at most 1/16 of memory
  58.  *    minfree is 32k bytes, but at most 1/2 of desfree
  59.  */
  60. #define    LOTSFREE    (256 * 1024)
  61. #define    LOTSFREEFRACT    8
  62. #define    DESFREE        (100 * 1024)
  63. #define    DESFREEFRACT    16
  64. #define    MINFREE        (32 * 1024)
  65. #define    MINFREEFRACT    2
  66.  
  67. /*
  68.  * There are two clock hands, initially separated by HANDSPREAD bytes
  69.  * (but at most all of user memory).  The amount of time to reclaim
  70.  * a page once the pageout process examines it increases with this
  71.  * distance and decreases as the scan rate rises.
  72.  */
  73. #define    HANDSPREAD    (2 * 1024 * 1024)
  74.  
  75. /*
  76.  * Paged text files that are less than PGTHRESH bytes
  77.  * may be "prefaulted in" instead of demand paged.
  78.  */
  79. #define PGTHRESH    (32 * 1024)
  80.  
  81. /*
  82.  * Functions which return a physical page ID return NOPAGE if
  83.  * there is no valid physical page ID.
  84.  */
  85. #define NOPAGE        ((unsigned int)-1)
  86.  
  87. /*
  88.  * PSPACE_MAINSTORE is the code for the physical address space which includes,
  89.  * at least, "mainstore" system memory, which is the memory that programs
  90.  * (and the kernel) execute out of.  See hat_getppfnum(D3K).
  91.  */
  92. #define PSPACE_MAINSTORE    0
  93.  
  94. #endif    /* _SYS_VMPARAM_H */
  95.