- LinuxCNC
- General LinuxCNC Questions
- After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
10 Nov 2024 18:45 #314200
by denhen89
After switching from wheezy to Debian 12 only X axis runs smooth (sometimes) was created by denhen89
Hello,
since yesterday morning i am trying to get my machine to work. All started when i wanted to do a job for someone and could not access the rclone onedrive or actually i could, but the files could not be opened. (input/output error) Also, the PC was very slow, but i thought i will just send the files through mail so that i get the job done first and then take care of the slow pc, but even loading gmail took years. I somehow got the job done and then i decided that it might be smart to upgrade from wheezy with Linuxcnc 2.8.4 to some newer version (2.9.2 / 2.9.3).
The problem: After upgrading to Debian and using the same config, the motors does not work, they do some ultra small laggy moves, but the X-Axis is somehow moving perfectly fine after the homing sequence is done. Y (slave axis) and Z axis are making some strange noises every couple seconds, sometimes a bit quicker depending on some changes like changes of base period or so. I have tried so many things since the upgrade to Debian, that i actually cannot tell you exactly everything i did, but i will write down everything i remember:
1. I didnt want to format the pc that was attached to the cnc router, so i took a pc that was working perfectly fine some time ago on that same machine, with latencys below 8000
2. I installed Debian, did some isolcpus settings that showed me good latencys in the latency test. I was thinking everything works fine so i also do the Onedrive setup and then i thought i will attach the pcs to the machine, setup the correct parport addresses for both parallel cards and continue to work, but this was not the case, because then the problem started with the strange movements of the stepper motors, but after homing X-Axis worked perfectly
3. After trying PREEMPT and RT kernel i still had the same problem
4. I took the SSD out and attached it to the original PC that was attached earlier, that was so slow and where i had the onedrive Output/input error. I dont know if that can be done without any problem, but the pc started up perfectly and i just changed the isolcpus setting, because its a different cpu with 4 instead of 6 cores. Also i did the isolcpus, because without the latency went up pretty quickly - after isolcpus it looked good.
Unfortunately same problem, strange axis movement, sometimes i got a latency error message when starting linuxcnc.
5. decided to format the pc, but this time i used the Linuxcnc 2.9.2 installed iso. Same problem
- please keep in mind, 2 different pcs, with the exact same problems, but both pcs were working fine on that machine and on a other machine
6. I though this might be a problem with the LPT cards (not sure why, but if you are totally lost you just try everything you can), so i tried to use only one, or changed the slots and also i have tried to use the other LPT cable that is only used when i use the different config for the Rotary Axis (the second LPT card is there just for the Rotary axis configs (seperate A and C axis). Same problem, nothing changed
7. the last thing i tried was to use a older Linuxcnc installed ISO, the 2.8.4 (as i remember correctly, but at least it was 2.8.x) - same problem
So, i am that much lost and thinking how it is possible that 2 PCS that were working perfectly fine with the same machine (and also for a different machine), with thesame configs, do not anymore work. Also, switching LPT cards and cables do no changes.
The last thing that comes in my mind that i could try is to install wheezy again, but i cant imagine this will change the problem. The machine is a pretty simple CNC router with slave axis, no mpg, no special buttons or so, so i really dont care if its 2.8 version or 2.9. It was running PERFECTLY FINE with 2.8.4 on wheezy. I just wanted to fix onedrive and the slow pc problem.
I can imagine that it will be difficult to help me out, but maybe someone had some similar problem and might have some ideas what i could try
Here a video ( www.youtube.com/shorts/kfr2WJ-MDAc ) where you can see:
X axis moving perfectly fine,
then the Y axis and then Z axis. (totally laggy)
Thanks in advance
Br,
Denis
since yesterday morning i am trying to get my machine to work. All started when i wanted to do a job for someone and could not access the rclone onedrive or actually i could, but the files could not be opened. (input/output error) Also, the PC was very slow, but i thought i will just send the files through mail so that i get the job done first and then take care of the slow pc, but even loading gmail took years. I somehow got the job done and then i decided that it might be smart to upgrade from wheezy with Linuxcnc 2.8.4 to some newer version (2.9.2 / 2.9.3).
The problem: After upgrading to Debian and using the same config, the motors does not work, they do some ultra small laggy moves, but the X-Axis is somehow moving perfectly fine after the homing sequence is done. Y (slave axis) and Z axis are making some strange noises every couple seconds, sometimes a bit quicker depending on some changes like changes of base period or so. I have tried so many things since the upgrade to Debian, that i actually cannot tell you exactly everything i did, but i will write down everything i remember:
1. I didnt want to format the pc that was attached to the cnc router, so i took a pc that was working perfectly fine some time ago on that same machine, with latencys below 8000
2. I installed Debian, did some isolcpus settings that showed me good latencys in the latency test. I was thinking everything works fine so i also do the Onedrive setup and then i thought i will attach the pcs to the machine, setup the correct parport addresses for both parallel cards and continue to work, but this was not the case, because then the problem started with the strange movements of the stepper motors, but after homing X-Axis worked perfectly
3. After trying PREEMPT and RT kernel i still had the same problem
4. I took the SSD out and attached it to the original PC that was attached earlier, that was so slow and where i had the onedrive Output/input error. I dont know if that can be done without any problem, but the pc started up perfectly and i just changed the isolcpus setting, because its a different cpu with 4 instead of 6 cores. Also i did the isolcpus, because without the latency went up pretty quickly - after isolcpus it looked good.
Unfortunately same problem, strange axis movement, sometimes i got a latency error message when starting linuxcnc.
5. decided to format the pc, but this time i used the Linuxcnc 2.9.2 installed iso. Same problem
- please keep in mind, 2 different pcs, with the exact same problems, but both pcs were working fine on that machine and on a other machine
6. I though this might be a problem with the LPT cards (not sure why, but if you are totally lost you just try everything you can), so i tried to use only one, or changed the slots and also i have tried to use the other LPT cable that is only used when i use the different config for the Rotary Axis (the second LPT card is there just for the Rotary axis configs (seperate A and C axis). Same problem, nothing changed
7. the last thing i tried was to use a older Linuxcnc installed ISO, the 2.8.4 (as i remember correctly, but at least it was 2.8.x) - same problem
So, i am that much lost and thinking how it is possible that 2 PCS that were working perfectly fine with the same machine (and also for a different machine), with thesame configs, do not anymore work. Also, switching LPT cards and cables do no changes.
The last thing that comes in my mind that i could try is to install wheezy again, but i cant imagine this will change the problem. The machine is a pretty simple CNC router with slave axis, no mpg, no special buttons or so, so i really dont care if its 2.8 version or 2.9. It was running PERFECTLY FINE with 2.8.4 on wheezy. I just wanted to fix onedrive and the slow pc problem.
I can imagine that it will be difficult to help me out, but maybe someone had some similar problem and might have some ideas what i could try
Here a video ( www.youtube.com/shorts/kfr2WJ-MDAc ) where you can see:
X axis moving perfectly fine,
then the Y axis and then Z axis. (totally laggy)
Thanks in advance
Br,
Denis
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
10 Nov 2024 20:11 #314207
by tommylight
Replied by tommylight on topic After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
Do not change the servo period. Ever. Except in some strange cases, never.
Download the Wheezy ISO, boot the PC from it, copy the existing (non converted to 2.8 or 2.9) config, open the folder, right click on the .ini file, select "open with other ..." on the next window near the bottom type linuxcnc and press OK.
Does everything work?
Download the Wheezy ISO, boot the PC from it, copy the existing (non converted to 2.8 or 2.9) config, open the folder, right click on the .ini file, select "open with other ..." on the next window near the bottom type linuxcnc and press OK.
Does everything work?
Please Log in or Create an account to join the conversation.
10 Nov 2024 20:39 #314211
by denhen89
Replied by denhen89 on topic After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
Thanks Tommy for your quick reply.
I did not change the servo period, only the Base Period, but i did that after i got some error message at linuxcnc startup (latency... 25000..task 0..) - i did not change anything besides the parport addresses for the other pc i setup first with debian 12.
I will now look for Wheezy ISO and install it on the PC where i first installed Debian 12, but i will connect it to the cnc router on tomorrow and then i will post the result.
PS: On the original PC from the cnc router (that had the ondrive input output error and that was so slow), i had Wheezy and Linux 2.8.4-76 and i copied those original files to the new Debian 12 pc, without converting the files with the auto-converting pop up function, because as i remember correctly, this is not necessary if my config was working with Linux 2.8? (i remember i had to do it when i updated from 2.7 i believe - i had to change some command etc.)
I did not change the servo period, only the Base Period, but i did that after i got some error message at linuxcnc startup (latency... 25000..task 0..) - i did not change anything besides the parport addresses for the other pc i setup first with debian 12.
I will now look for Wheezy ISO and install it on the PC where i first installed Debian 12, but i will connect it to the cnc router on tomorrow and then i will post the result.
PS: On the original PC from the cnc router (that had the ondrive input output error and that was so slow), i had Wheezy and Linux 2.8.4-76 and i copied those original files to the new Debian 12 pc, without converting the files with the auto-converting pop up function, because as i remember correctly, this is not necessary if my config was working with Linux 2.8? (i remember i had to do it when i updated from 2.7 i believe - i had to change some command etc.)
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19226
- Thank you received: 6443
10 Nov 2024 20:49 #314212
by tommylight
Replied by tommylight on topic After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
No need to install anything, you can do all the testing in Live mode, just have the configs on another USB, or start them from the existing hard drives.
I/O errors are usually from failing hard drives, sometimes from failing memory or memory controller, but over network might be bad connection usually manisefested by very long waits for read/write.
I/O errors are usually from failing hard drives, sometimes from failing memory or memory controller, but over network might be bad connection usually manisefested by very long waits for read/write.
Please Log in or Create an account to join the conversation.
11 Nov 2024 12:36 #314235
by denhen89
Replied by denhen89 on topic After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
Update: installed wheezy iso on a 60 GB SSD with Phenom X6 1055t cpu (only one RAM block used of 8gb pair, because the other one of the pair seem to be broken) and updated linuxcnc from 2.7 to 2.8.4 as it was originally with the original config - just changed to the correct partport addresses
Everything seem to work perfectly, but i havent started a program yet, just jogged.
I had to insert a old vga because that motherboard has no internal vga, and when i do glxgears it shows FPS between 4000.00 and 2500, so extremly high and then the latency jumps from about 5000-6000 to about 30.000, but only if glxgears is running.
GRUB: Isolcpus=5 acpi_irq_nobalance noirqbalance
Due to the fact that i want to use onedrive and not running around with a USB stick, i will install again the Linux 2.9.2 installer iso with Debian 12 and hope it will work now, if not then i have no other option but to use Wheezy for now.
Everything seem to work perfectly, but i havent started a program yet, just jogged.
I had to insert a old vga because that motherboard has no internal vga, and when i do glxgears it shows FPS between 4000.00 and 2500, so extremly high and then the latency jumps from about 5000-6000 to about 30.000, but only if glxgears is running.
GRUB: Isolcpus=5 acpi_irq_nobalance noirqbalance
Due to the fact that i want to use onedrive and not running around with a USB stick, i will install again the Linux 2.9.2 installer iso with Debian 12 and hope it will work now, if not then i have no other option but to use Wheezy for now.
Please Log in or Create an account to join the conversation.
11 Nov 2024 13:35 - 11 Nov 2024 13:39 #314238
by denhen89
Replied by denhen89 on topic After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
Update: not working after installing the linuxcnc_2.9.2-amd64.hybrid iso
No movement of axis, but i have tried it only with stepconf and the correct partport. (i hear the relay switch so its the correct parport adres)
Latency very high, about 50000 compared to 6000 with the wheezy version.
Not sure what i can try to fix it if even possible.
As i wrote already, i wouldnt care about wheezy, its just that working with onedrive was really nice, instead of using the usb stick. I would even be happy with onedrive through webbrowser, but it also doesnt work because firefox is not anymore supported.
One more thing: The system with Debian 12 seems to be somehow low, also browser is extremly slow
No movement of axis, but i have tried it only with stepconf and the correct partport. (i hear the relay switch so its the correct parport adres)
Latency very high, about 50000 compared to 6000 with the wheezy version.
Not sure what i can try to fix it if even possible.
As i wrote already, i wouldnt care about wheezy, its just that working with onedrive was really nice, instead of using the usb stick. I would even be happy with onedrive through webbrowser, but it also doesnt work because firefox is not anymore supported.
One more thing: The system with Debian 12 seems to be somehow low, also browser is extremly slow
Last edit: 11 Nov 2024 13:39 by denhen89.
Please Log in or Create an account to join the conversation.
11 Nov 2024 18:08 #314268
by denhen89
Replied by denhen89 on topic After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
Update: machines runs again, on Debian 12 with Linuxcnc 2.9.3.
Now something that might be interesting for anyone who had similar problems like me, so that e.g. wheezy worked perfectly (almost out of the box, just some typical bios settings that had to be turned off like power savings etc.), but huge problems on Debian 12.
I had to use different RAMs and set up the DDRam settings correctly like DRAM Frequency (AUTO didnt worked), and also the CPU settings like "AMD Turbo CORE technology: ENABLED" which i thought should be turned off. I played around for at least 2 hours. I used 4 x 2gb RAMs - all of the same type, but i could not use 1333Mhz as was written on the RAMs, but i went up from 800mhz to if i remember correctly 1100mhz.
I didnt run a program for long, but it looks like it works perfectly fine. When i run a code and open GLXgears then i get a latency message in Linuxcnc, but the machines works well, or at least i didnt noticed any strange behavior.
Latency:
Base Thread Max interval: about 30.000 - 32.000
Max Jitter: Below 10.000
(tested with youtube on and glxgears, but not for a long time)
Oh and before i forget:
The whole system was so slow, because i had that one 4GB ram mounted without the other 4GB ram of that pair (8GB), because it seems to be broken, as i mentioned earlier. After inserting other rams and use AUTO "DRAM Timing confirgurations" the system was running very good.
Tomorrow i will setup onedrive and do some milling tests in the coming days.
Hope that everything will work well.
Thanks for help and best regards,
Denis
Now something that might be interesting for anyone who had similar problems like me, so that e.g. wheezy worked perfectly (almost out of the box, just some typical bios settings that had to be turned off like power savings etc.), but huge problems on Debian 12.
I had to use different RAMs and set up the DDRam settings correctly like DRAM Frequency (AUTO didnt worked), and also the CPU settings like "AMD Turbo CORE technology: ENABLED" which i thought should be turned off. I played around for at least 2 hours. I used 4 x 2gb RAMs - all of the same type, but i could not use 1333Mhz as was written on the RAMs, but i went up from 800mhz to if i remember correctly 1100mhz.
I didnt run a program for long, but it looks like it works perfectly fine. When i run a code and open GLXgears then i get a latency message in Linuxcnc, but the machines works well, or at least i didnt noticed any strange behavior.
Latency:
Base Thread Max interval: about 30.000 - 32.000
Max Jitter: Below 10.000
(tested with youtube on and glxgears, but not for a long time)
Oh and before i forget:
The whole system was so slow, because i had that one 4GB ram mounted without the other 4GB ram of that pair (8GB), because it seems to be broken, as i mentioned earlier. After inserting other rams and use AUTO "DRAM Timing confirgurations" the system was running very good.
Tomorrow i will setup onedrive and do some milling tests in the coming days.
Hope that everything will work well.
Thanks for help and best regards,
Denis
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- After switching from wheezy to Debian 12 only X axis runs smooth (sometimes)
Time to create page: 0.072 seconds