1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23 /* All Rights Reserved */ 24 25 26 #ifndef _SYS_TUNEABLE_H 27 #define _SYS_TUNEABLE_H 28 29 #ifdef __cplusplus 30 extern "C" { 31 #endif 32 33 typedef struct tune { 34 int t_gpgslo; /* If freemem < t_getpgslow, then start */ 35 /* to steal pages from processes. */ 36 int t_pad[7]; /* Padding for driver compatibility. */ 37 int t_fsflushr; /* The rate at which fsflush is run in */ 38 /* seconds. */ 39 int t_minarmem; /* The minimum available resident (not */ 40 /* swappable) memory to maintain in */ 41 /* order to avoid deadlock. In pages. */ 42 int t_minasmem; /* The minimum available swappable */ 43 /* memory to maintain in order to avoid */ 44 /* deadlock. In pages. */ 45 int t_flckrec; /* max number of active frlocks */ 46 } tune_t; 47 48 extern tune_t tune; 49 50 /* 51 * The following is the default value for t_gpgsmsk. It cannot be 52 * defined in /etc/master or /stand/system due to limitations of the 53 * config program. 54 */ 55 56 #define GETPGSMSK PG_REF|PG_NDREF 57 58 #ifdef __cplusplus 59 } 60 #endif 61 62 #endif /* _SYS_TUNEABLE_H */ 63