public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Smart <James.Smart@Emulex.Com>
To: Andreas Herrmann <AHERRMAN@de.ibm.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	James Bottomley <jejb@steeleye.com>,
	Linux SCSI <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] fc transport: new attributes for NPIV
Date: Tue, 10 Jan 2006 13:11:00 -0500	[thread overview]
Message-ID: <43C3F8B4.4090107@emulex.com> (raw)
In-Reply-To: <OFCC2A89CA.90DCC5D6-ON412570F1.008356CC-412570F1.0083D054@de.ibm.com>



Andreas Herrmann wrote:
> Another general point of interest is fc_host_statistics for virtual
> and physical ports.
> 
> There are some stats (most or all non fc4 stats) that only make sense
> for the physical port. And there are the fc4 stats that might be
> determined for the virtual port.

Yep - good point.  Odds are, to make the mgmt apps happy, and as hbaapi
to date has no distinction about virtual ports - we probably want the
stats to reflect only the stats for the scsi_host. E.g Each virtual host
shows it's own. If the physical host shows no devices and can't be accessed
directly, then it could show aggregate stats. Otherwise, it should show
only the stats for the traffic it is initiating.

Looking at hbaapi, which the stats were tuned for, I would lean toward
replicating link state/type, etc of the physical link. We could introduce
a new type - npiv or nport_id_virt, so that you could tell at a glance it's
not a real link.

> 
> Having the (overkill) solution of a host for the physical port would
> help to sort things out. You could provide
> - complete fc_host_statistics for the physical port,
> - separate fc4 statistics for each virtual port.
> 
> Without a host for the physical port you have the choice between:
> 
> (a) providing same fc_host_statistics (of the physical port) for all
> virtual ports with the same permanent port name
> 
> (b) providing a combination of non fc4 stats of physical port and fc4
> stats of virtual port in fc_host_statistics for a virtual port
> 
> zfcp currently does (a) with one of the patches sent last week.

Yep. Getting frame-level counters out of hardware, sorted by context, is
difficult. So, what you are doing is not unreasonable. Hopefully we can
make this better in the future. In the meantime - the documentation for
each driver should spell out clearly what it's reporting.

> 
> Implementing (a) the per virtual port fc4 statistics are missing.
> Implementing (b) the overall fc4 statistics are missing which might
> help to determine the utilization of the physical link.
> 
> But I don't think this justifies the introduction of a dummy-host for
> the physical port in case the physical port is not represented by a
> normal host.

Agreed...

We're still in infancy here. I also think that XEN environments will throw 
interesting wrinkles into anything we do now.


-- james s

> 
> 
> Regards,
> 
> Andreas
> 
> 

  reply	other threads:[~2006-01-10 18:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <OFE227A343.800436AC-ON412570ED.0055DD4F-412570ED.00560A75@de.ibm.com>
2006-01-05 17:28 ` [PATCH] fc transport: new attributes for NPIV James Smart
2006-01-09 18:05   ` Christoph Hellwig
2006-01-09 19:04     ` James Smart
2006-01-09 23:09       ` Andreas Herrmann
2006-01-10 18:00         ` James Smart
2006-01-09 23:59     ` Andreas Herrmann
2006-01-10 18:11       ` James Smart [this message]
2006-01-05  9:01 Andreas Herrmann
2006-01-05 14:08 ` James Smart
2006-01-05 15:51   ` Andreas Herrmann

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=43C3F8B4.4090107@emulex.com \
    --to=james.smart@emulex.com \
    --cc=AHERRMAN@de.ibm.com \
    --cc=hch@infradead.org \
    --cc=jejb@steeleye.com \
    --cc=linux-scsi@vger.kernel.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