From: Andi Kleen <ak@suse.de>
To: David Mosberger <davidm@napali.hpl.hp.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: add /proc/sys/kernel/cache_decay_ticks
Date: 19 Jun 2003 00:05:18 +0200 [thread overview]
Message-ID: <p73znkf2g9t.fsf@oldwotan.suse.de> (raw)
In-Reply-To: <200306182151.h5ILpMcx022062@napali.hpl.hp.com.suse.lists.linux.kernel>
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
next parent reply other threads:[~2003-06-18 21:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200306182151.h5ILpMcx022062@napali.hpl.hp.com.suse.lists.linux.kernel>
2003-06-18 22:05 ` Andi Kleen [this message]
2003-06-18 22:12 ` add /proc/sys/kernel/cache_decay_ticks David Mosberger
2003-06-18 22:18 ` Andi Kleen
2003-06-18 21:51 David Mosberger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=p73znkf2g9t.fsf@oldwotan.suse.de \
--to=ak@suse.de \
--cc=davidm@napali.hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox