From: Ingo Molnar <mingo@elte.hu>
To: Tim Chen <tim.c.chen@linux.intel.com>
Cc: arjan@infradead.org, linux-kernel@vger.kernel.org,
Andrew Morton <akpm@osdl.org>
Subject: Re: Reducing local_bh_enable/disable overhead in irqtrace
Date: Wed, 26 Jul 2006 10:14:42 +0200 [thread overview]
Message-ID: <20060726081442.GB11604@elte.hu> (raw)
In-Reply-To: <1153758155.10345.8.camel@localhost.localdomain>
* Tim Chen <tim.c.chen@linux.intel.com> wrote:
> Ingo,
>
> The recent changes from irqtrace feature has added overheads to
> local_bh_disable and local_bh_enable that reduces UDP performance
> across x86_64 and IA64, even though IA64 does not support the irqtrace
> feature. Patch in question is
>
> [PATCH]lockdep: irqtrace subsystem, core
> http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=c
> ommit;h=de30a2b355ea85350ca2f58f3b9bf4e5bc007986
>
> Prior to this patch, local_bh_disable was a short macro. Now it is a
> function which calls __local_bh_disable with added irq flags save and
> restore. The irq flags save and restore were also added to
> local_bh_enable, probably for injecting the trace irqs code. This
> overhead is on the generic code path across all architectures. On a
> IA_64 test machine (Itanium-2 1.6 GHz) running a benchmark like
> netperf's UDP streaming test, the added overhead results in a drop of
> 3% in throughput, as udp_sendmsg calls the local_bh_enable/disable
> several times. Other workloads that have heavy usages of
> local_bh_enable/disable could also be affected. The patch ideally
> should not have affected IA-64 performance as it does not have IRQ
> tracing support. A significant portion of the overhead is in the
> added irq flags save and restore, which I think is not needed if IRQ
> tracing is unused. A suggested patch is attached below that recovers
> the lost performance. However, the "ifdef"s in the patch are a bit
> ugly.
agreed - this side-effect of irqtracing should not happen. The #ifdefs
are ugly, but i can see no better way either.
> Signed-off-by: Tim Chen <tim.c.chen@intel.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Ingo
prev parent reply other threads:[~2006-07-26 8:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-24 16:22 Tim Chen
2006-07-26 8:14 ` Ingo Molnar [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=20060726081442.GB11604@elte.hu \
--to=mingo@elte.hu \
--cc=akpm@osdl.org \
--cc=arjan@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tim.c.chen@linux.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
all inboxes | Powered by JetHome®