From: Florian Haas <florian@hastexo.com>
To: drbd-dev@lists.linbit.com
Subject: Re: [Drbd-dev] [PATCH 1/3] User's Guide: add section on DRBD over InfiniBand
Date: Sun, 20 Nov 2011 21:49:09 +0100 [thread overview]
Message-ID: <4EC967C5.8070400@hastexo.com> (raw)
In-Reply-To: <CAO+b5-qvbt-UZddZtO018j9v2euLOv2ph-oR1uuz__Fbc9+uHA@mail.gmail.com>
Hi Bart,
On 11/19/11 14:21, Bart Van Assche wrote:
> On Wed, Nov 16, 2011 at 6:38 PM, Florian Haas <florian@hastexo.com> wrote:
>> +To enable IPoIB, you need to enable the +ib_ipoib+ driver, typically
>> +available on any system stock kernel as a loadable module. Make sure
>> +that you configure the IPoIB driver to run in the Reliable Connected
>> +(RC) transport mode.
>
> Maybe it's a good idea to mention here the impact of the IPoIB MTU on
> IPoIB bandwidth ?
>
> On a typical setup these options can be configured as follows in
> /etc/infiniband/openib.conf:
> SET_IPOIB_CM=yes
> IPOIB_MTU=65520
>
> By the way, that last setting is the default with recent versions of
> /etc/init.d/openibd.
Thanks for the suggestion; I've worked that in. I try not to go into too
much detail regarding configuration paths and init scripts as those may
very wildly by distro and release, but I've mentioned the relevant sysfs
files now. Diff is below.
Cheers,
Florian
diff --git a/users-guide/hp-transports.txt b/users-guide/hp-transports.txt
index 35fa5bd..dbd0186 100644
--- a/users-guide/hp-transports.txt
+++ b/users-guide/hp-transports.txt
@@ -23,14 +23,25 @@ resource configuration. DRBD then replicates using
TCP over IP --
albeit not based on Ethernet as it normally would, but on InfiniBand.
To enable IPoIB, you need to enable the +ib_ipoib+ driver, typically
-available on any system stock kernel as a loadable module. Make sure
-that you configure the IPoIB driver to run in the Reliable Connected
-(RC) transport mode.
+available on any system stock kernel as a loadable module.
+
+Make sure that you configure the IPoIB driver to run in the Reliable
+Connected (RC) transport mode. The transport mode is accessible via
+the +/sys/class/net/<interface>/mode+ virtual file. An example for
+setting the transport mode for the +ib0+ interface would be the
+following command:
+
+ echo connected > /sys/class/net/ib0/mode
+
+Distributions may, however, offer more convenient methods for setting
+the transport mode permanently.
NOTE: The configuration of an IP address on an IPoIB is beyond the
scope of this guide, and may vary between distributions. However, it
is usually equivalent to the configuration of an Ethernet interface --
simply replace +ethX+ with +ibX+ in the interface configuration.
+This also applies for the interface MTU, which you may set to as high
+as 65,520 bytes for IPoIB in connected mode.
In the example below, +192.168.144.111+ and +192.168.144.112+ would be
bound to an IPoIB interface -- for example, +ib0+.
next prev parent reply other threads:[~2011-11-20 20:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 17:38 [Drbd-dev] [PATCH 0/3] Document IB and Dolphin replication in User's Guide Florian Haas
2011-11-16 17:38 ` [Drbd-dev] [PATCH 1/3] User's Guide: add section on DRBD over InfiniBand Florian Haas
[not found] ` <CAO+b5-qvbt-UZddZtO018j9v2euLOv2ph-oR1uuz__Fbc9+uHA@mail.gmail.com>
2011-11-20 20:49 ` Florian Haas [this message]
2011-11-16 17:38 ` [Drbd-dev] [PATCH 2/3] User's Guide: add section about Dolphin SuperSockets replication Florian Haas
2011-11-16 17:38 ` [Drbd-dev] [PATCH 3/3] User's Guide: add chapter on high-performance replication Florian Haas
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=4EC967C5.8070400@hastexo.com \
--to=florian@hastexo.com \
--cc=drbd-dev@lists.linbit.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