From: "Steve Wise" <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
To: 'Leon Romanovsky' <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: RE: dumping queue state
Date: Wed, 20 Dec 2017 11:42:22 -0600 [thread overview]
Message-ID: <019d01d379b9$e42cd390$ac867ab0$@opengridcomputing.com> (raw)
In-Reply-To: <20171220171146.GX2942-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
> WIP: no manuals, no review yet and not massively tested - but works for me
:
>
>
> >
> > Is there a way to extend commands with provider-specific data?
> >
>
> In future yes, rdmatool provides "-d" option (detailed output) and IMHO
> all vendor specific will got there.
Cool.
Looksie:
[root@stevo1 iproute2]# ./rdma/rdma res
1: mlx4_0: curr/max: pd 4/32764 cq 17/65408 qp 3/163768
2: cxgb4_0: curr/max: pd 2/65536 cq 16/24576 qp 2/12288
2: cxgb4_0: curr/max: pd 2/65536 cq 16/24576 qp 2/12288
[root@stevo1 iproute2]# ./rdma/rdma res show qp link cxgb4_0
DEV/PORT LQPN TYPE STATE PID COMM
cxgb4_0/- 1028 RC RTS 0 [rdma-cm]
cxgb4_0/- 1026 RC RTS 0 [rdma-cm]
I'm not sure why the port is not specified on the above cxgb4 QPs which are
connected. They should have a port number. But perhaps it isn't filled in
correctly in the cm_id or something?
[root@stevo1 iproute2]# ./rdma/rdma res show qp link mlx4_0
DEV/PORT LQPN TYPE STATE PID COMM
mlx4_0/1 537 RC RTS 0 [rdma-cm]
mlx4_0/1 536 RC RTS 0 [rdma-cm]
mlx4_0/1 1 GSI RTS 0 [rdma-mad]
[root@stevo1 iproute2]#
rdma should probably understand enough transport-specific details to not
display ib-specific stuff on an iwarp qp. Here PSNs and PATH-MIG are all
IB-specific:
[root@stevo1 iproute2]# ./rdma/rdma res show qp link cxgb4_0 -d
DEV/PORT LQPN RQPN TYPE STATE PID COMM
SQ-PSN RQ-PSN PATH-MIG
cxgb4_0/- 1028 0 RC RTS 0 [rdma-cm] 0
0 MIGRATED
cxgb4_0/- 1026 0 RC RTS 0 [rdma-cm] 0
0 MIGRATED
[root@stevo1 iproute2]# ./rdma/rdma res show qp link mlx4_0 -d
DEV/PORT LQPN RQPN TYPE STATE PID COMM
SQ-PSN RQ-PSN PATH-MIG
mlx4_0/1 537 537 RC RTS 0 [rdma-cm]
13145128 12441844 MIGRATED
mlx4_0/1 536 536 RC RTS 0 [rdma-cm]
14218681 1982803 MIGRATED
mlx4_0/1 1 --- GSI RTS 0 [rdma-mad] 0
--- ---
Looking good though!
Why did you prefer netlink vs debugfs for this stuff? (I'm sure it was
discussed on the list but I missed it).
Steve.
--
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
next prev parent reply other threads:[~2017-12-20 17:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-20 15:53 dumping queue state Steve Wise
2017-12-20 16:14 ` Bart Van Assche
[not found] ` <1513786487.2603.4.camel-Sjgp3cTcYWE@public.gmane.org>
2017-12-20 16:59 ` Steve Wise
2017-12-20 16:36 ` Leon Romanovsky
[not found] ` <20171220163655.GW2942-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-12-20 17:00 ` Steve Wise
2017-12-20 17:11 ` Leon Romanovsky
[not found] ` <20171220171146.GX2942-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-12-20 17:42 ` Steve Wise [this message]
2017-12-20 18:05 ` Leon Romanovsky
[not found] ` <20171220180549.GY2942-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-12-20 19:01 ` Steve Wise
2017-12-20 20:01 ` Leon Romanovsky
[not found] ` <20171220200115.GC2942-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-12-20 21:42 ` Steve Wise
2017-12-21 5:15 ` Leon Romanovsky
2017-12-20 19:31 ` Steve Wise
2017-12-20 19:58 ` Leon Romanovsky
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='019d01d379b9$e42cd390$ac867ab0$@opengridcomputing.com' \
--to=swise-7bpotxp6k4+p2yhjcf5u+vpxobypeauw@public.gmane.org \
--cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@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 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.