lkml.org 
[lkml]   [2003]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: add /proc/sys/kernel/cache_decay_ticks
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.035 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site