Trouble when I cut large files - fails down or up Z axis
- zaxlex
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
09 Sep 2019 15:32 - 09 Sep 2019 15:33 #144610
by zaxlex
Trouble when I cut large files - fails down or up Z axis was created by zaxlex
When I try cut files with more than 500k rows, I get fails down or up Z axis (fails down happens more often) and my CNC keeps cutting lower (or higher) the level at which the Z axis failed.
For example, I have the 1500K rows 3D relief G-code on which I failed.
After it I insert after each 250k rows pause on 1 hour (G04 P3600) to be sure that it problem not mechanical (or heat for example) and got same failure result.
After it I split this large file into several small 250K rows each and run one after other without any delay - and I cut everything well and got a positive result.
I think it's a problem to work program with RAM or some thing else. I found in it topic - G-Code file size limit post where was write -
But I have 3Gb ram (1Gb+2Gb) and I think LCNC work with 1Gb RAM at first and after it with second 2Gb RAM.
And when it switch to read from first 1Gb to second 2Gb it get fails.
I think it is BUG of LinuxCNC
I think it needs to be fixed. But I do not even know where to start looking at the source code to understand what needs to be fixed and how.
The second option is to write a script that would load the file for execution in separate parts, so as not to waste time dividing a large file into parts and not to load each part separately - it is very tedious, especially if you have to wait in the middle of the night when one part is cut to run another
I think if I insert one big RAM memory or two identical, it problem will stop for my case of 1500K rows, but if I load much more rows. when it begin switch again between two RAMs - it problem come up again
So manipulating memory is just running away from problems, not solving them as such.
May be some body can help me, or give me some advice how to solve it problem.
Thank you.
:~$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 16
Model: 6
Model name: AMD Athlon(tm) II P320 Dual-Core Processor
Stepping: 3
CPU MHz: 800.000
CPU max MHz: 2100.0000
CPU min MHz: 800.0000
BogoMIPS: 4189.75
Virtualization: AMD-V
L1d cache: 64K
L1i cache: 64K
L2 cache: 512K
NUMA node0 CPU(s): 0,1
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate vmmcall npt lbrv svm_lock nrip_save
:~$ lshw -short
H/W path Device Class Description
======================================================
system K52De
/0 bus K52De
/0/0 memory 64KiB BIOS
/0/4 processor AMD Athlon(tm) II P320 Dual-Core Processor
/0/4/5 memory 256KiB L1 cache
/0/4/6 memory 1MiB L2 cache
/0/28 memory 3GiB System Memory
/0/28/0 memory 2GiB SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
/0/28/1 memory 1GiB SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
/0/100 bridge RS780 Host Bridge
/0/100/2 bridge RS780 PCI to PCI bridge (ext gfx port 0)
/0/100/2/0 display Park [Mobility Radeon HD 5430/5450/5470]
/0/100/2/0.1 multimedia Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]
/0/100/4 bridge RS780/RS880 PCI to PCI bridge (PCIE port 0)
/0/100/4/0 wlan0 network AR9285 Wireless Network Adapter (PCI-Express)
/0/100/5 bridge RS780/RS880 PCI to PCI bridge (PCIE port 1)
/0/100/5/0 generic SD/MMC Host Controller
/0/100/5/0.2 generic Standard SD Host Controller
/0/100/5/0.3 generic MS Host Controller
/0/100/5/0.4 generic xD Host Controller
/0/100/5/0.5 eth0 network JMC250 PCI Express Gigabit Ethernet Controller
/0/100/11 storage SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
/0/100/12 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
/0/100/12/1 usb4 bus OHCI PCI host controller
/0/100/12/1/1 input Usb Mouse
/0/100/12/1/3 input USB Receiver
/0/100/12.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Controller
/0/100/12.2/1 usb1 bus EHCI Host Controller
/0/100/13 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
/0/100/13/1 usb5 bus OHCI PCI host controller
/0/100/13/1/4 communication BT-253
/0/100/13.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Controller
/0/100/13.2/1 usb2 bus EHCI Host Controller
/0/100/14 bus SBx00 SMBus Controller
/0/100/14.2 multimedia SBx00 Azalia (Intel HDA)
/0/100/14.3 bridge SB7x0/SB8x0/SB9x0 LPC host controller
/0/100/14.4 bridge SBx00 PCI to PCI Bridge
/0/100/16 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
/0/100/16/1 usb6 bus OHCI PCI host controller
/0/100/16.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Controller
/0/100/16.2/1 usb3 bus EHCI Host Controller
/0/101 bridge Family 10h Processor HyperTransport Configuration
/0/102 bridge Family 10h Processor Address Map
/0/103 bridge Family 10h Processor DRAM Controller
/0/104 bridge Family 10h Processor Miscellaneous Control
/0/105 bridge Family 10h Processor Link Control
/0/1 scsi0 storage
/0/1/0.0.0 /dev/sda disk 320GB WDC WD3200BEVT-8
/0/1/0.0.0/1 /dev/sda1 volume 119GiB Extended partition
/0/1/0.0.0/1/5 /dev/sda5 volume 116GiB EXT4 volume
/0/1/0.0.0/1/6 /dev/sda6 volume 3068MiB Linux swap volume
/0/1/0.0.0/3 /dev/sda3 volume 178GiB Windows NTFS volume
/0/2 scsi1 storage
/0/2/0.0.0 /dev/cdrom disk DVD RW AD-7580S
For example, I have the 1500K rows 3D relief G-code on which I failed.
After it I insert after each 250k rows pause on 1 hour (G04 P3600) to be sure that it problem not mechanical (or heat for example) and got same failure result.
After it I split this large file into several small 250K rows each and run one after other without any delay - and I cut everything well and got a positive result.
I think it's a problem to work program with RAM or some thing else. I found in it topic - G-Code file size limit post where was write -
I tried turn off preview in AXIS and switch to other minimal interfaces without backplot, but no get positive effect.Practically it is about 500k lines on P4 2.8Ghz, 1GB ram, geforce 2
And you can turn off the preview in AXIS.
But I have 3Gb ram (1Gb+2Gb) and I think LCNC work with 1Gb RAM at first and after it with second 2Gb RAM.
And when it switch to read from first 1Gb to second 2Gb it get fails.
I think it is BUG of LinuxCNC
I think it needs to be fixed. But I do not even know where to start looking at the source code to understand what needs to be fixed and how.
The second option is to write a script that would load the file for execution in separate parts, so as not to waste time dividing a large file into parts and not to load each part separately - it is very tedious, especially if you have to wait in the middle of the night when one part is cut to run another
I think if I insert one big RAM memory or two identical, it problem will stop for my case of 1500K rows, but if I load much more rows. when it begin switch again between two RAMs - it problem come up again
So manipulating memory is just running away from problems, not solving them as such.
May be some body can help me, or give me some advice how to solve it problem.
Thank you.
:~$ lscpu
Warning: Spoiler!
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 16
Model: 6
Model name: AMD Athlon(tm) II P320 Dual-Core Processor
Stepping: 3
CPU MHz: 800.000
CPU max MHz: 2100.0000
CPU min MHz: 800.0000
BogoMIPS: 4189.75
Virtualization: AMD-V
L1d cache: 64K
L1i cache: 64K
L2 cache: 512K
NUMA node0 CPU(s): 0,1
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a 3dnowprefetch osvw ibs skinit wdt nodeid_msr hw_pstate vmmcall npt lbrv svm_lock nrip_save
:~$ lshw -short
Warning: Spoiler!
H/W path Device Class Description
======================================================
system K52De
/0 bus K52De
/0/0 memory 64KiB BIOS
/0/4 processor AMD Athlon(tm) II P320 Dual-Core Processor
/0/4/5 memory 256KiB L1 cache
/0/4/6 memory 1MiB L2 cache
/0/28 memory 3GiB System Memory
/0/28/0 memory 2GiB SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
/0/28/1 memory 1GiB SODIMM DDR3 Synchronous 1333 MHz (0.8 ns)
/0/100 bridge RS780 Host Bridge
/0/100/2 bridge RS780 PCI to PCI bridge (ext gfx port 0)
/0/100/2/0 display Park [Mobility Radeon HD 5430/5450/5470]
/0/100/2/0.1 multimedia Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series]
/0/100/4 bridge RS780/RS880 PCI to PCI bridge (PCIE port 0)
/0/100/4/0 wlan0 network AR9285 Wireless Network Adapter (PCI-Express)
/0/100/5 bridge RS780/RS880 PCI to PCI bridge (PCIE port 1)
/0/100/5/0 generic SD/MMC Host Controller
/0/100/5/0.2 generic Standard SD Host Controller
/0/100/5/0.3 generic MS Host Controller
/0/100/5/0.4 generic xD Host Controller
/0/100/5/0.5 eth0 network JMC250 PCI Express Gigabit Ethernet Controller
/0/100/11 storage SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
/0/100/12 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
/0/100/12/1 usb4 bus OHCI PCI host controller
/0/100/12/1/1 input Usb Mouse
/0/100/12/1/3 input USB Receiver
/0/100/12.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Controller
/0/100/12.2/1 usb1 bus EHCI Host Controller
/0/100/13 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
/0/100/13/1 usb5 bus OHCI PCI host controller
/0/100/13/1/4 communication BT-253
/0/100/13.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Controller
/0/100/13.2/1 usb2 bus EHCI Host Controller
/0/100/14 bus SBx00 SMBus Controller
/0/100/14.2 multimedia SBx00 Azalia (Intel HDA)
/0/100/14.3 bridge SB7x0/SB8x0/SB9x0 LPC host controller
/0/100/14.4 bridge SBx00 PCI to PCI Bridge
/0/100/16 bus SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
/0/100/16/1 usb6 bus OHCI PCI host controller
/0/100/16.2 bus SB7x0/SB8x0/SB9x0 USB EHCI Controller
/0/100/16.2/1 usb3 bus EHCI Host Controller
/0/101 bridge Family 10h Processor HyperTransport Configuration
/0/102 bridge Family 10h Processor Address Map
/0/103 bridge Family 10h Processor DRAM Controller
/0/104 bridge Family 10h Processor Miscellaneous Control
/0/105 bridge Family 10h Processor Link Control
/0/1 scsi0 storage
/0/1/0.0.0 /dev/sda disk 320GB WDC WD3200BEVT-8
/0/1/0.0.0/1 /dev/sda1 volume 119GiB Extended partition
/0/1/0.0.0/1/5 /dev/sda5 volume 116GiB EXT4 volume
/0/1/0.0.0/1/6 /dev/sda6 volume 3068MiB Linux swap volume
/0/1/0.0.0/3 /dev/sda3 volume 178GiB Windows NTFS volume
/0/2 scsi1 storage
/0/2/0.0.0 /dev/cdrom disk DVD RW AD-7580S
Last edit: 09 Sep 2019 15:33 by zaxlex.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19529
- Thank you received: 6553
09 Sep 2019 17:10 #144615
by tommylight
Replied by tommylight on topic Trouble when I cut large files - fails down or up Z axis
1.5 milion lines !!!???
You can try dissabling "lookahead" but i do not know if it will help.
You can try dissabling "lookahead" but i do not know if it will help.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17996
- Thank you received: 4840
09 Sep 2019 17:25 #144617
by PCW
Replied by PCW on topic Trouble when I cut large files - fails down or up Z axis
I would guess a hardware problem is more likely especially with Z only issues
Sounds like lost steps
Can you try with you Z axis acceleration reduced by say 30%?
Sounds like lost steps
Can you try with you Z axis acceleration reduced by say 30%?
Please Log in or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
Less
More
- Posts: 1937
- Thank you received: 335
09 Sep 2019 18:20 - 09 Sep 2019 18:22 #144619
by bevins
I cut an 8 foot 3d relief header 8 inches wide and it took 12 hours on my router. It finished it fine and I had 2 gig ram.
Sounds like a hardware issue to me.
Replied by bevins on topic Trouble when I cut large files - fails down or up Z axis
And when it switch to read from first 1Gb to second 2Gb it get fails.
I think it is BUG of LinuxCNC
I think it needs to be fixed. But I do not even know where to start looking at the source code to understand what needs to be fixed and how.
I cut an 8 foot 3d relief header 8 inches wide and it took 12 hours on my router. It finished it fine and I had 2 gig ram.
Sounds like a hardware issue to me.
Last edit: 09 Sep 2019 18:22 by bevins.
Please Log in or Create an account to join the conversation.
- zaxlex
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
09 Sep 2019 19:35 #144622
by zaxlex
Replied by zaxlex on topic Trouble when I cut large files - fails down or up Z axis
no, it can not be hardware issue. I run 7 parts of it file without delay and no problems, I agree may be that is not correct work linuxcnc with RAM memory. But I want cleary understand what kind of problem I get and how to try fix it.
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17996
- Thank you received: 4840
09 Sep 2019 19:38 #144623
by PCW
Replied by PCW on topic Trouble when I cut large files - fails down or up Z axis
I would first try reducing your Z acceleration...
Please Log in or Create an account to join the conversation.
- zaxlex
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
09 Sep 2019 19:56 #144624
by zaxlex
Replied by zaxlex on topic Trouble when I cut large files - fails down or up Z axis
it was allready made with half of my usually accelerations and velocity, and you do not hear me - it runs good only when load parts separately one by one and no other any changes
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
Less
More
- Posts: 17996
- Thank you received: 4840
09 Sep 2019 20:18 #144625
by PCW
Replied by PCW on topic Trouble when I cut large files - fails down or up Z axis
Loading parts separately would be different because startup gcode would be run for each part (not the case for the complete job)
It really does not seem like a memory issue to me,. Note that LinuxCNC does not necessarily load the entire gcode file into memory (though the backplot will run through the entire file), and that there is nothing special that happens at 1G.
What interface hardware do you have?
It really does not seem like a memory issue to me,. Note that LinuxCNC does not necessarily load the entire gcode file into memory (though the backplot will run through the entire file), and that there is nothing special that happens at 1G.
What interface hardware do you have?
Please Log in or Create an account to join the conversation.
- zaxlex
- Offline
- New Member
Less
More
- Posts: 13
- Thank you received: 0
09 Sep 2019 20:33 #144627
by zaxlex
Replied by zaxlex on topic Trouble when I cut large files - fails down or up Z axis
I have mesa 7i92m ethernet
but it problem I had and on older PC with lpt port
and yes I try other minimal interfaces without backplot
but it problem I had and on older PC with lpt port
and yes I try other minimal interfaces without backplot
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10832
- Thank you received: 3571
10 Sep 2019 14:40 #144703
by rodw
Replied by rodw on topic Trouble when I cut large files - fails down or up Z axis
I don't think it reasonable to be guided by a 10 year old post about memory limits on a P4 PC.
There have been plenty of posts where people are cutting similar size files without issues but they d turn off the back plot.
Like everyone else, My money is on lost steps on the Z axis. In my experience, this usually happens on up travel with the weight of the Z axis pushing down.
There have been plenty of posts where people are cutting similar size files without issues but they d turn off the back plot.
Like everyone else, My money is on lost steps on the Z axis. In my experience, this usually happens on up travel with the weight of the Z axis pushing down.
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds