Messages in this thread | | | Subject | Re: add /proc/sys/kernel/cache_decay_ticks | From | Andi Kleen <> | Date | 19 Jun 2003 00:05:18 +0200 |
| |
David Mosberger <davidm@napali.hpl.hp.com> writes:
> /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.
Funny, I did a similar patch for 2.4 a short time ago. But I would suggest one change before you merge that to mainline. The variable is currently used like this:
#define CAN_MIGRATE_TASK(p,rq,this_cpu) \ ((jiffies - (p)->last_run > cache_decay_ticks) && \o
Which means 0 means 1 jiffie. For a tunable it would be useful to be able to turn it off completely, which means the > needs to be replaced with a >=. Unfortunately this requires changes in the architectures too to subtract one. But it would make it more useful. I would do the change before exposing it.
-Andi - 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/
| |