vmparam.h revision 80708
180708Sjake/*- 280708Sjake * Copyright (c) 2001 Jake Burkholder. 380708Sjake * All rights reserved. 480708Sjake * 580708Sjake * Redistribution and use in source and binary forms, with or without 680708Sjake * modification, are permitted provided that the following conditions 780708Sjake * are met: 880708Sjake * 1. Redistributions of source code must retain the above copyright 980708Sjake * notice, this list of conditions and the following disclaimer. 1080708Sjake * 2. Redistributions in binary form must reproduce the above copyright 1180708Sjake * notice, this list of conditions and the following disclaimer in the 1280708Sjake * documentation and/or other materials provided with the distribution. 1380708Sjake * 1480708Sjake * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1580708Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1680708Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1780708Sjake * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1880708Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1980708Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2080708Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2180708Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2280708Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2380708Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2480708Sjake * SUCH DAMAGE. 2580708Sjake * 2680708Sjake * $FreeBSD: head/sys/sparc64/include/vmparam.h 80708 2001-07-31 05:45:16Z jake $ 2780708Sjake */ 2880708Sjake 2980708Sjake#ifndef _MACHINE_VMPARAM_H_ 3080708Sjake#define _MACHINE_VMPARAM_H_ 3180708Sjake 3280708Sjake/* 3380708Sjake * Virtual memory related constants, all in bytes 3480708Sjake */ 3580708Sjake#ifndef MAXTSIZ 3680708Sjake#define MAXTSIZ (1*1024*1024*1024) /* max text size */ 3780708Sjake#endif 3880708Sjake#ifndef DFLDSIZ 3980708Sjake#define DFLDSIZ (128*1024*1024) /* initial data size limit */ 4080708Sjake#endif 4180708Sjake#ifndef MAXDSIZ 4280708Sjake#define MAXDSIZ (1*1024*1024*1024) /* max data size */ 4380708Sjake#endif 4480708Sjake#ifndef DFLSSIZ 4580708Sjake#define DFLSSIZ (128*1024*1024) /* initial stack size limit */ 4680708Sjake#endif 4780708Sjake#ifndef MAXSSIZ 4880708Sjake#define MAXSSIZ (1*1024*1024*1024) /* max stack size */ 4980708Sjake#endif 5080708Sjake#ifndef SGROWSIZ 5180708Sjake#define SGROWSIZ (128*1024) /* amount to grow stack */ 5280708Sjake#endif 5380708Sjake 5480708Sjake/* 5580708Sjake * The time for a process to be blocked before being very swappable. 5680708Sjake * This is a number of seconds which the system takes as being a non-trivial 5780708Sjake * amount of real time. You probably shouldn't change this; 5880708Sjake * it is used in subtle ways (fractions and multiples of it are, that is, like 5980708Sjake * half of a ``long time'', almost a long time, etc.) 6080708Sjake * It is related to human patience and other factors which don't really 6180708Sjake * change over time. 6280708Sjake */ 6380708Sjake#define MAXSLP 20 6480708Sjake 6580708Sjake#define VM_MAXUSER_ADDRESS 0 6680708Sjake 6780708Sjake#define USRSTACK VM_MAXUSER_ADDRESS 6880708Sjake 6980708Sjake#define VM_MIN_ADDRESS 0 7080708Sjake 7180708Sjake/* 7280708Sjake * Virtual size (bytes) for various kernel submaps. 7380708Sjake */ 7480708Sjake#ifndef VM_KMEM_SIZE 7580708Sjake#define VM_KMEM_SIZE (12*1024*1024) 7680708Sjake#endif 7780708Sjake 7880708Sjake#define VM_MIN_KERNEL_ADDRESS (0) 7980708Sjake#define VM_MAX_KERNEL_ADDRESS (0) 8080708Sjake 8180708Sjake#define KERNBASE (0) 8280708Sjake 8380708Sjake/* 8480708Sjake * Initial pagein size of beginning of executable file. 8580708Sjake */ 8680708Sjake#ifndef VM_INITIAL_PAGEIN 8780708Sjake#define VM_INITIAL_PAGEIN 16 8880708Sjake#endif 8980708Sjake 9080708Sjake#endif /* !_MACHINE_VMPARAM_H_ */ 91