From: Andrew Morton <akpm@linux-foundation.org>
To: Venki Pallipadi <venkatesh.pallipadi@intel.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/4] Make page-writeback timers 1 sec jiffy aligned
Date: Wed, 30 May 2007 10:56:29 -0700 [thread overview]
Message-ID: <20070530105629.d9320955.akpm@linux-foundation.org> (raw)
In-Reply-To: <20070529175951.GB5411@linux-os.sc.intel.com>
On Tue, 29 May 2007 10:59:51 -0700
Venki Pallipadi <venkatesh.pallipadi@intel.com> wrote:
>
>
> timer round_jiffies in page-writeback.
>
> Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
>
> Index: linux-2.6.22-rc-mm/mm/page-writeback.c
> ===================================================================
> --- linux-2.6.22-rc-mm.orig/mm/page-writeback.c 2007-05-25 10:49:11.000000000 -0700
> +++ linux-2.6.22-rc-mm/mm/page-writeback.c 2007-05-25 10:49:29.000000000 -0700
> @@ -469,7 +469,7 @@
> if (time_before(next_jif, jiffies + HZ))
> next_jif = jiffies + HZ;
> if (dirty_writeback_interval)
> - mod_timer(&wb_timer, next_jif);
> + mod_timer(&wb_timer, round_jiffies(next_jif));
> }
>
> /*
> @@ -481,7 +481,7 @@
> proc_dointvec_userhz_jiffies(table, write, file, buffer, length, ppos);
> if (dirty_writeback_interval) {
> mod_timer(&wb_timer,
> - jiffies + dirty_writeback_interval);
> + round_jiffies(jiffies + dirty_writeback_interval));
> } else {
> del_timer(&wb_timer);
> }
mutter.
These tunables are in units of centiseconds, so the user can indeed set the
writeback interval to, say, 0.2 seconds. People have played with that sort
of thing.
I doubt if this patch will hurt anyone much, but it is an incompatible
user-visible change.
Probably a suitable heuristic for fixing this would be to only do the
rounding if dirty_writeback_interval is a multiple of HZ. In the vast
majority of cases, that will be true.
prev parent reply other threads:[~2007-05-30 17:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-29 17:59 [PATCH 2/4] Make page-writeback timers 1 sec jiffy aligned Venki Pallipadi
2007-05-30 17:56 ` Andrew Morton [this message]
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=20070530105629.d9320955.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=venkatesh.pallipadi@intel.com \
/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