[PATCH 6/6] AKT - automatic tuning applied to some kernel components

Previous thread: [PATCH 4/6] AKT - min and max kobjects by Nadia.Derbey on Tuesday, January 30, 2007 - 3:11 am. (1 message)

Next thread: Re: [Bluez-devel] trouble with sysfs and bluetooth by Marcel Holtmann on Tuesday, January 30, 2007 - 3:52 am. (3 messages)
From: Nadia.Derbey
Date: Tuesday, January 30, 2007 - 3:11 am

[PATCH 06/06]


The following kernel components register a tunable structure and call the
auto-tuning routine:
  . file system
  . shared memory (per namespace)
  . semaphore (per namespace)
  . message queues (per namespace)


Signed-off-by: Nadia Derbey <Nadia.Derbey@bull.net>


---
 fs/file_table.c     |   82 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 include/linux/akt.h |    1 
 include/linux/ipc.h |    6 +++
 init/main.c         |    1 
 ipc/msg.c           |   20 ++++++++++++
 ipc/sem.c           |   43 +++++++++++++++++++++++++++
 ipc/shm.c           |   76 +++++++++++++++++++++++++++++++++++++++++++++---
 7 files changed, 224 insertions(+), 5 deletions(-)

Index: linux-2.6.20-rc4/include/linux/akt.h
===================================================================
--- linux-2.6.20-rc4.orig/include/linux/akt.h	2007-01-29 15:57:59.000000000 +0100
+++ linux-2.6.20-rc4/include/linux/akt.h	2007-01-29 16:05:58.000000000 +0100
@@ -262,5 +262,6 @@ static inline void init_auto_tuning(void
 #endif	/* CONFIG_AKT */
 
 extern void fork_late_init(void);
+extern void files_late_init(void);
 
 #endif /* AKT_H */
Index: linux-2.6.20-rc4/include/linux/ipc.h
===================================================================
--- linux-2.6.20-rc4.orig/include/linux/ipc.h	2007-01-29 12:39:30.000000000 +0100
+++ linux-2.6.20-rc4/include/linux/ipc.h	2007-01-29 16:07:37.000000000 +0100
@@ -52,6 +52,7 @@ struct ipc_perm
 #ifdef __KERNEL__
 
 #include <linux/kref.h>
+#include <linux/akt.h>
 
 #define IPCMNI 32768  /* <= MAX_INT limit for ipc arrays (including sysctl changes) */
 
@@ -77,15 +78,20 @@ struct ipc_namespace {
 
 	int		sem_ctls[4];
 	int		used_sems;
+	DECLARE_TUNABLE(semmni_akt);
+	DECLARE_TUNABLE(semmns_akt);
 
 	int		msg_ctlmax;
 	int		msg_ctlmnb;
 	int		msg_ctlmni;
+	DECLARE_TUNABLE(msgmni_akt);
 
 	size_t		shm_ctlmax;
 	size_t		shm_ctlall;
 	int		shm_ctlmni;
 ...
Previous thread: [PATCH 4/6] AKT - min and max kobjects by Nadia.Derbey on Tuesday, January 30, 2007 - 3:11 am. (1 message)

Next thread: Re: [Bluez-devel] trouble with sysfs and bluetooth by Marcel Holtmann on Tuesday, January 30, 2007 - 3:52 am. (3 messages)