brintos

brintos / linux-shallow public Read only

0
0
Text · 6.4 KiB · fecc59d Raw
147 lines · plain
1What:		/sys/class/rtrs-client2Date:		Feb 20203KernelVersion:	5.74Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>5Description:	When a user of RTRS API creates a new session, a directory entry with6		the name of that session is created under /sys/class/rtrs-client/<session-name>/7 8What:		/sys/class/rtrs-client/<session-name>/add_path9Date:		Feb 202010KernelVersion:	5.711Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>12Description:	RW, adds a new path (connection) to an existing session. Expected format is the13		following::14 15		    <[source addr,]destination addr>16		    *addr ::= [ ip:<ipv4|ipv6> | gid:<gid> ]17 18What:		/sys/class/rtrs-client/<session-name>/max_reconnect_attempts19Date:		Feb 202020KernelVersion:	5.721Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>22Description:	Maximum number reconnect attempts the client should make before giving up23		after connection breaks unexpectedly.24 25What:		/sys/class/rtrs-client/<session-name>/mp_policy26Date:		Feb 202027KernelVersion:	5.728Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>29Description:	Multipath policy specifies which path should be selected on each IO:30 31		round-robin (0):32		    select path in per CPU round-robin manner.33 34		min-inflight (1):35		    select path with minimum inflights.36 37		min-latency (2):38		    select path with minimum latency.39 40What:		/sys/class/rtrs-client/<session-name>/paths/41Date:		Feb 202042KernelVersion:	5.743Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>44Description:	Each path belonging to a given session is listed here by its source and45		destination address. When a new path is added to a session by writing to46		the "add_path" entry, a directory <src@dst> is created.47 48What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/state49Date:		Feb 202050KernelVersion:	5.751Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>52Description:	RO, Contains "connected" if the session is connected to the peer and fully53		functional.  Otherwise the file contains "disconnected"54 55What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/reconnect56Date:		Feb 202057KernelVersion:	5.758Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>59Description:	Write "1" to the file in order to reconnect the path.60		Operation is blocking and returns 0 if reconnect was successful.61 62What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/disconnect63Date:		Feb 202064KernelVersion:	5.765Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>66Description:	Write "1" to the file in order to disconnect the path.67		Operation blocks until RTRS path is disconnected.68 69What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/remove_path70Date:		Feb 202071KernelVersion:	5.772Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>73Description:	Write "1" to the file in order to disconnected and remove the path74		from the session.  Operation blocks until the path is disconnected75		and removed from the session.76 77What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/hca_name78Date:		Feb 202079KernelVersion:	5.780Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>81Description:	RO, Contains the name of HCA the connection established on.82 83What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/hca_port84Date:		Feb 202085KernelVersion:	5.786Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>87Description:	RO, Contains the port number of active port traffic is going through.88 89What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/src_addr90Date:		Feb 202091KernelVersion:	5.792Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>93Description:	RO, Contains the source address of the path94 95What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/dst_addr96Date:		Feb 202097KernelVersion:	5.798Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>99Description:	RO, Contains the destination address of the path100 101What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/cur_latency102Date:		Feb 2020103KernelVersion:	5.7104Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>105Description:	RO, Contains the latency time calculated by the heart-beat messages.106		Whenever the client sends heart-beat message, it checks the time gap107		between sending the heart-beat message and receiving the ACK.108		This value can be changed regularly.109 110What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/stats/reset_all111Date:		Feb 2020112KernelVersion:	5.7113Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>114Description:	RW, Read will return usage help, write 0 will clear all the statistics.115 116What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/stats/cpu_migration117Date:		Feb 2020118KernelVersion:	5.7119Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>120Description:	RTRS expects that each HCA IRQ is pinned to a separate CPU. If it's121		not the case, the processing of an I/O response could be processed on a122		different CPU than where it was originally submitted.  This file shows123		how many interrupts where generated on a non expected CPU.124 125		"from:"126		    is the CPU on which the IRQ was expected, but not generated.127		"to:"128		    is the CPU on which the IRQ was generated, but not expected.129 130What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/stats/reconnects131Date:		Feb 2020132KernelVersion:	5.7133Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>134Description:	Contains 2 unsigned int values, the first one records number of successful135		reconnects in the path lifetime, the second one records number of failed136		reconnects in the path lifetime.137 138What:		/sys/class/rtrs-client/<session-name>/paths/<src@dst>/stats/rdma139Date:		Feb 2020140KernelVersion:	5.7141Contact:	Jack Wang <jinpu.wang@cloud.ionos.com> Danil Kipnis <danil.kipnis@cloud.ionos.com>142Description:	Contains statistics regarding rdma operations and inflight operations.143		The output consists of 6 values::144 145		    <read-count> <read-total-size> <write-count> \146		    <write-total-size> <inflights> <failovered>147