All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] infiniband-diags: Add man pages for dump2psl and dump2slvl
@ 2011-04-05 19:30 Hal Rosenstock
       [not found] ` <4D9B6DEB.7060702-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Hal Rosenstock @ 2011-04-05 19:30 UTC (permalink / raw)
  To: Ira Weiny; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA, Jim Schutt


Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
 Makefile.am     |    3 ++-
 man/dump2psl.8  |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 man/dump2slvl.8 |   32 ++++++++++++++++++++++++++++++++
 3 files changed, 83 insertions(+), 1 deletions(-)
 create mode 100644 man/dump2psl.8
 create mode 100644 man/dump2slvl.8

diff --git a/Makefile.am b/Makefile.am
index 43d05f6..1792e37 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -80,7 +80,8 @@ man_MANS = man/ibaddr.8 man/ibcheckerrors.8 man/ibcheckerrs.8 \
 	man/ibprintswitch.8 man/ibprintca.8 man/ibfindnodesusing.8 \
 	man/ibdatacounts.8 man/ibdatacounters.8 \
 	man/ibrouters.8 man/ibprintrt.8 man/ibidsverify.8 \
-	man/check_lft_balance.8 man/ibcacheedit.8
+	man/check_lft_balance.8 man/ibcacheedit.8 \
+	man/dump2psl.8 man/dump2slvl.8
 
 BUILT_SOURCES = ibdiag_version
 ibdiag_version:
diff --git a/man/dump2psl.8 b/man/dump2psl.8
new file mode 100644
index 0000000..ced4a42
--- /dev/null
+++ b/man/dump2psl.8
@@ -0,0 +1,49 @@
+.TH DUMP2PSL.PL 8 "April 3, 2011" "OpenIB" "OpenIB Diagnostics"
+
+.SH NAME
+dump2psl.pl \- dump psl file based on some opensm output files used for credit loop checking
+
+.SH SYNOPSIS
+.B dump2psl.pl
+
+.SH DESCRIPTION
+.PP
+dump2psl.pl dumps a psl file based on some opensm output files. A psl file
+contains paths (including SLs) and is needed for subsequent credit loop
+checking (via ibdmchk). This conversion is needed when ibutils is not
+installed and credit loop checking is done on a different machine or later.
+Credit loop checking is especially valuable for the QoS based routing
+algorithms (e.g. torus-2QoS, lash, etc.).
+
+ibdiagnet -vlr dumps the psl (and slvl) files needed for ibdmchk -M -a -s
+(which is the credit loop check).
+
+Dumping of path records is accomplished by the PathRecord dumping plugin to the
+OpenSM. When the environment variable DUMP_FULL_PATH_RECORDS is set to 1,
+the full set of SA path records is dumped to opensm-path-records.dump in
+the dump_files_dir directory (default is /var/log).
+
+When the routing protocol is torus-2QoS, the following two files are dumped
+by the PathRecord dumping plugin: opensm-peer-paths.dump and
+opensm-sw2sw-path-records.dump. The peer paths dump file contains the CAs
+and their neighbor switch and includes the link MTU and RATE. The switch to
+switch file contains for each source switch a table of destination switches
+and the SL, RATE, and MTU to be used for MPI traffic.
+
+Note that since the PathRecord dump uses port GUIDs and the ibdmchk psl
+file uses node GUIDs, the fabric .lst file is also required as input
+(see USAGE).
+
+
+.SH USAGE
+
+.PP
+cat opensm-{subnet.lst,path-records.dump} | dump2psl.pl > opensm.psl
+
+.SH SEE ALSO
+.BR dump2slvl(8), ibdmchk(8), ibdiagnet(8)
+
+.SH AUTHOR
+.TP
+Hal Rosenstock
+.RI < hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org >
diff --git a/man/dump2slvl.8 b/man/dump2slvl.8
new file mode 100644
index 0000000..0f70d63
--- /dev/null
+++ b/man/dump2slvl.8
@@ -0,0 +1,32 @@
+.TH DUMP2SLVL.PL 8 "April 3, 2011" "OpenIB" "OpenIB Diagnostics"
+
+.SH NAME
+dump2slvl.pl \- dump slvl file based on opensm output file used for credit loop checking
+
+.SH SYNOPSIS
+.B dump2slvl.pl
+
+.SH DESCRIPTION
+.PP
+dump2slvl.pl dumps a slvl file based on an opensm output file. A slvl file
+contains the SL to VL mappings and is needed for subsequent credit loop
+checking (via ibdmchk). This conversion is needed when ibutils is not
+installed and credit loop checking is done on a different machine or later.
+Credit loop checking is especially valuable for the QoS based routing
+algorithms (e.g. torus-2QoS, lash, etc.).
+
+ibdiagnet -vlr dumps the slvl (and psl) files needed for ibdmchk -M -a -s
+(which is the credit loop check).
+
+.SH USAGE
+
+.PP
+cat opensm-sl2vl.dump | dump2slvl.pl > opensm.slvl
+
+.SH SEE ALSO
+.BR dump2psl(8), ibdmchk(8), ibdiagnet(8)
+
+.SH AUTHOR
+.TP
+Hal Rosenstock
+.RI < hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org >
-- 
1.5.3


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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] infiniband-diags: Add man pages for dump2psl and dump2slvl
       [not found] ` <4D9B6DEB.7060702-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2011-04-06  0:40   ` Jason Gunthorpe
       [not found]     ` <20110406004057.GB4573-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jason Gunthorpe @ 2011-04-06  0:40 UTC (permalink / raw)
  To: Hal Rosenstock; +Cc: Ira Weiny, linux-rdma-u79uwXL29TY76Z2rM5mHXA, Jim Schutt

