From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ira Weiny Subject: Re: [ofa-general] Re: [PATCH v2] infiniband-diags/scripts: Add 'ibcheckspeed' and 'ibcheckportspeed' to scripts Date: Mon, 14 Sep 2009 11:02:21 -0700 Message-ID: <20090914110221.7e33b737.weiny2@llnl.gov> References: <829ded920909100602h78614ac0jd4eb1ee8d7a3779b@mail.gmail.com> <20090910090213.6888b7d5.weiny2@llnl.gov> <829ded920909102102o49f037cbhc53a849f1fcfdaa4@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <829ded920909102102o49f037cbhc53a849f1fcfdaa4@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: general-bounces@lists.openfabrics.org Errors-To: general-bounces@lists.openfabrics.org To: Keshetti Mahesh Cc: OFED mailing list , OFED mailing list List-Id: linux-rdma@vger.kernel.org On Fri, 11 Sep 2009 09:32:39 +0530 Keshetti Mahesh wrote: > My badness. I have not used 'iblinkinfo' before. > So, I guess there is no need for the above script. Apart from that, I feel > there should be a program/script which will first scan the fabric to find= the > maximum common supported width/speed and then report the warning messages > of the links/ports which are configured with active width/speed less > than the found > value. Is there any tool already exists which does the same ? Not that I know of. While I could see the usefulness of such a tool in some environments I have= gone down the path of making the OFED diags more generic and then writing = some wrappers for our local needs. Currently I have a script which runs ib= linkinfo with the "-l" option and then returns total number of links at SDR= , DDR, QDR as well as the number of links at 1, 4, or 12X. I then leave it= up to the sys admin to know if their cluster is homo or heterogenious and = how many links should be at what speeds. They can then use iblinkinfo to i= dentify which links are incorrect for their particular installation. Ira >=20 > - > Keshetti Mahesh >=20 > On Thu, Sep 10, 2009 at 9:32 PM, Ira Weiny wrote: > > Also, iblinkinfo will report links which it finds capable of either fas= ter or wider operation. =A0iblinkinfo checks both ends of the link as Hal m= entions. =A0It reports this with output like. > > > > Switch 0x0005ad0000092106 Cisco Switch SFS7000D: > > ... > > =A0 =A0 =A0 =A0 =A0 7 =A0 =A08[ =A0] =3D=3D( 4X 2.5 Gbps Active/ =A0Lin= kUp)=3D=3D> =A0 =A0 =A0 8 =A0 12[ =A0] "MT47396 Infiniscale-III Mellanox Te= chnologies" ( Could be 5.0 Gbps) > > ... > > > > Also the portstatus console command in OpenSM will report links which a= re running at "reduced speed or width". =A0Although this does not check the= remote port. > > > > OpenSM $ help portstatus > > portstatus [ca|switch|router] > > summarize port status > > =A0 [ca|switch|router] -- limit the results to the node type specified > > OpenSM $ portstatus > > "ALL" port status: > > =A0 115 port(s) scanned on 9 nodes in 26 us > > =A0 85 down > > =A0 30 active > > =A0 32 at 4X > > =A0 22 at 2.5 Gbps > > =A0 8 at 5.0 Gbps > > =A0 2 at 10.0 Gbps > > > > Possible issues: > > =A0 2 disabled > > =A0 =A0 =A00x0008f10400411b18 5 (ISR9024D Voltaire) > > =A0 =A0 =A00x0005ad0000092106 13 (Cisco Switch SFS7000D) > > =A0 6 with reduced speed > > =A0 =A0 =A00x0008f10500200220 33 (Voltaire 4036 - 36 QDR ports switch) > > =A0 =A0 =A00x0008f10500200220 19 (Voltaire 4036 - 36 QDR ports switch) > > =A0 =A0 =A00x0005ad0000092106 21 (Cisco Switch SFS7000D) > > =A0 =A0 =A00x0005ad0000092106 20 (Cisco Switch SFS7000D) > > =A0 =A0 =A00x0005ad0000092106 9 (Cisco Switch SFS7000D) > > =A0 =A0 =A00x0005ad0000092106 8 (Cisco Switch SFS7000D) > > > > > > Ira > > > > On Thu, 10 Sep 2009 09:23:35 -0400 > > Hal Rosenstock wrote: > > > >> On Thu, Sep 10, 2009 at 9:02 AM, Keshetti Mahesh > >> wrote: > >> > >> > Added 'ibcheckspeed' and 'ibcheckportspeed': Similar to > >> > 'ibcheckwidth/ibcheckportwidth' in functionality and implementation. > >> > Reports error/warning messages if the LinkSpeedActive is configured = as > >> > 2.5 Gbps when the LinkSpeedSupported is more than 2.5 Gbps. > >> > > >> > >> ibportstate checks for more than this in terms of speed (and width) > >> anomalies. > >> > >> Would it be better for these scripts to use that tool now ? Alternativ= ely, > >> the additional speed/width anomaly checks could be implemented in these > >> scripts but it does involve checking the peer port so there's a little= more > >> to it. > >> > >> -- Hal > >> > >> > >> > > >> > Signed-off-by: Keshetti Mahesh < keshetti.mahesh@gmail.com> > >> > --- > >> > =A0infiniband-diags/scripts/ibcheckportspeed.in | =A0146 > >> > ++++++++++++++++++++++++++ > >> > =A0infiniband-diags/scripts/ibcheckportwidth.in | =A0 =A02 +- > >> > =A0infiniband-diags/scripts/ibcheckspeed.in =A0 =A0 | =A0135 > >> > ++++++++++++++++++++++++ > >> > =A03 files changed, 282 insertions(+), 1 deletions(-) > >> > =A0create mode 100644 infiniband-diags/scripts/ibcheckportspeed.in > >> > =A0create mode 100644 infiniband-diags/scripts/ibcheckspeed.in > >> > > >> > >> > > > > > > -- > > Ira Weiny > > Math Programmer/Computer Scientist > > Lawrence Livermore National Lab > > 925-423-8008 > > weiny2@llnl.gov > > --=20 Ira Weiny Math Programmer/Computer Scientist Lawrence Livermore National Lab 925-423-8008 weiny2@llnl.gov