<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-forward-container">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">12.01.2016 20:40, Black.S пишет:<br>
      </div>
      <blockquote cite="mid:56953A85.6040505@yandex.com" type="cite">
        <meta content="text/html; charset=utf-8"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">11.01.2016 23:59, Coulter, Susan K
          пишет:<br>
        </div>
        <blockquote
          cite="mid:E48FD8F3-EF17-4F83-A4F2-66543337D95C@ccn-mail.lanl.gov"
          type="cite">
          <meta http-equiv="Content-Type" content="text/html;
            charset=utf-8">
          <div class=""><br class="">
          </div>
          The perfquery command will tell you about the throughput and
          errors on a port.
          <div class="">The smpquery command will tell you more of what
            you might want to know about a port.</div>
          <div class="">They come from the infiniband-diags module /
            RPM.</div>
          <div class="">Examples are below.</div>
          <div class=""><br class="">
          </div>
          <div class="">Another option is to use the PerfMgr which is
            part of the OpenSM code base, if you are running osm on a
            host.</div>
          <div class="">There is an example of that below too, using the
            default port/localhost.</div>
          <div class=""><br class="">
          </div>
          <div class="">
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">[root@mu-master ~]# perfquery 199 1</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""># Port counters: Lid 199 port 1 (CapMask:
              0x1400)</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortSelect:......................1</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">CounterSelect:...................0x0000</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">SymbolErrorCounter:..............0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkErrorRecoveryCounter:........0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkDownedCounter:...............0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortRcvErrors:...................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortRcvRemotePhysicalErrors:.....0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortRcvSwitchRelayErrors:........0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortXmitDiscards:................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortXmitConstraintErrors:........0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortRcvConstraintErrors:.........0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">CounterSelect2:..................0x00</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LocalLinkIntegrityErrors:........0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">ExcessiveBufferOverrunErrors:....0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">VL15Dropped:.....................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortXmitData:....................4294967295</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortRcvData:.....................4294967295</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortXmitPkts:....................4294967295</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortRcvPkts:.....................4294967295</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PortXmitWait:....................2503387680</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><br class="">
            </div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><br class="">
            </div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">[root@mu-master ~]# smpquery pi -L 199</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""># Port info: Lid 199 port 0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">Mkey:............................<not
              displayed></div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">GidPrefix:.......................0xfe80000000000000</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">Lid:.............................199</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">SMLid:...........................250</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">CapMask:.........................0x2510868</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>IsTrapSupported</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>IsAutomaticMigrationSupported</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>IsSLMappingSupported</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>IsSystemImageGUIDsupported</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>IsCommunicatonManagementSupported</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>IsVendorClassSupported</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>IsCapabilityMaskNoticeSupported</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><span class="Apple-tab-span" style="white-space:pre"></span>IsClientRegistrationSupported</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">DiagCode:........................0x0000</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">MkeyLeasePeriod:.................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LocalPort:.......................1</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkWidthEnabled:................1X or 4X</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkWidthSupported:..............1X or 4X</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkWidthActive:.................4X</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkSpeedSupported:..............2.5 Gbps
              or 5.0 Gbps or 10.0 Gbps</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkState:.......................Active</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PhysLinkState:...................LinkUp</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkDownDefState:................Polling</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">ProtectBits:.....................2</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LMC:.............................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkSpeedActive:.................10.0
              Gbps</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkSpeedEnabled:................2.5 Gbps
              or 5.0 Gbps or 10.0 Gbps</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">NeighborMTU:.....................4096</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">SMSL:............................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">VLCap:...........................VL0-3</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">InitType:........................0x00</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">VLHighLimit:.....................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">VLArbHighCap:....................8</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">VLArbLowCap:.....................8</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">InitReply:.......................0x00</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">MtuCap:..........................4096</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">VLStallCount:....................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">HoqLife:.........................31</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">OperVLs:.........................VL0-3</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PartEnforceInb:..................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PartEnforceOutb:.................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">FilterRawInb:....................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">FilterRawOutb:...................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">MkeyViolations:..................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">PkeyViolations:..................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">QkeyViolations:..................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">GuidCap:.........................128</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">ClientReregister:................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">McastPkeyTrapSuppressionEnabled:.0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">SubnetTimeout:...................18</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">RespTimeVal:.....................16</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LocalPhysErr:....................8</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">OverrunErr:......................8</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">MaxCreditHint:...................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">RoundTrip:.......................0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">CapabilityMask2:.................0x0000</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkSpeedExtActive:..............No
              Extended Speed</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkSpeedExtSupported:...........0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class="">LinkSpeedExtEnabled:.............0</div>
            <div style="margin: 0px; font-size: 11px; font-family:
              Menlo;" class=""><br class="">
            </div>
          </div>
          <div style="margin: 0px; font-size: 11px; font-family: Menlo;"
            class=""><br class="">
          </div>
          <div style="margin: 0px; font-size: 11px; font-family: Menlo;"
            class="">
            <div style="margin: 0px;" class="">[root@mu-master ~]#
              telnet localhost 10000</div>
            <div style="margin: 0px;" class="">Trying 127.0.0.1...</div>
            <div style="margin: 0px;" class="">Connected to localhost.</div>
            <div style="margin: 0px;" class="">Escape character is '^]'.</div>
            <div style="margin: 0px;" class="">OpenSM $ ?</div>
            <div style="margin: 0px;" class="">? : Command not found</div>
            <div style="margin: 0px; min-height: 13px;" class=""><br
                class="">
            </div>
            <div style="margin: 0px;" class="">Supported commands and
              syntax:</div>
            <div style="margin: 0px;" class="">help [<command>]</div>
            <div style="margin: 0px;" class="">quit (not valid in local
              mode; use ctl-c)</div>
            <div style="margin: 0px;" class="">loglevel
              [<log-level>]</div>
            <div style="margin: 0px;" class="">permodlog</div>
            <div style="margin: 0px;" class="">priority
              [<sm-priority>]</div>
            <div style="margin: 0px;" class="">resweep [heavy|light]</div>
            <div style="margin: 0px;" class="">reroute</div>
            <div style="margin: 0px;" class="">sweep [on|off]</div>
            <div style="margin: 0px;" class="">status [loop]</div>
            <div style="margin: 0px;" class="">logflush [on|off] --
              toggle opensm.log file flushing</div>
            <div style="margin: 0px;" class="">querylid lid -- print
              internal information about the lid specified</div>
            <div style="margin: 0px;" class="">portstatus
              [ca|switch|router]</div>
            <div style="margin: 0px;" class="">switchbalance [verbose]
              [guid]</div>
            <div style="margin: 0px;" class="">lidbalance [switchguid]</div>
            <div style="margin: 0px;" class="">dump_conf</div>
            <div style="margin: 0px;" class="">update_desc</div>
            <div style="margin: 0px;" class="">version -- print the OSM
              version</div>
            <div style="margin: 0px;" class="">perfmgr(pm)
              [enable|disable</div>
            <div style="margin: 0px;" class="">            
              |clear_counters|dump_counters|print_counters(pc)|print_errors(pe)</div>
            <div style="margin: 0px;" class="">            
              |set_rm_nodes|clear_rm_nodes|clear_inactive</div>
            <div style="margin: 0px;" class="">            
              |set_query_cpi|clear_query_cpi</div>
            <div style="margin: 0px;" class="">            
              |dump_redir|clear_redir</div>
            <div style="margin: 0px;" class="">            
              |sweep|sweep_time[seconds]]</div>
            <div style="margin: 0px;" class="">dump_portguid [file
              filename] regexp1 [regexp2 [regexp3 ...]] -- Dump port
              GUID matching a regexp </div>
            <div class=""><br class="">
            </div>
          </div>
          <div class=""><br class="">
          </div>
          <div class=""><br class="">
            <div>
              <blockquote type="cite" class="">
                <div class="">On Dec 26, 2015, at 12:40 PM, Black.S <<a
                    moz-do-not-send="true"
                    class="moz-txt-link-abbreviated"
                    href="mailto:Black.S52@yandex.com"><a class="moz-txt-link-abbreviated" href="mailto:Black.S52@yandex.com">Black.S52@yandex.com</a></a>>


                  wrote:</div>
                <br class="Apple-interchange-newline">
                <div class=""><br class="">
                  <br class="">
                  Hello all<br class="">
                  <br class="">
                  I want to monitoring ports in IB fabric.<br class="">
                  <br class="">
                  I happened to notice in the out of perfquery some
                  counter like a ticks<br class="">
                  and port sampling. Its will be great for accurate
                  monitoring. But I cant<br class="">
                  found some info about setup and using sampling controi
                  for IB ports.<br class="">
                  <br class="">
                  How to configure and use sampling contol for IB ports?
                  Can anybody give<br class="">
                  me documentations/links or examples? I cant found it
                  In Google.<br class="">
                  Are there any restrictions on the amount of data
                  collected in this<br class="">
                  sampling mode?<br class="">
                  <br class="">
                  If its offtop then redirect me please<br class="">
                  <br class="">
                  Thanks for you time<br class="">
                  <br class="">
                  _______________________________________________<br
                    class="">
                  Users mailing list<br class="">
                  <a moz-do-not-send="true"
                    href="mailto:Users@lists.openfabrics.org" class="">Users@lists.openfabrics.org</a><br
                    class="">
                  <a moz-do-not-send="true"
                    class="moz-txt-link-freetext"
                    href="http://lists.openfabrics.org/mailman/listinfo/users">http://lists.openfabrics.org/mailman/listinfo/users</a><br
                    class="">
                </div>
              </blockquote>
            </div>
            <br class="">
            <div class="">
              <div style="color: rgb(0, 0, 0); letter-spacing: normal;
                orphans: auto; text-align: start; text-indent: 0px;
                text-transform: none; white-space: normal; widows: auto;
                word-spacing: 0px; -webkit-text-stroke-width: 0px;
                word-wrap: break-word; -webkit-nbsp-mode: space;
                -webkit-line-break: after-white-space;" class="">
                <div style="color: rgb(0, 0, 0); letter-spacing: normal;
                  orphans: auto; text-align: start; text-indent: 0px;
                  text-transform: none; white-space: normal; widows:
                  auto; word-spacing: 0px; -webkit-text-stroke-width:
                  0px; word-wrap: break-word; -webkit-nbsp-mode: space;
                  -webkit-line-break: after-white-space;" class="">
                  <div class="">==================================================</div>
                  <div class="">Susan Coulter</div>
                  <div class="">HPC Network Technical Lead</div>
                  <div class="">(505) 667-8425</div>
                  <div class="">“Once in a while you get shown the light</div>
                  <div class="">    In the strangest of places if you
                    look at it right”  <i class="">Robert Hunter</i></div>
                  <div class="">==================================================</div>
                  <div class=""><br class="">
                  </div>
                </div>
                <br class="Apple-interchange-newline">
              </div>
              <br class="Apple-interchange-newline">
              <br class="Apple-interchange-newline">
            </div>
            <br class="">
          </div>
        </blockquote>
      </blockquote>
      Hi  Susan Coulter<br>
      <br>
      Very thanks for your reply<br>
      <br>
      Very interesting and especially for perfmon. How I understand the
      perfmon can dump all counters very fast (i hope it more fast then
      dump it in cycle one by one). Thanks for this info.<br>
      <br>
      But nevertheless, can your or somebody explain how to use sampling
      control mechanism for perfquery ?<br>
      <br>
      <span lang="en"><span class="hps atn"><i>"</i></span><i>perfqery </i><i><span
            class="hps">-c, --smplctl</span></i><i> </i><i><span
            class="hps">show port samples control"<br>
            <br>
          </span></i></span><span class="hps">in this mode</span>, I
      would like <span class="hps">to collect</span> <span class="hps">all

        available</span> <span class="hps">counters of</span> <span
        class="hps">the IB port</span> <span class="hps">with time
        stamp provided by "</span><span class="hps">tick" <span
          lang="en"><span class="hps"><span lang="en"> <span
                class="hps">counter</span></span></span></span></span> <span
        class="hps">from the device.<br>
        <br>
      </span><span lang="en"><span class="hps"><span lang="en"><span
              class="hps">The time stamp</span> form tick counter will <span
              class="short_text" lang="en"><span class="hps">allows not</span>
              <span class="hps">depending on time from </span></span><span
              class="hps">host which collect counters from IB port .<br>
            </span></span></span></span><span lang="en"><span
          class="hps"><span lang="en"><span class="hps"><br>
              Sorry I am noobe in maillist </span></span></span></span><br>
      <br>
    </div>
    <br>
  </body>
</html>