From: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
To: Sreedhar Kodali
<srkodali-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org,
pradeeps-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org
Subject: Re: [PATCH v2 3/4] rsockets: distribute completion queue vectors among multiple cores
Date: Fri, 05 Sep 2014 17:47:25 +0200 [thread overview]
Message-ID: <5409DB0D.6080103@acm.org> (raw)
In-Reply-To: <f028f54b9900ee34fcd1abd1d90d10e6-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
On 09/05/14 15:18, Sreedhar Kodali wrote:
> From: Sreedhar Kodali <srkodali-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> Distribute interrupt vectors among multiple cores while processing
> completion events. By default the existing mechanism always
> defaults to core 0 for comp vector processing during the creation
> of a completion queue. If the workload is very high, then this
> results in bottleneck at core 0 because the same core is used for
> both event and task processing.
>
> A '/comp_vector' option is exposed, the value of which is a range
> or comma separated list of cores for distributing interrupt
> vectors. If not set, the existing mechanism prevails where in
> comp vector processing is directed to core 0.
Shouldn't "core" be changed into "completion vector" in this patch
description ? It is not possible to select a CPU core directly via the
completion vector argument of ib_create_cq(). Which completion vector
maps to which CPU core depends on how /proc/irq/<irq>/smp_affinity has
been configured.
> + if ((f = fopen(RS_CONF_DIR "/comp_vector", "r"))) {
Is it optimal to have a single global configuration file for the
completion vector mask for all applications ? Suppose that a server is
equipped with two CPU sockets, one PCIe bus and one HCA with one port
and that that HCA has allocated eight completion vectors. If IRQ
affinity is configured such that the first four completion vectors are
associated with the first CPU socket and the second four completion
vectors with the second CPU socket then to achieve optimal performance
applications that run on the first socket should only use completion
vectors 0..3 and applications that run on the second socket should only
use completion vectors 4..7. Should this kind of configuration be
supported by the rsockets library ?
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-09-05 15:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-05 13:18 [PATCH v2 3/4] rsockets: distribute completion queue vectors among multiple cores Sreedhar Kodali
[not found] ` <f028f54b9900ee34fcd1abd1d90d10e6-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
2014-09-05 15:47 ` Bart Van Assche [this message]
[not found] ` <5409DB0D.6080103-HInyCGIudOg@public.gmane.org>
2014-09-06 3:06 ` Sreedhar Kodali
[not found] ` <850a2835b5917f6da62af3d1ea0288fd-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
2014-09-08 6:47 ` Bart Van Assche
[not found] ` <540D50E9.5050709-HInyCGIudOg@public.gmane.org>
2014-09-08 14:27 ` Sreedhar Kodali
[not found] ` <a8ac21f3c9d7c802ab089bc0d432e40b-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
2014-09-08 18:22 ` Bart Van Assche
[not found] ` <540DF3CC.1060304-HInyCGIudOg@public.gmane.org>
2014-09-09 12:28 ` Sreedhar Kodali
[not found] ` <edc2b05703209d2a7626a31abb170ceb-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
2014-09-11 12:34 ` Sreedhar Kodali
[not found] ` <ef556922e7b766360a38df904dff1c70-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
2014-09-15 9:06 ` Bart Van Assche
[not found] ` <5416ABFB.7040701-HInyCGIudOg@public.gmane.org>
2014-09-16 4:33 ` Sreedhar Kodali
[not found] ` <d5804c38cb47bcc79eb3962cf8ca6989-FJGp5E75HVmZamtmwQBW5tBPR1lH4CV8@public.gmane.org>
2014-09-16 4:57 ` Hefty, Sean
[not found] ` <1828884A29C6694DAF28B7E6B8A8237399DD3DA8-P5GAC/sN6hkd3b2yrw5b5LfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-09-17 5:54 ` Sreedhar Kodali
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=5409DB0D.6080103@acm.org \
--to=bvanassche-hinycgiudog@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=pradeeps-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
--cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=srkodali-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
/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