- Posts: 22012
- Thank you received: 4
[SOLVED] Huge latency with PREEMPT_RT
- tommylight
-
- Offline
- Administrator
-
In BIOS, everything not needed has to be disabled, like:
Hyperthreading, if it has it,
power savings,
c states,
modem
wake on lan
smart fan control,
pci-e power management,
serial ports,
virtualisation,
sound card if not using it,
Please Log in to join the conversation.
- BeagleBrainz
- New Member
-
- Thank you received: 0
arvidb wrote: PCW: No built-in graphics unfortunately. I do have another graphics card (that uses the amdgpu instead of the radeon driver) that I could use temporarily for testing though, if it turns out to be necessary.
BeagleBrainz: Thanks for trying to help.
* As I said, and as you can see from Intel's E8400 page , this is a 2-core CPU without hyperthreading.
* As I wrote, I'm using the radeon driver already (i.e. the default, in-kernel driver). No 3rd party drivers installed.
* As you can see from my previous message, I'm already running xfce.
* I'm actually already using a PS/2 keyboard on this computer, but I have no PS/2 mouse to try unfortunately. Also nothing wireless.
Do you have any specific reasons to believe another distribution (Mint) would help, despite running the same kernel, drivers and window manager on the same hardware? Redoing the install is a large undertaking since I'm using EtherCAT - I have to build everything from source. (It's great that you're eager to help, but it mostly feels like you're sending me on wild-goose chases by not taking time to understand the circumstances...)
Ok usually when users say they are using this or that driver they have installed a third party driver, that is how I took your statement.
The kernel I supply is plain vanilla, the only patch I used is the real time patch, by all reports latency seems pretty good.. After quickly running Buster with XFCE & Mint 19.2 with XFCE I found Mint to be snappier, which kind of surprised me.
I have a package that will pull in everything you need to rebuild Linuxcnc, no having to chase the dependencies for building Linuxcnc.
But in saying all that you are trying to use a 12 yro CPU, which in it's day it may have been a good choice, but 12 years later there are better choices. All the time you spending faffing around to get this setup working maybe better spent throwing a few extra beer tokens at a better system. Or you may or may not, depending on your MB, be able to upgrade to a Quad core. Isolate 2 cores and you should see an improvement. The Q9550 runs at a slight lower clock rate 2.83 vs 3.0Ghz but the L2 cache is greater 12MB vs 6MB.
Another thing you can do is look into what is running in the background at see what you can turn off.
At the end of the day is sounds like you are spending at bit of cash of your system, why not bite the bullet and get a computer that will run without having to spending a lot of time & hassle to reduce latency ?
I myself tried a few different options with some gear I had lying around and ended up just going with a new mb.
If you really want to test out Mint & XFCE I can upload one of my Live ISO's to my server and you can give that a spin, just dd it to a USB drive.The one there I have ATM is MATE, which really wont be a lot of good to you.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
- BeagleBrainz
- New Member
-
- Thank you received: 0
They support UEFI & Legcay boot. So no issues there.
www.amazon.com.au/ASRock-Motherboard-Com...5B-ITX/dp/B01M9EXCYB
Please Log in to join the conversation.
BeagleBrainz wrote: I'm using a Asrock J3355B, not too sure if they are readily available. Ok Amazon AU has 3.
They support UEFI & Legcay boot. So no issues there.
www.amazon.com.au/ASRock-Motherboard-Com...5B-ITX/dp/B01M9EXCYB
From the UK
Please Log in to join the conversation.
The graphics card I used, an old radeon one, has been more and more shaky, with display corruption and now no longer even showing anything at boot. So I replaced it with a newer one using the amdgpu driver and the spikes are gone - same usage as before gives a maximum 27.9 µs deviation:arvidb wrote: Using Firefox to watch YouTube however still brings some spikes up to about 500-700 µs (but *much* rarer than the continuous 2 ms spikes I got with EIST enabled)
Attachment not found
I don't know if it was the radeon driver or the fact that the card was failing that caused the spikes.
Please Log in to join the conversation.
*Linux Mint 19.1 with preempt (readying for a 7i96, which I currently have communicating and moving a motor)
*I believe I have disabled everything optional in the BIOS
*isolcpus=1 has tightened the histogram, but still with the big periodic spikes of 1+ms
*using onboard graphics did not help (attached image with no glxgears running)
*I'm running the onboard NIC and a PCI NIC (Realtek RTL8111/8164/8411 onboard connected to 7i96 and RTL8196/8110 PCI card for internet)
I'm new to this level of fiddling with Linux, so don't assume anything! One thing I am confused about from the process of jumping between different guides in setting up the OS, was I correct in making the changes to the /etc/network/interfaces file ( here ) - I did this before installing the second card, and wasn't sure if I had created a bad situation there (especially since reading here makes the network connection manager seem a bit flaky. I was not sure if tommylight's instructions implied the network manager was being used for everything and the gnipsel changes should not be done. I didn't copy the text I changed in the interfaces file, so it would take me a long time to go back to check! I set 'managed=true' under [ifupdown] in NetworkManager.conf because initially the network connection wasn't present in the network manager, but my memory is getting hazy at this point (and not sure if this network stuff is a red herring anyway!).
The motherboard I'm using (Gigabyte ga-g31mf-s2) isn't full size, and I wonder if it is just not a great candidate.
Apologies for the wall of text! Thanks in advance.
Please Log in to join the conversation.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Please Log in to join the conversation.
