- Posts: 19306
- Thank you received: 0
LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
5 years 8 months ago #199392
by andypugh
This might be a config problem.
What does
tell you?
wiki.linuxcnc.org/cgi-bin/wiki.pl?LockedMemory
However on my systems this shows 65536 which should be more than enough.
Replied by andypugh on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
gaston48 wrote: Obviously 2.8.1 under axis limits the size of the xml file linked to PyVCP ?
This might be a config problem.
What does
Code:
ulimit -l
wiki.linuxcnc.org/cgi-bin/wiki.pl?LockedMemory
However on my systems this shows 65536 which should be more than enough.
Please Log in to join the conversation.
5 years 8 months ago #199394
by gaston48
Replied by gaston48 on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
Hello Andy
this gives ?
utilisation ulimit [-SHabcdefghij .....xPT] [limite]
this gives ?
utilisation ulimit [-SHabcdefghij .....xPT] [limite]
Please Log in to join the conversation.
5 years 8 months ago #199396
by andypugh
Replied by andypugh on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
What OS are you running on?
I tried it here on a couple of Debian installs before posting.
It is lower-case-L
I tried it here on a couple of Debian installs before posting.
It is lower-case-L
Please Log in to join the conversation.
5 years 8 months ago #199397
by gaston48
Replied by gaston48 on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
ulimit -l (locked memory)
65536
65536
Please Log in to join the conversation.
5 years 8 months ago #199399
by andypugh
Replied by andypugh on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
It doesn't seem to be that, then.
If the rtapi logging level is set to 4 or 5 then the shmalloc_dn function lists the free memory and we can see if it is really running out. However setting the rtapi logging level is more difficult than it used to be. I have a very simple HAL component that calls rtapi_set_msg_level(5) when loaded.
(the error is raised here: github.com/LinuxCNC/linuxcnc/blob/master/src/hal/hal_lib.c#L703
which calls: github.com/LinuxCNC/linuxcnc/blob/master.../hal/hal_lib.c#L3020
which calls: github.com/LinuxCNC/linuxcnc/blob/master.../hal/hal_lib.c#L2959
If the rtapi logging level is set to 4 or 5 then the shmalloc_dn function lists the free memory and we can see if it is really running out. However setting the rtapi logging level is more difficult than it used to be. I have a very simple HAL component that calls rtapi_set_msg_level(5) when loaded.
(the error is raised here: github.com/LinuxCNC/linuxcnc/blob/master/src/hal/hal_lib.c#L703
which calls: github.com/LinuxCNC/linuxcnc/blob/master.../hal/hal_lib.c#L3020
which calls: github.com/LinuxCNC/linuxcnc/blob/master.../hal/hal_lib.c#L2959
Please Log in to join the conversation.
5 years 8 months ago #199400
by gaston48
Replied by gaston48 on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
If you load my xml file into a config of your own, do you have the same blockage?
I just tried No, on a simple configuration, my xml file works fine ?
I just tried No, on a simple configuration, my xml file works fine ?
Please Log in to join the conversation.
5 years 8 months ago #199466
by chris@cnc
Replied by chris@cnc on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
I loaded your xml and it also works for me in the basic configuration on my simulator. I remember such problems at the beginning with pyvcp. I had changed the order of the hal files and then it worked. try to keep the basic order of the hal files.
Attachment not found
Please Log in to join the conversation.
5 years 8 months ago #199488
by andypugh
Replied by andypugh on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
I added your PyVCP to sim-axis/axis-9axis
I then loaded a 5i25 and a set of Mesa cards.
All was well.
I then used mux_generic to add a _lot_ of float-type HAL pins and found that the system died at 878 pins.
(actually crashed the PC, but I am running an experimental RTAI kernel)
Trying again I managed to get to 2789 HAL pins before it looked like running out of memory was likely.
To find the number of pins in your config, open a terminal (with your config running) and "halcmd show pin > pins.txt" then open the pins.txt file in a text editor with line numbers (such as Geany)
I then loaded a 5i25 and a set of Mesa cards.
All was well.
I then used mux_generic to add a _lot_ of float-type HAL pins and found that the system died at 878 pins.
(actually crashed the PC, but I am running an experimental RTAI kernel)
Trying again I managed to get to 2789 HAL pins before it looked like running out of memory was likely.
Code:
Feb 20 00:04:14 rm-one kernel: [ 642.439483] smalloc_up: shmem available 347376
Feb 19 23:55:10 rm-one kernel: [ 642.439484] HAL: creating pin 'or2.0.in0'
Feb 19 23:55:10 rm-one kernel: [ 642.439485] smalloc_dn: shmem available 347280
.
.
.
Feb 19 23:57:12 rm-one kernel: [ 220.570673] smalloc_dn: shmem available 1120
Feb 19 23:57:12 rm-one kernel: [ 220.570677] HAL: creating parameter 'and2.9.tmax'
Feb 19 23:57:12 rm-one kernel: [ 220.570677] smalloc_dn: shmem available 1040
Feb 19 23:57:12 rm-one kernel: [ 220.570679] HAL: creating parameter 'and2.9.tmax-increased'
Feb 19 23:57:12 rm-one kernel: [ 220.570680] smalloc_dn: shmem available 960
To find the number of pins in your config, open a terminal (with your config running) and "halcmd show pin > pins.txt" then open the pins.txt file in a text editor with line numbers (such as Geany)
Please Log in to join the conversation.
5 years 8 months ago #199489
by andypugh
Replied by andypugh on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
It looks like HAL is limited to 348160 bytes:
github.com/LinuxCNC/linuxcnc/blob/master.../hal/hal_priv.h#L333
That does allow for a few thousand HAL pins, but perhaps that isn't always enough?
(I have checked, and ulimit -l is no help)
github.com/LinuxCNC/linuxcnc/blob/master.../hal/hal_priv.h#L333
That does allow for a few thousand HAL pins, but perhaps that isn't always enough?
(I have checked, and ulimit -l is no help)
Please Log in to join the conversation.
5 years 8 months ago #199504
by gaston48
Replied by gaston48 on topic LinuxCNC 2.8.1 configuration doesn't run after upgrading from 2.7.15
2052 Pins ! " quand on aime on ne compte pas ! "
my component gearboxmikron is in userspace it
does not influence, but if I remove an rt component, I gain pins in the xml (last hal loaded)
this is under 2.7.15 RTAI with max locked memory : 20480
my component gearboxmikron is in userspace it
does not influence, but if I remove an rt component, I gain pins in the xml (last hal loaded)
this is under 2.7.15 RTAI with max locked memory : 20480
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.089 seconds
