[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CDF579E6-342C-4B99-916A-3CE118ABD02F@mac.com>
Date: Thu, 22 Mar 2007 20:07:56 -0400
From: Kyle Moffett <mrmacman_g4@....com>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Randy Dunlap <randy.dunlap@...cle.com>,
"H. Peter Anvin" <hpa@...or.com>, "J.H." <warthog9@...nel.org>,
kernel list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] sysctl: vfs_cache_divisor
On Mar 21, 2007, at 19:11:40, Andrew Morton wrote:
> On Wed, 21 Mar 2007 16:01:32 -0700 Randy Dunlap
> <randy.dunlap@...cle.com> wrote:
>> I prefer the fixed-point values for pressure and dirty* to having
>> duplicated entries for each of them. I'll proceed with that idea.
>
> Problem is, if a read of /proc/sys/vm/dirty_ratio is changed to
> return 7.457 then existing userspace might get confused.
>
> This might be acceptable if we are careful to ensure that reads of /
> proc/sys/vm/dirty_ratio will always return an integer if it was
> previously initialised with an integer.
What about instead adding support for fractions (IE: "1/1000") in /
proc/sys/vm/dirty_ratio? If the denominator is 100, the default,
then it prints in the form "$NUMERATOR", otherwise it prints answers
of the form "$NUMERATOR/$DENOMINATOR". Input could be of either
form, with the kernel auto-setting the denominator to 100 if none is
specified.
Cheers,
Kyle Moffett
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists