public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: "Weiny, Ira" <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org"
	<roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	"hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org"
	<hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Subject: Re: [PATCH] infiniband-diags: add rdma-ndd daemon
Date: Mon, 10 Nov 2014 12:05:43 -0700	[thread overview]
Message-ID: <20141110190543.GD5296@obsidianresearch.com> (raw)
In-Reply-To: <2807E5FD2F6FDA4886F6618EAC48510E0CBB39E8-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>

On Mon, Nov 10, 2014 at 06:32:18PM +0000, Weiny, Ira wrote:

> > I don't know if this is practical, but it is the only race free way to properly
> > address all of this.
> 
> I don't think it is practical at all.
> 
> Assuming that we can hold the link from transitioning to Init how

PortInfo writes can do that

> does any userspace software know if the current hostname is "valid"?
> If, at the time of module load, the hostname is "localhost" you end
> up with the same "problem" as the proposed kernel patches.

Deciding when to turn on the IB interface in the boot sequence is a
policy issue for userspace. Some setups will require this to be done
in the initrd (ie boot over IB), others will want to do this after
management networking comes up (and the host name is set).

Once rdma-ndd starts running the hostname will track just the same as
if there was kernel %h support, and having your init sequence the IB
interface up after you have the hostname ensures it isn't local host.

This sequencing creates the opportunity for the admin to actually set
the host name to something that is not the kernel default.

> I'm not against adding this to rdma-ndd but I would like it to be
> optional.  With the kernel patches rdma-ndd itself is optional.

Not really, without rdma-ndd the node description is able to change on
its own and no traps are generated. That seems pretty broken. So you
need to run rdma-ndd to have IBA compliance.

> I think changing the default is a worthwhile change.  In addition,
> alternate admin policies are aided by the general use of the %h
> specifier.

I think you need to resolve this split responsibility somehow.

The kernel needs to work correctly without the daemon. To me that
either means it never changes the node desc on its own (what we have
today), or it always generates a trap when it changes.

> Do you believe that "<hostname> <device>" is an unreasonable default?

No, but what if I want it to say "OSD <hostname> <device>" on some
systems - then what? How do I set that and avoid generating traps at
boot?

Jason
--
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

  parent reply	other threads:[~2014-11-10 19:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-30 23:54 [PATCH 0/1] infiniband-diags: add rdma-ndd daemon ira.weiny-ral2JQCrhuEAvxtiuMwx3w
     [not found] ` <1414713270-12710-1-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-10-30 23:54   ` [PATCH] " ira.weiny-ral2JQCrhuEAvxtiuMwx3w
     [not found]     ` <1414713270-12710-2-git-send-email-ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2014-10-31  6:58       ` Bart Van Assche
     [not found]         ` <54533318.8010700-HInyCGIudOg@public.gmane.org>
2014-10-31  9:24           ` Weiny, Ira
     [not found]             ` <2807E5FD2F6FDA4886F6618EAC48510E0CB79457-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-10-31  9:32               ` Bart Van Assche
     [not found]                 ` <54535741.3030409-HInyCGIudOg@public.gmane.org>
2014-10-31  9:43                   ` Weiny, Ira
2014-11-08  0:40       ` Jason Gunthorpe
     [not found]         ` <20141108004029.GB12120-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-11-10  0:28           ` Weiny, Ira
     [not found]             ` <2807E5FD2F6FDA4886F6618EAC48510E0CBA8FCD-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-11-10  5:11               ` Jason Gunthorpe
     [not found]                 ` <20141110051155.GD31256-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2014-11-10 18:32                   ` Weiny, Ira
     [not found]                     ` <2807E5FD2F6FDA4886F6618EAC48510E0CBB39E8-8k97q/ur5Z2krb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2014-11-10 19:05                       ` Jason Gunthorpe [this message]
2014-11-11 15:11                       ` Hal Rosenstock

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=20141110190543.GD5296@obsidianresearch.com \
    --to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
    --cc=hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=roland-DgEjT+Ai2ygdnm+yROfE0A@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