diff options
-rw-r--r-- | i386/i386at/model_dep.c | 6 | ||||
-rw-r--r-- | kern/zalloc.c | 2 | ||||
-rw-r--r-- | linux/src/drivers/block/ide.h | 2 | ||||
-rw-r--r-- | vm/vm_map.h | 2 | ||||
-rw-r--r-- | vm/vm_object.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index b9fb7c0..b98a4d8 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -233,10 +233,10 @@ mem_size_init(void) printf("AT386 boot: physical memory from 0x%x to 0x%x\n", phys_first_addr, phys_last_addr); - /* Reserve 1/16 of the memory address space for virtual mappings. + /* Reserve 1/6 of the memory address space for virtual mappings. * Yes, this loses memory. Blame i386. */ - if (phys_last_addr > (VM_MAX_KERNEL_ADDRESS / 16) * 15) { - phys_last_addr = (VM_MAX_KERNEL_ADDRESS / 16) * 15; + if (phys_last_addr > (VM_MAX_KERNEL_ADDRESS / 6) * 5) { + phys_last_addr = (VM_MAX_KERNEL_ADDRESS / 6) * 5; printf("Truncating memory size to %dMiB\n", (phys_last_addr - phys_first_addr) / (1024 * 1024)); } diff --git a/kern/zalloc.c b/kern/zalloc.c index f2904e4..a95c7f6 100644 --- a/kern/zalloc.c +++ b/kern/zalloc.c @@ -105,7 +105,7 @@ zone_t zone_zone; /* this is the zone containing other zones */ boolean_t zone_ignore_overflow = TRUE; vm_map_t zone_map = VM_MAP_NULL; -vm_size_t zone_map_size = 12 * 1024 * 1024; +vm_size_t zone_map_size = 64 * 1024 * 1024; /* * The VM system gives us an initial chunk of memory. diff --git a/linux/src/drivers/block/ide.h b/linux/src/drivers/block/ide.h index 5310ac8..4433160 100644 --- a/linux/src/drivers/block/ide.h +++ b/linux/src/drivers/block/ide.h @@ -23,7 +23,7 @@ * REALLY_SLOW_IO can be defined in ide.c and ide-cd.c, if necessary */ #undef REALLY_FAST_IO /* define if ide ports are perfect */ -#define INITIAL_MULT_COUNT 0 /* off=0; on=2,4,8,16,32, etc.. */ +#define INITIAL_MULT_COUNT 16 /* off=0; on=2,4,8,16,32, etc.. */ #ifndef SUPPORT_SLOW_DATA_PORTS /* 1 to support slow data ports */ #define SUPPORT_SLOW_DATA_PORTS 1 /* 0 to reduce kernel size */ diff --git a/vm/vm_map.h b/vm/vm_map.h index 1b8423e..567fe93 100644 --- a/vm/vm_map.h +++ b/vm/vm_map.h @@ -226,7 +226,7 @@ typedef struct vm_map_version { * (returned) and an abort flag (abort if TRUE). */ -#define VM_MAP_COPY_PAGE_LIST_MAX 8 +#define VM_MAP_COPY_PAGE_LIST_MAX 64 typedef struct vm_map_copy { int type; diff --git a/vm/vm_object.c b/vm/vm_object.c index 88e94b7..8da7a88 100644 --- a/vm/vm_object.c +++ b/vm/vm_object.c @@ -179,7 +179,7 @@ vm_object_t kernel_object; */ queue_head_t vm_object_cached_list; int vm_object_cached_count; -int vm_object_cached_max = 200; /* may be patched*/ +int vm_object_cached_max = 4000; /* may be patched*/ decl_simple_lock_data(,vm_object_cached_lock_data) |