Installing LinuxCNC 2.9 or Master on Linux Mint 21

More
3 years 9 months ago #260854 by tommylight
Not a Debian issue, it is a kernel issue when using RealTek network cards, for some unknown reason those cause the link to Mesa cards to drop very often.
Intel network cards work without issues.
The driver is not broken per se, as it works properly for everything, except causing some longer latency spikes, this can be noticed even when opening pages or playing youtube videos at high resolution, on Realtek network cards it is a bit slower. Obviously you would need two PC's with the same performance and different NIC's to be able to notice.
Rod tested and found a driver that works properly with those Realtek NIC's.
Some of my thoughts on this:
-Not much use the RT kernel compared to vanilla one, so probably will not be fixed at all.
-Might be due to implementing power saving stuff into the new kernels as there are more laptops in use than desktops and Linux has come a long way to become more efficient than windoze, another reason it might not be fixed.
-Did not check the audio/video editing stuff lately, they do use some of the RT kernels but no idea what or how, been to long. Now if this lot starts to complain about it, that might just push things our way.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #260855 by Todd Zuercher
It is a Debian issue if they choose or compile a buggy kernel version for release.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #260862 by scotth
I wish I could help on the Reaktek issue, but my only Linux box with a Realtek NIC is running my network server. It is running openSUSE Leap Linux: 5.3.18-150300.59.106-default. With 20 tb online, I won't shut it down for testing.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #260872 by rodw
Its a Debian kernel issue.
The pristine source from kernel.org (which I used) does not exhibit the problem.
Also its not evident on non debian distros. I tried Arch Linux which was fine.
There is a current thread that shows how you can change settings in the grub command line and lists some changes between Buster and bookworm.
forum.linuxcnc.org/18-computer/47825-latency-test
It would be interesting to compare the kernal configuration settings of Debian with the pristine version to find the differences but thats beyond me.
It mght then be possible to fix the issue from the grub config.

The other issue with realtek is that Debian (not sure if its just Debian or is in the pristine source too) is that they have attempted to roll multiple Realtek drivers into one package. This works but is not optimal for network latency and is not how Realtek does it. A second driver package r8168-dkms is compiled at install time to the currently running kernel headers will give better support on some hardware but requires the pristine kernel to eliminate error finishing read. I might add that Hardkernel the Odroid guys state that the Debian r8125 driver is 15-30% slower than the Realtek driver and suggest building it on their hardware.

I have lodged a bug with Debian, but its not attracted any interest.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #260879 by tommylight
Debian = www.debian.org
Kernel = www.kernel.org
-
Moving on:
Last few days i have been testing a Lenovo IdeaPad Y700 with Linux Mint 21, RT kernel 6.0.0-6, that has a realtek network card, it just did a bit over 4 hours without dropping the link to Mesa 7i92.
Sure enough running youtube or OBS Studio with screengrab and two cameras will drop the link immediately.
If i get a chance i will install the drivers as per Rod's tutorial and do some more testing.

Please Log in or Create an account to join the conversation.

More
3 years 9 months ago #260880 by tommylight

It is a Debian issue if they choose or compile a buggy kernel version for release.
On the post before this, i was trying to explain that it is not an issue for Debian at all, it is for us.
As far as Debian is concerned it works, otherwise it would not be included on their servers.
And as Rod noted, they do not care much that we have issues with it as we are very few that use the RT kernel compared to Debian's user base.
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

Time to create page: 0.203 seconds
Powered by Kunena Forum