Installing LinuxCNC on Debian 9 - 13

More
3 years 11 months ago #256222 by daiman444
Replied by daiman444 on topic Installing LinuxCNC on Debian 9 - 13
Hi. in this particular case, I followed your instructions to install lcnc 2.9 on debian 11. as it was suggested above that the development branch has changed, then I get cloned not what I need. tomorrow I will try to clone with an explicit indication of the branch 2.9.

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

More
3 years 11 months ago #256224 by andypugh
Replied by andypugh on topic Installing LinuxCNC on Debian 9 - 13
No need to re-clone, you can just
Code:
git checkout 2.9

Or not bother. At the moment 2.9 and 2.10 are identical.

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

More
3 years 11 months ago #256226 by JT
Replied by JT on topic Installing LinuxCNC on Debian 9 - 13

Hi. in this particular case, I followed your instructions to install lcnc 2.9 on debian 11. as it was suggested above that the development branch has changed, then I get cloned not what I need. tomorrow I will try to clone with an explicit indication of the branch 2.9.
 
Ok, that page needs fixing and I'll sort that out shortly.

JT
The following user(s) said Thank You: seuchato, daiman444

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

More
3 years 11 months ago - 3 years 11 months ago #256235 by rodw
Replied by rodw on topic Installing LinuxCNC on Debian 9 - 13

After doing an update on debian 12 and 13 I see linux-image-6.00-2-rt-amd64 in synaptic, has anyone tried 6.0? with a Mesa ethernet card?

JT
I just did! And it works!
Code:
packing@packing:~$ halcmd show param hm2_*.tmax* Parameters: Owner   Type  Dir         Value  Name     36  s32   RW              0  hm2_7i76e.0.read-request.tmax     36  bit   RO          FALSE  hm2_7i76e.0.read-request.tmax-increased     36  s32   RW         555360  hm2_7i76e.0.read.tmax     36  bit   RO          FALSE  hm2_7i76e.0.read.tmax-increased     36  s32   RW          76240  hm2_7i76e.0.write.tmax     36  bit   RO          FALSE  hm2_7i76e.0.write.tmax-increased packing@packing:~$ uname -v #1 SMP PREEMPT_RT Debian 6.0.5-1 (2022-10-28) packing@packing:~$ 
 

So this is the very original Gigabyte N3160 PC I first installed linuxcnc on years ago. It was running Debian Bullseye 5.10 as an office PC for a long time so its had a few upgrades since while struggling with error finishing read which was an issue on it.

I did a full upgrade to Bookworm last night which gave me the 6.0 kernel and lost the network connection. The NIC was not there. I installed linux-headers and that seemed to rebuild the r8168-dkms driver before I did.
INstalled linuxcnc from the bookworm repo. Error finishing read is gone. Latency was around 130k until I added Isolcpus=2,3 Ping times to the 7i76e took quite a hit but Latency is amazing. It was around 0.100 ms before

Time will tell if I need to remove the isolcpus but at this stage everything appears normal.

PS: Also built a RIP install last night which was working too.
Last edit: 3 years 11 months ago by rodw.

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

More
3 years 11 months ago #256237 by rodw
Replied by rodw on topic Installing LinuxCNC on Debian 9 - 13
One of the things with isolcpus is the nic interrupt is probably being serviced by the same core as the servo thread which probably accounts for the slower ping times. You can see what cores are used if you type
cat /proc/interrupts

explore the output on the right hand side and you will see the NIC port listed
This old article, I think is useful but I don't think all interrupts go to the one core anymore
www.alexonlinux.com/smp-affinity-and-pro...pt-handling-in-linux

Also this  one too:
blog.dan.drown.org/nic-interrupt-coalesce-impact-on-ntp/
BUt it is not supported on my PC
The following user(s) said Thank You: seuchato

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

More
3 years 11 months ago #257943 by drdoc
Replied by drdoc on topic Installing LinuxCNC on Debian 9 - 13
With this in mind, is there any benefit to building from source? I'm running bookworm on a pretty healthy 4th-generation i5 system, and will be using a 7i96 board.

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

Time to create page: 0.841 seconds
Powered by Kunena Forum