Files
Arquivotheca.Solaris-2.5/uts/sun4d/sys/vm_machparam.h
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

143 lines
4.1 KiB
C
Executable File

/*
* Copyright (c) 1991 by Sun Microsystems, Inc.
*/
/* Copyright (c) 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. */
#ifndef _SYS_VM_MACHPARAM_H
#define _SYS_VM_MACHPARAM_H
#pragma ident "@(#)vm_machparam.h 1.22 95/01/16 SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Machine dependent constants for Sun4d
*/
/*
* USRTEXT is the start of the user text/data space.
*/
#define USRTEXT 0x2000
/*
* Number of pages to flush in one request to the disk when system is
* dumping a crash image. It should be more than 1 since dump_kaddr()
* uses atleast 2 pages.
*/
#define DUMPPAGES 16
/*
* Virtual memory related constants for UNIX resource control, all in bytes
* The default stack size of 8M allows an optimization of mmu mapping
* resources so that in normal use a single mmu region map entry (smeg)
* can be used to map both the stack and shared libraries
*/
#define DFLSSIZ (8*1024*1024) /* initial stack size limit */
/*
* DSIZE_LIMIT and SSIZE_LIMIT exist to work-around an SVVS bug (1094085),
* and should be removed from the kernel (1094089)
*/
#define DSIZE_LIMIT (0x7fffffff) /* physical data limit */
#define SSIZE_LIMIT (0x7fffffff) /* physical stack limit */
#define MAXDSIZ (0x7ffff000) /* max data size limit */
#define MAXSSIZ (0x7ffff000) /* max stack size limit */
#define DFLDSIZ MAXDSIZ /* initial data size limit */
/*
* Size of the kernel segkmem system pte table. This virtual
* space is controlled by the resource map "kernelmap".
*
* The 11M is the hole that OBP may occupy. See startup.c.
*/
#define SYSPTSIZE (((79+1+146+11+14)*1024*1024) / MMU_PAGESIZE)
/*
* Minimum allowable virtual address space to be used
* by the seg_map segment driver for fast kernel mappings.
*/
#define MINMAPSIZE 0x200000
/*
* The virtual address space to be used by the seg_map segment
* driver for fast kernel mappings.
*/
#define SEGMAPSIZE (32 * 1024 * 1024)
#define SEGMAPBASE (PPMAPBASE - SEGMAPSIZE)
/*
* The time for a process to be blocked before being very swappable.
* This is a number of seconds which the system takes as being a non-trivial
* amount of real time. You probably shouldn't change this;
* it is used in subtle ways (fractions and multiples of it are, that is, like
* half of a ``long time'', almost a long time, etc.)
* It is related to human patience and other factors which don't really
* change over time.
*/
#define MAXSLP 20
/*
* A swapped in process is given a small amount of core without being bothered
* by the page replacement algorithm. Basically this says that if you are
* swapped in you deserve some resources. We protect the last SAFERSS
* pages against paging and will just swap you out rather than paging you.
* Note that each process has at least UPAGES pages which are not
* paged anyways so this number just means a swapped in process is
* given around 32k bytes.
*/
/*
* nominal ``small'' resident set size
* protected against replacement
*/
#define SAFERSS 3
/*
* DISKRPM is used to estimate the number of paging i/o operations
* which one can expect from a single disk controller.
*
* XXX - The system doesn't account for multiple swap devices.
*/
#define DISKRPM 90
/*
* Default Paging thresholds (see vm_pageout.c).
* Strategy of 11/30/93:
* lotsfree is 1/16 of memory, but at most 1024k bytes.
* desfree is 1/32 of memory, but at most 400k bytes.
* minfree is 1/2 of desfree, but at most 200k bytes.
*/
#define LOTSFREE (1024 * 1024)
#define LOTSFREEFRACT 16
#define DESFREE (400 * 1024)
#define DESFREEFRACT 32
#define MINFREE (200 * 1024)
#define MINFREEFRACT 2
/*
* The maximum value for handspreadpages which is the the distance
* between the two clock hands in pages.
*/
#define MAXHANDSPREADPAGES ((64 * 1024 * 1024) / PAGESIZE)
/*
* Paged text files that are less than PGTHRESH bytes
* may be "prefaulted in" instead of demand paged.
*/
#define PGTHRESH (280 * 1024)
#ifdef __cplusplus
}
#endif
#endif /* _SYS_VM_MACHPARAM_H */