Since these are only used by ibdmchk it seems more appropriate to
bundle it in the ibutils package than in infiniband-diags?

On Tue, Apr 05, 2011 at 03:30:51PM -0400, Hal Rosenstock wrote:
> 
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>  Makefile.am     |    3 ++-
>  man/dump2psl.8  |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
>  man/dump2slvl.8 |   32 ++++++++++++++++++++++++++++++++
>  3 files changed, 83 insertions(+), 1 deletions(-)
>  create mode 100644 man/dump2psl.8
>  create mode 100644 man/dump2slvl.8
--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] infiniband-diags: Add man pages for dump2psl and dump2slvl
       [not found]     ` <20110406004057.GB4573-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2011-04-06 10:59       ` Hal Rosenstock
       [not found]         ` <4D9C4784.6010103-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Hal Rosenstock @ 2011-04-06 10:59 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: Ira Weiny, linux-rdma-u79uwXL29TY76Z2rM5mHXA, Jim Schutt

On 4/5/2011 8:40 PM, Jason Gunthorpe wrote:
> Since these are only used by ibdmchk it seems more appropriate to
> bundle it in the ibutils package than in infiniband-diags?

No; the idea is that the files can be prepared for ibdmchk on a machine
which does not include ibutils and moved to another machine there for
checking. That's why these are being made part of infiniband-diags and
not ibutils.
--
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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] infiniband-diags: Add man pages for dump2psl and dump2slvl
       [not found]         ` <4D9C4784.6010103-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2011-04-06 18:12           ` Jason Gunthorpe
       [not found]             ` <20110406181220.GA5924-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jason Gunthorpe @ 2011-04-06 18:12 UTC (permalink / raw)
  To: Hal Rosenstock; +Cc: Ira Weiny, linux-rdma-u79uwXL29TY76Z2rM5mHXA, Jim Schutt

On Wed, Apr 06, 2011 at 06:59:16AM -0400, Hal Rosenstock wrote:
> On 4/5/2011 8:40 PM, Jason Gunthorpe wrote:
> > Since these are only used by ibdmchk it seems more appropriate to
> > bundle it in the ibutils package than in infiniband-diags?
> 
> No; the idea is that the files can be prepared for ibdmchk on a machine
> which does not include ibutils and moved to another machine there for
> checking. That's why these are being made part of infiniband-diags and
> not ibutils.

Your perl scripts don't run any infiniband-diags programs, they are
just text processing filters, so you can copy the input text files
to the machine with ibdmchk just as easily  as copying the output
text files.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] infiniband-diags: Add man pages for dump2psl and dump2slvl
       [not found]             ` <20110406181220.GA5924-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
@ 2011-04-07 14:56               ` Hal Rosenstock
  0 siblings, 0 replies; 5+ messages in thread
From: Hal Rosenstock @ 2011-04-07 14:56 UTC (permalink / raw)
  To: Jason Gunthorpe; +Cc: Ira Weiny, linux-rdma-u79uwXL29TY76Z2rM5mHXA, Jim Schutt

On 4/6/2011 2:12 PM, Jason Gunthorpe wrote:
> On Wed, Apr 06, 2011 at 06:59:16AM -0400, Hal Rosenstock wrote:
>> On 4/5/2011 8:40 PM, Jason Gunthorpe wrote:
>>> Since these are only used by ibdmchk it seems more appropriate to
>>> bundle it in the ibutils package than in infiniband-diags?
>>
>> No; the idea is that the files can be prepared for ibdmchk on a machine
>> which does not include ibutils and moved to another machine there for
>> checking. That's why these are being made part of infiniband-diags and
>> not ibutils.
> 
> Your perl scripts don't run any infiniband-diags programs, they are
> just text processing filters, so you can copy the input text files
> to the machine with ibdmchk just as easily  as copying the output
> text files.

You're right; they should go with ibutils. I'll generate the patch for that.


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-07 14:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-05 19:30 [PATCH] infiniband-diags: Add man pages for dump2psl and dump2slvl Hal Rosenstock
     [not found] ` <4D9B6DEB.7060702-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-04-06  0:40   ` Jason Gunthorpe
     [not found]     ` <20110406004057.GB4573-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-04-06 10:59       ` Hal Rosenstock
     [not found]         ` <4D9C4784.6010103-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-04-06 18:12           ` Jason Gunthorpe
     [not found]             ` <20110406181220.GA5924-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-04-07 14:56               ` Hal Rosenstock

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.