From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Arjan van de Ven <arjan@linux.intel.com>,
David Rientjes <rientjes@google.com>,
Nick Piggin <npiggin@suse.de>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
cl@linux-foundation.org
Subject: Re: [PATCH] slab: use deferable timers for its periodic housekeeping
Date: Tue, 20 Jul 2010 10:04:45 +0300 [thread overview]
Message-ID: <4C454A8D.9060102@cs.helsinki.fi> (raw)
In-Reply-To: <4C44928E.8060506@linux.intel.com>
Arjan van de Ven wrote:
> From: Arjan van de Ven <arjan@linux.intel.com>
> Subject: [PATCH] slab: use deferable timers for its periodic housekeeping
>
> slab has a "once every 2 second" timer for its housekeeping.
> As the number of logical processors is growing, its more and more
> common that this 2 second timer becomes the primary wakeup source.
>
> This patch turns this housekeeping timer into a deferable timer,
> which means that the timer does not interrupt idle, but just runs
> at the next event that wakes the cpu up.
>
> The impact is that the timer likely runs a bit later, but during the
> delay no code is running so there's not all that much reason for
> a difference in housekeeping to occur because of this delay.
>
> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
> ---
> mm/slab.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/mm/slab.c b/mm/slab.c
> index 7451bda..ef3cd3d 100644
> --- a/mm/slab.c
> +++ b/mm/slab.c
> @@ -884,7 +884,7 @@ static void __cpuinit start_cpu_timer(int cpu)
> */
> if (keventd_up() && reap_work->work.func == NULL) {
> init_reap_node(cpu);
> - INIT_DELAYED_WORK(reap_work, cache_reap);
> + INIT_DELAYED_WORK_DEFERRABLE(reap_work, cache_reap);
> schedule_delayed_work_on(cpu, reap_work,
> __round_jiffies_relative(HZ, cpu));
> }
[ The patch seems to have been whitespace damaged. ]
Applied, thanks!
prev parent reply other threads:[~2010-07-20 7:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-19 17:59 Arjan van de Ven
2010-07-20 7:04 ` Pekka Enberg [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=4C454A8D.9060102@cs.helsinki.fi \
--to=penberg@cs.helsinki.fi \
--cc=akpm@linux-foundation.org \
--cc=arjan@linux.intel.com \
--cc=cl@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@suse.de \
--cc=rientjes@google.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
all inboxes | Powered by JetHome®