diff options
author | peter <peter@FreeBSD.org> | 2000-05-21 13:41:29 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-05-21 13:41:29 +0000 |
commit | 807a5519028c413f1a6eb2a4a100af4170425554 (patch) | |
tree | 04ec85a52c81760d92cfd7592df079b556640168 /sys/vm/vm_mmap.c | |
parent | 7ae48d4d372ec107a8d8d0e583c97f198a52389d (diff) | |
download | FreeBSD-src-807a5519028c413f1a6eb2a4a100af4170425554.zip FreeBSD-src-807a5519028c413f1a6eb2a4a100af4170425554.tar.gz |
Checkpoint of a new physical memory backed object type, that does not
have pv_entries. This is intended for very special circumstances,
eg: a certain database that has a 1GB shm segment mapped into 300
processes. That would consume 2GB of kvm just to hold the pv_entries
alone. This would not be used on systems unless the physical ram was
available, as it's not pageable.
This is a work-in-progress, but is a useful and functional checkpoint.
Matt has got some more fixes for it that will be committed soon.
Reviewed by: dillon
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r-- | sys/vm/vm_mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c index d5cc69d..922234a 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -1096,7 +1096,7 @@ vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot, /* * Force device mappings to be shared. */ - if (type == OBJT_DEVICE) { + if (type == OBJT_DEVICE || type == OBJT_PHYS) { flags &= ~(MAP_PRIVATE|MAP_COPY); flags |= MAP_SHARED; } |