[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250526120413.GQ88033@black.fi.intel.com>
Date: Mon, 26 May 2025 15:04:13 +0300
From: Mika Westerberg <mika.westerberg@...ux.intel.com>
To: Ricard Bejarano <ricard@...arano.io>
Cc: netdev@...r.kernel.org, michael.jamet@...el.com, YehezkelShB@...il.com,
andrew+netdev@...n.ch, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com
Subject: Re: Poor thunderbolt-net interface performance when bridged
On Mon, May 26, 2025 at 01:47:58PM +0200, Ricard Bejarano wrote:
> > Simple peer-to-peer, no routing nothing. Anything else is making things
> > hard to debug. Also note that this whole thing is supposed to be used as
> > peer-to-peer not some full fledged networking solution.
>
> > Let's forget bridges for now and anything else than this:
> > Host A <- Thunderbolt Cable -> Host B
>
> Right, but that's precisely what I'm digging into: red->blue runs at line speed,
> and so does blue->purple. From what I understand about drivers and networking,
> it doesn't make sense then that the red->blue->purple path drops down so much in
> performance (9Gbps to 5Mbps), especially when the reverse purple->blue->red path
> runs at ~930Mbps (which lines up with the purple->blue link's speed).
Yes but you are adding things into the mix. I'm trying to understand if
there is something in the drivers I maintain that I need to look. I'm not
networking maintainer so I cannot help in generic networking related
issues.
> > So instead of 40 Gb/s with lane bonding you get 10 Gb/s (although there are
> > some limitations in the DMA side so you don't get the full 40 Gb/s but
> > certainly more than what the 10 Gb/s single lane gives you).
>
> Right, but I'm getting 5Mbps, with an M.
> That's 1800x times slower than the 9Gbps I get on the other way around on direct
> (non-forwarded, non-bridged) traffic. I'm sure I don't have hardware for 40Gbps,
> but if I'm getting ~9Gbps one way, why am I not getting similar performance the
> other way.
Yes but you are bridging two networks here if I understand correctly.
> It's not the absolute performance that bugs me, but the massive assymmetry in
> both ways of the very same ports and cable.
Do you see that asymmetry with only single link? E.g with two (just two)
hosts? If yes can you provide full dmesg of the both sides?
> > You missed the attachment?
>
> Yup, sorry. I've attached both the original tblist output and the reversed one.
>
> > Well, if the link is degraded to 10 Gb/s then I'm not sure there is nothing
> > more I can do here.
>
> This I don't understand.
I missed the asymmetry. I was talking about single link not the bridged
topology. For bridging part you can ask the network folks but I would first
like to see if there is anything in the link that can cause this.
Powered by blists - more mailing lists