summaryrefslogtreecommitdiff
path: root/debian/patches/14_alloc_params.patch
blob: f4b7e69c61cd8e4bc3ec081b6917c11647784ffe (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
2007-08-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>

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

2005-05-11  Neal H. Walfield  <neal@cs.uml.edu>

	* kern/mach_param.h (THREAD_MAX, TASK_MAX, ACT_MAX,
	ACTPOOL_MAX): Make them 64 times bigger.
	* kern/zalloc.c (zone_map_size): Increase from 12 to 16 MiB.


Index: kern/mach_param.h
===================================================================
--- kern/mach_param.h.orig	2001-04-05 09:39:20.000000000 +0300
+++ kern/mach_param.h	2007-04-05 07:31:10.000000000 +0300
@@ -38,16 +38,16 @@
 #ifndef	_KERN_MACH_PARAM_H_
 #define _KERN_MACH_PARAM_H_
 
-#define THREAD_MAX	1024		/* Max number of threads */
+#define THREAD_MAX	64 * 1024		/* Max number of threads */
 #define THREAD_CHUNK	64		/* Allocation chunk */
 
-#define TASK_MAX	1024		/* Max number of tasks */
+#define TASK_MAX	64 * 1024		/* Max number of tasks */
 #define TASK_CHUNK	64		/* Allocation chunk */
 
-#define ACT_MAX		1024		/* Max number of acts */
+#define ACT_MAX		64 * 1024		/* Max number of acts */
 #define ACT_CHUNK	64		/* Allocation chunk */
 
-#define ACTPOOL_MAX	1024
+#define ACTPOOL_MAX	64 * 1024
 #define ACTPOOL_CHUNK	64
 
 #define PORT_MAX	((TASK_MAX * 3 + THREAD_MAX)	/* kernel */ \
Index: kern/zalloc.c
===================================================================
--- kern/zalloc.c.orig	2007-02-11 14:51:17.000000000 +0200
+++ kern/zalloc.c	2007-04-05 07:31:10.000000000 +0300
@@ -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 = 16 * 1024 * 1024;
 
 /*
  *	The VM system gives us an initial chunk of memory.
Index: vm/vm_object.c
===================================================================
RCS file: /cvsroot/hurd/gnumach/vm/vm_object.c,v
retrieving revision 1.2.4.9
diff -u -p -r1.2.4.9 vm_object.c
--- vm/vm_object.c	1 Mar 2007 09:46:46 -0000	1.2.4.9
+++ vm/vm_object.c	20 Aug 2007 00:14:12 -0000
@@ -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)