nndocs:srp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
nndocs:srp [2025/02/24 18:25] – naptastic | nndocs:srp [2025/04/15 18:42] (current) – naptastic | ||
---|---|---|---|
Line 5: | Line 5: | ||
* targets are formatted like ib.fe80000000000000f4521403002c18b1 | * targets are formatted like ib.fe80000000000000f4521403002c18b1 | ||
* idk how you get those numbers except to examine an ipoib link, such as: | * idk how you get those numbers except to examine an ipoib link, such as: | ||
- | |||
- | (reformatted slightly) | ||
5: ib0: <...> mtu 2044 ... | 5: ib0: <...> mtu 2044 ... | ||
Line 13: | Line 11: | ||
Now strip the first 4 bytes off (they change anyway) and remove the :'s | Now strip the first 4 bytes off (they change anyway) and remove the :'s | ||
+ | |||
+ | fe800000000000005849560e59150301 | ||
+ | |||
+ | The top 64 bits of the ACL might need to be 0 or they might be the same as the GUID; I don't know the initiator ID actually gets generated and I'm not doing any more digging into it. | ||
+ | |||
+ | /srpt> ib.fe800000000000005849560e53b70b01/ | ||
+ | Created Node ACL for ib.00000000000000005849560e59150301 | ||
+ | Created mapped LUN 0. | ||
+ | |||
+ | A Linux SRP target is always visible from all InfiniBand partitions. That limits its usefulness to me. | ||
====Dependencies==== | ====Dependencies==== | ||
Line 18: | Line 26: | ||
apt install srptools | apt install srptools | ||
- | ===Login fails=== | + | Find targets to connect to: |
- | shark (initiator): | + | # srp_daemon -o -v -c -p 1 |
- | | + | |
- | | + | * -v means "say what you're doing" |
- | [74794.509048] scsi host11: ib_srp: Connection 0/12 to fe80: | + | * -c means "emit target information in a format we can use later" |
+ | * -p 1 means "only scan on HCA port 1" so obviously change this if you are initiating from port 2... | ||
- | southpark (target): | + | Lazy benchmarking seems good: |
- | [4483481.918835] ib_srpt Received SRP_LOGIN_REQ with i_port_id 5849:560e:53b7: | + | |
- | | + | 4096+0 records in |
- | | + | 4096+0 records out |
+ | 17179869184 bytes (17 GB, 16 GiB) copied, 5.38771 s, 3.2 GB/s | ||
+ | |||
+ | [root]@[shark][~]# | ||
+ | dd: error writing '/ | ||
+ | 4097+0 records in | ||
+ | 4096+0 records out | ||
+ | 17179869184 bytes (17 GB, 16 GiB) copied, 13.7431 s, 1.3 GB/s | ||
+ | ...so I'm using some for swap. We'll see how long it takes me to induce a kernel panic. ;) |
nndocs/srp.1740421512.txt.gz · Last modified: 2025/02/24 18:25 by naptastic