vmparam.h revision 80708
1/*-
2 * Copyright (c) 2001 Jake Burkholder.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 *    notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 *    notice, this list of conditions and the following disclaimer in the
12 *    documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/sparc64/include/vmparam.h 80708 2001-07-31 05:45:16Z jake $
27 */
28
29#ifndef	_MACHINE_VMPARAM_H_
30#define	_MACHINE_VMPARAM_H_
31
32/*
33 * Virtual memory related constants, all in bytes
34 */
35#ifndef MAXTSIZ
36#define	MAXTSIZ		(1*1024*1024*1024)	/* max text size */
37#endif
38#ifndef DFLDSIZ
39#define	DFLDSIZ		(128*1024*1024)		/* initial data size limit */
40#endif
41#ifndef MAXDSIZ
42#define	MAXDSIZ		(1*1024*1024*1024)	/* max data size */
43#endif
44#ifndef	DFLSSIZ
45#define	DFLSSIZ		(128*1024*1024)		/* initial stack size limit */
46#endif
47#ifndef	MAXSSIZ
48#define	MAXSSIZ		(1*1024*1024*1024)	/* max stack size */
49#endif
50#ifndef	SGROWSIZ
51#define	SGROWSIZ	(128*1024)		/* amount to grow stack */
52#endif
53
54/*
55 * The time for a process to be blocked before being very swappable.
56 * This is a number of seconds which the system takes as being a non-trivial
57 * amount of real time.  You probably shouldn't change this;
58 * it is used in subtle ways (fractions and multiples of it are, that is, like
59 * half of a ``long time'', almost a long time, etc.)
60 * It is related to human patience and other factors which don't really
61 * change over time.
62 */
63#define	MAXSLP			20
64
65#define	VM_MAXUSER_ADDRESS	0
66
67#define	USRSTACK		VM_MAXUSER_ADDRESS
68
69#define	VM_MIN_ADDRESS		0
70
71/*
72 * Virtual size (bytes) for various kernel submaps.
73 */
74#ifndef	VM_KMEM_SIZE
75#define	VM_KMEM_SIZE	(12*1024*1024)
76#endif
77
78#define	VM_MIN_KERNEL_ADDRESS	(0)
79#define	VM_MAX_KERNEL_ADDRESS	(0)
80
81#define	KERNBASE		(0)
82
83/*
84 * Initial pagein size of beginning of executable file.
85 */
86#ifndef	VM_INITIAL_PAGEIN
87#define	VM_INITIAL_PAGEIN	16
88#endif
89
90#endif /* !_MACHINE_VMPARAM_H_ */
91