home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) 1984, 1986, 1987, 1988 AT&T */
- /* All Rights Reserved */
-
- /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
- /* The copyright notice above does not evidence any */
- /* actual or intended publication of such source code. */
-
- /* Copyright (c) 1987, 1988 Microsoft Corporation */
- /* All Rights Reserved */
-
- /* This Module contains Proprietary Information of Microsoft */
- /* Corporation and should be treated as Confidential. */
-
- #ident "@(#)head.sys:tuneable.h 1.3.1.2"
-
- typedef struct tune {
- int t_gpgslo; /* If freemem < t_getpgslow, then start */
- /* to steal pages from processes. */
- int t_gpgshi; /* Once we start to steal pages, don't */
- /* stop until freemem > t_getpgshi. */
- int t_gpgsmsk; /* Mask used by getpages to determine */
- /* whether a page is stealable. The */
- /* page is stealable if pte & t_gpgsmsk */
- /* is == 0. Possible values for this */
- /* mask are: */
- /* 0 - steal any valid page. */
- /* PG_REF - steal page if not */
- /* referenced in */
- /* t_vhandr seconds. */
- /* mask = 0x00000001 */
- /* PG_REF|PG_NDREF - steal page if not */
- /* referenced in 2 * */
- /* t_vhandr seconds. */
- /* mask = 0x08000001 */
- int t_notused; /* Not used */
- int t_ageinterval; /* Age process every so many seconds */
- int t_maxsc; /* The maximum number of pages which */
- /* will be swapped out in a single */
- /* operation. Cannot be larger than */
- /* MAXSPGLST in getpages.h. */
- int t_maxfc; /* The maximum number of pages which */
- /* will be saved up and freed at once. */
- /* Cannot be larger than MAXFPGLST in */
- /* getpages.h. */
- int t_maxumem; /* The maximum size of a user's virtual */
- /* address space in pages. */
- int t_bdflushr; /* The rate at which bdflush is run in */
- /* seconds. */
- int t_minarmem; /* The minimum available resident (not */
- /* swapable) memory to maintain in */
- /* order to avoid deadlock. In pages. */
- int t_minasmem; /* The minimum available swapable */
- /* memory to maintain in order to avoid */
- /* deadlock. In pages. */
- } tune_t;
-
- extern tune_t tune;
-
- /* The following is the default value for t_gpgsmsk. It cannot be
- * defined in /etc/master or /etc/system due to limitations of the
- * config program.
- */
-
- #define GETPGSMSK PG_REF|PG_NDREF
-