summaryrefslogtreecommitdiff
path: root/debian/patches/14_alloc_params.patch
blob: bb928b93068d1a2483503f3cebf64077b5375598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
2008-12-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* i386/intel/pmap.c (pmap_bootstrap): Extend kernel virtual memory to
	at least the size of the physical memory.
	* kern/zalloc.c (zone_map_size): Increase from 12 to 64 MiB.

2007-12-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* vm/vm_map.h (VM_MAP_COPY_PAGE_LIST_MAX): Increase to 64.

2007-08-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>

	* vm/vm_object.c (vm_object_cached_max): Increase from 200 to 2000.

Index: b/kern/zalloc.c
===================================================================
--- a/kern/zalloc.c
+++ b/kern/zalloc.c
@@ -105,7 +105,7 @@ zone_t		zone_zone;	/* this is the zone c
 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.
Index: b/vm/vm_object.c
===================================================================
--- 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 = 2000;	/* may be patched*/
 
 decl_simple_lock_data(,vm_object_cached_lock_data)
 
Index: b/vm/vm_map.h
===================================================================
--- 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;
Index: i386/intel/pmap.c
===================================================================
RCS file: /cvsroot/hurd/gnumach/i386/intel/pmap.c,v
retrieving revision 1.4.2.23
retrieving revision 1.4.2.24
diff -u -p -r1.4.2.23 -r1.4.2.24
--- i386/intel/pmap.c	27 Nov 2008 01:37:52 -0000	1.4.2.23
+++ i386/intel/pmap.c	29 Dec 2008 11:11:03 -0000	1.4.2.24
@@ -576,7 +576,7 @@ void pmap_bootstrap()
 	 */
 	kernel_virtual_start = phys_last_addr;
 	kernel_virtual_end = phys_last_addr + morevm
-		+ (phys_last_addr - phys_first_addr) / 15;
+		+ (phys_last_addr - phys_first_addr);
 
 	if (kernel_virtual_end < phys_last_addr
 			|| kernel_virtual_end > VM_MAX_KERNEL_ADDRESS)