News: 0001650317

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

USB4STREAM Adding Busy Poll Option For Lower Latency At The Cost Of Increased CPU Cycles

([Intel] 33 Minutes Ago USB4STREAM Low Latency)


One of the nifty new features of Linux 7.2 is [1]USB4STREAM as an Intel-developed solution for quickly sending data between USB4 connected systems . Now for the upcoming Linux 7.3 cycle, a busy poll mode is being added to provide lower-latency data transfers at the expense of increased CPU activity.

Intel engineers developed the USB4STREAM protocol as [2]a super simple way for transferring raw packets between hosts using USB4/Thunderbolt . Intel Thunderbolt expert Mika Westerberg with the assistance of Claude Opus 4.8 has devised a means of busy polling for USB4STREAM to provide lower latency transfers. The queued patch explains:

"Using interrupts and scheduling workers increase latency so latency critical applications may want to avoid that. Make this possible in USB4STREAM by adding a new ConfigFS attribute: busy_poll that, when activated switches the rings to polling mode. The cost for lower latency is that this burns more CPU cycles and things like poll(2) cannot be used."

This busy poll mode for USB4STREAM with Linux 7.3+ can be toggled via the /sys/kernel/config/thunderbolt/stream/[xdomain].[service]/$name/busy_poll interface.

The patch is currently in [3]thunderbolt.git's next branch ahead of the upcoming Linux 7.3 merge window.



[1] https://www.phoronix.com/news/USB4STREAM-In-Linux-7.2

[2] https://www.phoronix.com/news/Intel-Linux-USB4STREAM

[3] https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git/commit/?h=next&id=e120d14d03b3db5f4ac049f32328c4951a532a90



I have stripped off my dress; must I put it on again? I have washed my feet;
must I soil them again?
When my beloved slipped his hand through the latch-hole, my bowels stirred
within me [my bowels were moved for him (KJV)].
When I arose to open for my beloved, my hands dripped with myrrh; the liquid
myrrh from my fingers ran over the knobs of the bolt. With my own hands I
opened to my love, but my love had turned away and gone by; my heart sank when
he turned his back. I sought him but I did not find him, I called him but he
did not answer.
The watchmen, going the rounds of the city, met me; they struck me and
wounded me; the watchmen on the walls took away my cloak.
[Song of Solomon 5:3-7 (NEB)]