Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [EVL][dovetail] Minimum requirements for network communication for RPi 4B and amd64 From: =?utf-8?Q?Deniz_U=C4=9Fur?= In-Reply-To: <878rxw853j.fsf@xenomai.org> Date: Wed, 10 Nov 2021 19:05:44 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: <388405AD-717D-45F2-8504-515F3BE70117@gmail.com> <878rxzt578.fsf@xenomai.org> <1FAA0481-E7A9-4B32-B817-3B77D71D5323@gmail.com> <87lf1wb7re.fsf@xenomai.org> <878rxw853j.fsf@xenomai.org> List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe Gerum Cc: xenomai@xenomai.org > Once the full, end-to-end oob chain between the app and the wire = including > the driver is enabled, we should get interesting figures (bypassing = the > softirq context entirely). Forward looking statement, I agree. Working > on it. Looking forward to this. If I can be any help with this I=E2=80=99d be = glad to do it. Thanks for the recommendations by the way, I will try to make my current = setup little bit better with what=E2=80=99s available to me via EVL. > On 10 Nov 2021, at 16:57, Philippe Gerum wrote: >=20 >=20 > Deniz U=C4=9Fur writes: >=20 >> 200-300 microseconds latency worst case is demanding, this is in the >> same ballpark than the figures I obtained with RTnet/Xenomai3.1 = between >> two mid-range SoCs (x86_64 and i.MX6Q) attached to a dedicated = switch, >> over a 100Mbit link. >>=20 >> I assume this is only the communication latency and nothing else. As = I have to=20 >> read SPI which takes 50-60 us, this measurements would be higher I >> guess. >=20 > Correct. >=20 >>=20 >> Going for a kernel bypass on the rpi4 by coupling DPDK and EVL would = at >> the very least require a DPDK-enabled GENET driver, which does not = seem >> to exist. >>=20 >> That would=E2=80=99ve been splendid to be honest. I didn=E2=80=99t = knew DPDK till now but >> the premise sounds quite good. >>=20 >=20 > I'm not a DPDK expert, but there are folks on this list with = significant > knowledge about DPDK who might want to discuss this. >=20 >> Another option would be to check whether you could work directly at >> packet level for now on the rpi4, based on the EVL networking >> layer. This is experimental WIP, but this is readily capable of >> exchanging raw packets between peers. See [1]. >>=20 >> If I understand correctly, EVL=E2=80=99s networking layer doesn=E2=80=99= t support TCP/UDP >> at the moment and I would have to implement the sliding window myself >> with raw packets. Correct? >>=20 >=20 > Correct. In userland, which would make things easier. >=20 >> =E2=80=94 >>=20 >> To sum up, we don=E2=80=99t have many options considering RPi 4 with = kernel bypassing. >>=20 >> I don't think the common linux stack is an option with such = requirement >> under load, especially since you would have to channel the network >> traffic >>=20 >> Along with that, EVL=E2=80=99s net stack not creating any improvement = for this >> kind of load. >=20 > Mm, not sure. Even in the case EVL reuses the regular NIC drivers, I = can > already see latency improvements here (pi2 and bbb -> x86 Soc), = because > the traffic is directly injected to the driver from the TX softirq > context, bypassing the delays induced by the regular net stack. Once = the > full, end-to-end oob chain between the app and the wire including the > driver is enabled, we should get interesting figures (bypassing the > softirq context entirely). Forward looking statement, I agree. Working > on it. >=20 >> Considering these, 200-300 us is demanding but it=E2=80=99s as high = as it gets at the moment. >>=20 >=20 > --=20 > Philippe.