Installing LinuxCNC 2.9 or Master on Linux Mint 21
- Stanislavz
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 17
15 Jan 2023 07:19 - 15 Jan 2023 07:20 #262017
by Stanislavz
Replied by Stanislavz on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
Attachments:
Last edit: 15 Jan 2023 07:20 by Stanislavz.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
25 Jan 2023 10:52 #262870
by royka
Replied by royka on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
@tommylight thanks! I've got it running on an Optiplex 7040, but had some latency issues.
I'm a bit surprised that all these low latency kernel debs have their clock set at 250 Hz instead of 1000 Hz, After compiling one with the clock set at 1000 Hz It seems to do a bit better, latency was first 90000ns, now 58000ns. Still not great, but acceptable with mesa I think. I might gonna look into unlocking bios options, I've done that before with a laptop which had great results.
I'm a bit surprised that all these low latency kernel debs have their clock set at 250 Hz instead of 1000 Hz, After compiling one with the clock set at 1000 Hz It seems to do a bit better, latency was first 90000ns, now 58000ns. Still not great, but acceptable with mesa I think. I might gonna look into unlocking bios options, I've done that before with a laptop which had great results.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
25 Jan 2023 13:43 #262881
by Ismacr63
Replied by Ismacr63 on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
Can you share that kernel to test it?@tommylight thanks! I've got it running on an Optiplex 7040, but had some latency issues.
I'm a bit surprised that all these low latency kernel debs have their clock set at 250 Hz instead of 1000 Hz, After compiling one with the clock set at 1000 Hz It seems to do a bit better, latency was first 90000ns, now 58000ns. Still not great, but acceptable with mesa I think. I might gonna look into unlocking bios options, I've done that before with a laptop which had great results.
Please Log in or Create an account to join the conversation.
25 Jan 2023 15:27 - 26 Jan 2023 20:49 #262885
by royka
With this kernel somehow I had to manually edit grub
uploadify.net/6bdcf22b29f8effc/Linux-ker....5-rt14-amd64.tar.gz
Here the debs of kernel 6.2 rc3 with rt patch and CONFIG_HZ_1000=y
uploadify.net/e9ff67b98f170eb3/kernel-6.2rc3.tar.gz
Update: After adding a RAM module to let it operate dual channel, I've been testing it for a few hours with youtube and 15 tabs open, installing various stuff, a max jitter of 40 us. I'm satisfied. While with another pc there was a huge improvement after removing a RAM module.
So you could try with a second ram module, that seems to work best if you've 2 of the same, however at the moment I'm testing with 2 different brands which work well.
Replied by royka on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
Sure, I did however disable some AMD graphics drivers, so if you need these I could eventually compile a new one. It's actually pretty easy to do it yourself if you want to. As reference I used this page: github.com/Jiseoup/preempt-rt/blob/main/README.mdCan you share that kernel to test it?
With this kernel somehow I had to manually edit grub
uploadify.net/6bdcf22b29f8effc/Linux-ker....5-rt14-amd64.tar.gz
Here the debs of kernel 6.2 rc3 with rt patch and CONFIG_HZ_1000=y
uploadify.net/e9ff67b98f170eb3/kernel-6.2rc3.tar.gz
Update: After adding a RAM module to let it operate dual channel, I've been testing it for a few hours with youtube and 15 tabs open, installing various stuff, a max jitter of 40 us. I'm satisfied. While with another pc there was a huge improvement after removing a RAM module.
So you could try with a second ram module, that seems to work best if you've 2 of the same, however at the moment I'm testing with 2 different brands which work well.
Last edit: 26 Jan 2023 20:49 by royka. Reason: update
The following user(s) said Thank You: zack
Please Log in or Create an account to join the conversation.
- tommylight
- Topic Author
- Away
- Moderator
Less
More
- Posts: 19209
- Thank you received: 6438
31 Jan 2023 01:28 #263286
by tommylight
Replied by tommylight on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
Updated original post as this no longer works due to Python versions.
If anything changes, i will update again.
If anything changes, i will update again.
Please Log in or Create an account to join the conversation.
31 Jan 2023 17:51 #263378
by royka
Replied by royka on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
Since the rt patched kernels from Debian has PREEMPT_DYNAMIC=y in its config, shouldn't we use preempt=full as bootarg parameter?
I'm testing it now and got a max jitter of 30us instead of 40us, could be a coincident but I could not get it higher yet. I'm curious if others would see an improvement too.
I'm testing it now and got a max jitter of 30us instead of 40us, could be a coincident but I could not get it higher yet. I'm curious if others would see an improvement too.
Please Log in or Create an account to join the conversation.
03 Feb 2023 23:40 #263638
by Ismacr63
I have tried your latest kernel 6.2 rc3 and I have managed to lower 15us.
How can I test PREEMPT_DYNAMIC=y?
Replied by Ismacr63 on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
Since the rt patched kernels from Debian has PREEMPT_DYNAMIC=y in its config, shouldn't we use preempt=full as bootarg parameter?
I'm testing it now and got a max jitter of 30us instead of 40us, could be a coincident but I could not get it higher yet. I'm curious if others would see an improvement too.
I have tried your latest kernel 6.2 rc3 and I have managed to lower 15us.
How can I test PREEMPT_DYNAMIC=y?
The following user(s) said Thank You: royka
Please Log in or Create an account to join the conversation.
04 Feb 2023 00:17 #263639
by royka
Replied by royka on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
"PREEMPT_DYNAMIC=y" is an option you could set before you compile which is also set at that kernel, From what I understand it means that you then need to add the boot parameter preempt=full to get the lowest latency, but I could not find a lot info about that.
The easy way to test without a permanent change is when you're in grub @ boot, press "E". Then you could add preempt=full in probably the second last line, in front of "quiet splash". Then press CTRL + X to boot. After a reboot that setting is gone.
The easy way to test without a permanent change is when you're in grub @ boot, press "E". Then you could add preempt=full in probably the second last line, in front of "quiet splash". Then press CTRL + X to boot. After a reboot that setting is gone.
Please Log in or Create an account to join the conversation.
04 Feb 2023 02:34 #263646
by rodw
Replied by rodw on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
if you type uname -v is PREEMPT_DYNAMIC still reported after you install the linux-image-rt and reboot?
I had a feeling it showed preempt_rt on a reboot.
I had a feeling it showed preempt_rt on a reboot.
Please Log in or Create an account to join the conversation.
04 Feb 2023 22:09 #263718
by royka
Replied by royka on topic Installing LinuxCNC 2.9 or Master on Linux Mint 21
It showed preempt_rt indeed.
I couldn't find anywhere that it should show preempt_dynamic otherwise, but it seems logically that it should. I was searching about that config option and found that boot parameter, tried that and it showed a latency of 10us less than before with whatever I tried.
But perhaps the higher latency before that boot parameter was an incident.
I couldn't find anywhere that it should show preempt_dynamic otherwise, but it seems logically that it should. I was searching about that config option and found that boot parameter, tried that and it showed a latency of 10us less than before with whatever I tried.
But perhaps the higher latency before that boot parameter was an incident.
Please Log in or Create an account to join the conversation.
Time to create page: 0.167 seconds