Re: aim7 -30% regression in 2.6.24-rc1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Zijlstra
Date: Wednesday, October 31, 2007 - 3:30 am

On Wed, 2007-10-31 at 17:57 +0800, Zhang, Yanmin wrote:
=20
=20
=20
=20
ormance
d
y(Might not
on the old
ssion on tigerton
akley machine,
000000,
).
d_latency_ns,
latency becomes

Oops, yeah I think I overlooked that case :-/
I think limiting the sysctl parameters make most sense, as a 0 value
really doesn't.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
---
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 3b4efbe..0f34c91 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -94,6 +94,7 @@ static int two =3D 2;
=20
 static int zero;
 static int one_hundred =3D 100;
+static int int_max =3D INT_MAX;
=20
 /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and G=
ID */
 static int maxolduid =3D 65535;
@@ -239,7 +240,10 @@ static struct ctl_table kern_table[] =3D {
 		.data		=3D &sysctl_sched_nr_latency,
 		.maxlen		=3D sizeof(unsigned int),
 		.mode		=3D 0644,
-		.proc_handler	=3D &proc_dointvec,
+		.proc_handler	=3D &proc_dointvec_minmax,
+		.strategy	=3D &sysctl_intvec,
+		.extra1		=3D &one,
+		.extra2		=3D &int_max,
 	},
 	{
 		.ctl_name	=3D CTL_UNNUMBERED,
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Fri Oct 26, 2:43 am)
Re: aim7 -30% regression in 2.6.24-rc1, Peter Zijlstra, (Fri Oct 26, 2:53 am)
Re: aim7 -30% regression in 2.6.24-rc1, Ingo Molnar, (Fri Oct 26, 4:23 am)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Sun Oct 28, 5:15 pm)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Sun Oct 28, 7:22 pm)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Mon Oct 29, 2:37 am)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Mon Oct 29, 7:12 pm)
Re: aim7 -30% regression in 2.6.24-rc1, Ingo Molnar, (Tue Oct 30, 12:26 am)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Tue Oct 30, 1:36 am)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Wed Oct 31, 2:57 am)
Re: aim7 -30% regression in 2.6.24-rc1, Peter Zijlstra, (Wed Oct 31, 3:30 am)
Re: aim7 -30% regression in 2.6.24-rc1, Ingo Molnar, (Thu Nov 1, 1:58 am)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Thu Nov 1, 2:34 am)
Re: aim7 -30% regression in 2.6.24-rc1, Cyrus Massoumi, (Thu Nov 1, 3:02 am)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Sun Nov 4, 6:24 pm)
Re: aim7 -30% regression in 2.6.24-rc1, Cyrus Massoumi, (Mon Nov 5, 2:37 am)
Re: aim7 -30% regression in 2.6.24-rc1, Zhang, Yanmin, (Tue Nov 6, 10:30 pm)