The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* add /proc/sys/kernel/cache_decay_ticks
@ 2003-06-18 21:51 David Mosberger
  0 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2003-06-18 21:51 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

/proc/sys/kernel/cache_decay_ticks allows runtime tuning of the
scheduler.  The earlier patch collided with the C99-ification of the
file, so here is a retransmit.

	--david

diff -Nru a/include/linux/sysctl.h b/include/linux/sysctl.h
--- a/include/linux/sysctl.h	Wed Jun 18 13:32:49 2003
+++ b/include/linux/sysctl.h	Wed Jun 18 13:32:49 2003
@@ -130,6 +130,7 @@
 	KERN_PIDMAX=55,		/* int: PID # limit */
   	KERN_CORE_PATTERN=56,	/* string: pattern for core-file names */
 	KERN_PANIC_ON_OOPS=57,  /* int: whether we will panic on an oops */
+	KERN_CACHEDECAYTICKS=58, /* ulong: value for cache_decay_ticks (EXPERIMENTAL!) */
 };
 
 
diff -Nru a/kernel/sysctl.c b/kernel/sysctl.c
--- a/kernel/sysctl.c	Wed Jun 18 13:32:49 2003
+++ b/kernel/sysctl.c	Wed Jun 18 13:32:49 2003
@@ -551,6 +551,16 @@
 		.mode		= 0644,
 		.proc_handler	= &proc_dointvec,
 	},
+#ifdef CONFIG_SMP
+	{
+		.ctl_name	= KERN_CACHEDECAYTICKS,
+		.procname	= "cache_decay_ticks",
+		.data		= &cache_decay_ticks,
+		.maxlen		= sizeof(cache_decay_ticks),
+		.mode		= 0644,
+		.proc_handler	= &proc_doulongvec_minmax,
+	},
+#endif
 	{ .ctl_name = 0 }
 };
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-06-18 22:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200306182151.h5ILpMcx022062@napali.hpl.hp.com.suse.lists.linux.kernel>
2003-06-18 22:05 ` add /proc/sys/kernel/cache_decay_ticks Andi Kleen
2003-06-18 22:12   ` David Mosberger
2003-06-18 22:18     ` Andi Kleen
2003-06-18 21:51 David Mosberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox