vm_page.h (91641) | vm_page.h (92029) |
---|---|
1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 47 unchanged lines hidden (view full) --- 56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 57 * School of Computer Science 58 * Carnegie Mellon University 59 * Pittsburgh PA 15213-3890 60 * 61 * any improvements or extensions that they make and grant Carnegie the 62 * rights to redistribute these changes. 63 * | 1/* 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * The Mach Operating System project at Carnegie-Mellon University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 47 unchanged lines hidden (view full) --- 56 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 57 * School of Computer Science 58 * Carnegie Mellon University 59 * Pittsburgh PA 15213-3890 60 * 61 * any improvements or extensions that they make and grant Carnegie the 62 * rights to redistribute these changes. 63 * |
64 * $FreeBSD: head/sys/vm/vm_page.h 91641 2002-03-04 18:55:26Z alc $ | 64 * $FreeBSD: head/sys/vm/vm_page.h 92029 2002-03-10 21:52:48Z eivind $ |
65 */ 66 67/* 68 * Resident memory system definitions. 69 */ 70 71#ifndef _VM_PAGE_ 72#define _VM_PAGE_ --- 95 unchanged lines hidden (view full) --- 168#define PQ_CACHESIZE 256 169#elif defined(PQ_NORMALCACHE) 170#define PQ_CACHESIZE 64 171#elif defined(PQ_NOOPT) 172#define PQ_CACHESIZE 0 173#else 174#define PQ_CACHESIZE 128 175#endif | 65 */ 66 67/* 68 * Resident memory system definitions. 69 */ 70 71#ifndef _VM_PAGE_ 72#define _VM_PAGE_ --- 95 unchanged lines hidden (view full) --- 168#define PQ_CACHESIZE 256 169#elif defined(PQ_NORMALCACHE) 170#define PQ_CACHESIZE 64 171#elif defined(PQ_NOOPT) 172#define PQ_CACHESIZE 0 173#else 174#define PQ_CACHESIZE 128 175#endif |
176#endif | 176#endif /* !defined(PQ_CACHESIZE) */ |
177 178#if PQ_CACHESIZE >= 1024 179#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ 180#define PQ_PRIME2 23 /* Prime number somewhat less than PQ_HASH_SIZE */ 181#define PQ_L2_SIZE 256 /* A number of colors opt for 1M cache */ 182 183#elif PQ_CACHESIZE >= 512 184#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ --- 35 unchanged lines hidden (view full) --- 220struct vpgqueues { 221 struct pglist pl; 222 int *cnt; 223 int lcnt; 224}; 225 226extern struct vpgqueues vm_page_queues[PQ_COUNT]; 227 | 177 178#if PQ_CACHESIZE >= 1024 179#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ 180#define PQ_PRIME2 23 /* Prime number somewhat less than PQ_HASH_SIZE */ 181#define PQ_L2_SIZE 256 /* A number of colors opt for 1M cache */ 182 183#elif PQ_CACHESIZE >= 512 184#define PQ_PRIME1 31 /* Prime number somewhat less than PQ_HASH_SIZE */ --- 35 unchanged lines hidden (view full) --- 220struct vpgqueues { 221 struct pglist pl; 222 int *cnt; 223 int lcnt; 224}; 225 226extern struct vpgqueues vm_page_queues[PQ_COUNT]; 227 |
228#endif | 228#endif /* !defined(KLD_MODULE) */ |
229 230/* 231 * These are the flags defined for vm_page. 232 * 233 * Note: PG_FILLED and PG_DIRTY are added for the filesystems. 234 * 235 * Note: PG_UNMANAGED (used by OBJT_PHYS) indicates that the page is 236 * not under PV management but otherwise should be treated as a --- 14 unchanged lines hidden (view full) --- 251#define PG_SWAPINPROG 0x0200 /* swap I/O in progress on page */ 252#define PG_NOSYNC 0x0400 /* do not collect for syncer */ 253#define PG_UNMANAGED 0x0800 /* No PV management for page */ 254#define PG_MARKER 0x1000 /* special queue marker page */ 255 256/* 257 * Misc constants. 258 */ | 229 230/* 231 * These are the flags defined for vm_page. 232 * 233 * Note: PG_FILLED and PG_DIRTY are added for the filesystems. 234 * 235 * Note: PG_UNMANAGED (used by OBJT_PHYS) indicates that the page is 236 * not under PV management but otherwise should be treated as a --- 14 unchanged lines hidden (view full) --- 251#define PG_SWAPINPROG 0x0200 /* swap I/O in progress on page */ 252#define PG_NOSYNC 0x0400 /* do not collect for syncer */ 253#define PG_UNMANAGED 0x0800 /* No PV management for page */ 254#define PG_MARKER 0x1000 /* special queue marker page */ 255 256/* 257 * Misc constants. 258 */ |
259 | |
260#define ACT_DECLINE 1 261#define ACT_ADVANCE 3 262#define ACT_INIT 5 263#define ACT_MAX 64 264#define PFCLUSTER_BEHIND 3 265#define PFCLUSTER_AHEAD 3 266 267#ifdef _KERNEL --- 99 unchanged lines hidden (view full) --- 367void vm_page_clear_dirty (vm_page_t, int, int); 368void vm_page_set_invalid (vm_page_t, int, int); 369int vm_page_is_valid (vm_page_t, int, int); 370void vm_page_test_dirty (vm_page_t); 371int vm_page_bits (int, int); 372void vm_page_zero_invalid(vm_page_t m, boolean_t setvalid); 373void vm_page_free_toq(vm_page_t m); 374void vm_page_zero_idle_wakeup(void); | 259#define ACT_DECLINE 1 260#define ACT_ADVANCE 3 261#define ACT_INIT 5 262#define ACT_MAX 64 263#define PFCLUSTER_BEHIND 3 264#define PFCLUSTER_AHEAD 3 265 266#ifdef _KERNEL --- 99 unchanged lines hidden (view full) --- 366void vm_page_clear_dirty (vm_page_t, int, int); 367void vm_page_set_invalid (vm_page_t, int, int); 368int vm_page_is_valid (vm_page_t, int, int); 369void vm_page_test_dirty (vm_page_t); 370int vm_page_bits (int, int); 371void vm_page_zero_invalid(vm_page_t m, boolean_t setvalid); 372void vm_page_free_toq(vm_page_t m); 373void vm_page_zero_idle_wakeup(void); |
375 | |
376#endif /* _KERNEL */ 377#endif /* !_VM_PAGE_ */ | 374#endif /* _KERNEL */ 375#endif /* !_VM_PAGE_ */ |