Set PortCountersXmitWaitSupported flag #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PROBLEM:
It is not possible to test PortXmitWait counter with ibsim.
opensm ignores this counter because PortCountersXmitWaitSupported is not set
SOLUTION:
Set the flag PortCountersXmitWaitSupported in the Performance Management ClassPortInfo:CapabilityMask
TESTS:
start IBSIM
➜ ibsim git:(master) ✗ ./ibsim/ibsim -s /home/cyrille/code/infiniband/topologies/test.ibsim
start OPENSM
➜ opensm git:(master) ✗ LD_PRELOAD=/home/cyrille/code/infiniband/ibsim/umad2sim/libumad2sim.so LD_LIBRARY_PATH=/home/cyrille/code/infiniband/opensm/opensm/.libs/:/home/cyrille/code/infiniband/opensm/complib/.libs:/home/cyrille/code/infiniband/opensm/libvendor/.libs ./opensm -f stdout
set XMIT_WAIT value in ibsim:
sim> PerformanceSet "S-0002c90200405150"[1] PortCounters.PortXmitWait=123
S-0002c90200405150[1] PortCounters.PortXmitWait has been set to 123
run PERQUERY
BEFORE modification in ibsim
➜ opensm git:(master) ✗ LD_PRELOAD=/home/cyrille/code/infiniband/ibsim/umad2sim/libumad2sim.so perfquery 5 1
PortSelect:......................1
CounterSelect:...................0x0000
SymbolErrorCounter:..............0
LinkErrorRecoveryCounter:........0
LinkDownedCounter:...............0
PortRcvErrors:...................0
PortRcvRemotePhysicalErrors:.....0
PortRcvSwitchRelayErrors:........0
PortXmitDiscards:................0
PortXmitConstraintErrors:........0
PortRcvConstraintErrors:.........0
CounterSelect2:..................0x00
LocalLinkIntegrityErrors:........0
ExcessiveBufferOverrunErrors:....0
VL15Dropped:.....................0
PortXmitData:....................720
PortRcvData:.....................720
PortXmitPkts:....................10
PortRcvPkts:.....................10
AFTER modification in ibsim
PortSelect:......................1
CounterSelect:...................0x0000
SymbolErrorCounter:..............0
LinkErrorRecoveryCounter:........0
LinkDownedCounter:...............0
PortRcvErrors:...................0
PortRcvRemotePhysicalErrors:.....0
PortRcvSwitchRelayErrors:........0
PortXmitDiscards:................0
PortXmitConstraintErrors:........0
PortRcvConstraintErrors:.........0
CounterSelect2:..................0x00
LocalLinkIntegrityErrors:........0
ExcessiveBufferOverrunErrors:....0
VL15Dropped:.....................0
PortXmitData:....................720
PortRcvData:.....................720
PortXmitPkts:....................10
PortRcvPkts:.....................10
PortXmitWait:....................123
Signed-off-by: Cyrille Verrier cyrille.verrier@fabriscale.com