Re: [PATCH]: O(1) 2.4.17-J6 tuneable parameters

From: Ingo Molnar (mingo@elte.hu)
Date: Fri Jan 25 2002 - 07:46:11 EST


Jack,

On Thu, 24 Jan 2002, Jack F. Vogel wrote:

> Hi Ingo,
>
> Have been watching and testing your changes as they have
> evolved. Our group has a customer request for a scheduler that will
> give them some tuneable parameters, and your changes have actually had
> some parameters change thru the deltas you've made. It seemed like it
> might be useful to take them and make them tweakable on a running
> system. I am not 100% convinced of the goodness of this, but I wanted
> to submit it for your consideration. The current code performs great
> btw, thanks for all your hard work.

i think we could use your patch for development purposes as well, lets
merge the two efforts?

i'd suggest to name the /proc/sys/sched/ values the same way the constants
are called. Eg. /proc/sys/sched/CHILD_FORK_PENALTY. This makes it easier
to communicate suggested parameter changes.

i have a script that dumps the current sched-parameters state:

 [root@mars root]# ./getsched
 echo 95 > /proc/sys/kernel/CHILD_FORK_PENALTY
 echo 3 > /proc/sys/kernel/EXIT_WEIGHT
 echo 3 > /proc/sys/kernel/INTERACTIVE_DELTA
 echo 200 > /proc/sys/kernel/MAX_SLEEP_AVG
 echo 30 > /proc/sys/kernel/MAX_TIMESLICE
 echo 100 > /proc/sys/kernel/PARENT_FORK_PENALTY
 echo 70 > /proc/sys/kernel/PRIO_BONUS_RATIO
 echo 60 > /proc/sys/kernel/PRIO_CPU_HOG_RATIO
 echo 20 > /proc/sys/kernel/PRIO_INTERACTIVE_RATIO
 echo 200 > /proc/sys/kernel/STARVATION_LIMIT

the script is very simple:

 cd /proc/sys/kernel

 for N in *[A-Z]*; do echo "echo "`cat $N`" > /proc/sys/kernel/$N"; done

otherwise our approach is identical. This patch would always stay
separate, but could be readily applied by people who want more control
over the scheduler for development or whatever other reasons.

        Ingo

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jan 31 2002 - 21:00:30 EST