That is exactly what I am looking for... peresently I can see something like this:
# netstat -anpt <snip> tcp 0 48 192.168.0.155:60480 192.168.0.35:3260 ESTABLISHED 5658/iscsid tcp 0 0 192.168.0.155:60452 192.168.0.35:3260 ESTABLISHED 5658/iscsid tcp 0 48 192.168.0.155:60448 192.168.0.35:3260 ESTABLISHED 5658/iscsid tcp 0 0 192.168.0.155:60460 192.168.0.35:3260 ESTABLISHED 5658/iscsid tcp 0 0 192.168.0.155:60458 192.168.0.35:3260 ESTABLISHED 5658/iscsid tcp 0 0 192.168.0.155:60466 192.168.0.35:3260 ESTABLISHED 5658/iscsid tcp 0 0 192.168.0.155:60420 192.168.0.35:3260 ESTABLISHED 5658/iscsid tcp 0 0 192.168.0.155:60422 192.168.0.35:3260 ESTABLISHED 5658/iscsid tcp 0 0 192.168.0.155:60434 192.168.0.35:3260 ESTABLISHED 5658/iscsid <snip> I would want to associate that with a specific connection so I can analyze tcpdump output for just that one connection that is seemingly underperforming. The host has dozens of active connections and only this one is causing a problem. Without being able to identify the source port, it is difficult to determine which stream to follow. Thanks, Jeff On Tuesday, August 28, 2012 5:02:41 PM UTC-7, Mike Christie wrote: > > > On Aug 28, 2012, at 5:39 PM, Jeffrey Caughel <jcau...@gmail.com<javascript:>> > wrote: > > > In order to further dig into performance issues we're seeing, I am > trying to correlate individual iSCSI connections with specific TCP > connections. I don't want to negatively impact performance more than it > already is so I was hoping to find a means for this that didn't require > increasing the log level. I haven't found this recorded under > /sys/class/iscsi_connection/connection[number] or under > /var/lib/iscsi/nodes/[IQN]/[target_ip:port]/[interface]. I would expect it > to be fairly simple and hopefully it's just eluding me - ultimately I would > like to correlate this specific connection with an entry in `netstat > -anvpt` that is itself associated with iscsid. > > > > I don't think we have anything. > > If you run iscsiadm -m session -P 2 you will see a "Iface IPaddress" > value. This is the address that the iscsi connection uses on the local > side, so it matches the ip address in the "Local Address" value in netstat. > I could also print out the local port the iscsi connection is using so you > could use both those values to match the address:port tuple you see in > netstat "Local Address" field. Is that what you need? -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To view this discussion on the web visit https://groups.google.com/d/msg/open-iscsi/-/LPI8ioTXA2gJ. To post to this group, send email to open-iscsi@googlegroups.com. To unsubscribe from this group, send email to open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.