Re: [PATCH] 0/2 swap token tuning

From: Rik Van Riel
Date: Mon Jun 27 2005 - 19:12:51 EST


On Mon, 27 Jun 2005, Rik Van Riel wrote:
> On Mon, 27 Jun 2005, Rik Van Riel wrote:
> > On Mon, 27 Jun 2005, Ed Tomlinson wrote:
> >
> > > What are the suggested values to put into /proc/sys/vm/swap_token_timeout ?
> > > The docs are not at all clear about this (proc/filesystems.txt).
> >
> > Beats me ;)
> >
> > I tried a number of values in the original implementation, and
> > 300 seconds turned out to work fine...

Never mind my previous mail - after looking at kernel/sysctl.c
it turns out that the sysctl code compensates for the jiffies
vs. seconds difference.

Just the default in mm/thrash.c should be changed from "300"
to "(300 * HZ)"...

--
The Theory of Escalating Commitment: "The cost of continuing mistakes is
borne by others, while the cost of admitting mistakes is borne by yourself."
-- Joseph Stiglitz, Nobel Laureate in Economics
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/