HAL Memory Limitations

  • tom.eagan@integrisgp.com
  • Offline
  • New Member
  • New Member
More
02 Nov 2021 21:32 #225042 by tom.eagan@integrisgp.com
HAL Memory Limitations was created by tom.eagan@integrisgp.com
Hello -

I've been developing a User Interface using axis/pyvcp, and have run out of HAL memory. This has happened twice. After the first time I depopulated some of it so I could continue developing other parts of it, hoping to consolidate later, but then I hit the memory limitation again.

I've seen other comments on this same topic... Is there a version of LinuxCNC that expands this limitation? Or is there something else I could do to expand it? I'm currently using v 2.8.2.

Note: This is a commercial development project, using LinuxCNC with a custom front end (although still using parts of Axis), so I don't want to do anything that would limit marketability due to licensing considerations.

Thanks,
Tom Eagan
 

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

More
02 Nov 2021 21:43 - 02 Nov 2021 21:45 #225043 by bevins
Replied by bevins on topic HAL Memory Limitations
Are you using mesa cards? IF so, try turning off any unused stepgens and or encoders etc.... That should get you some more pins.

Turn of any components not needed and last resort change HAL_size in  src/hal/hal_priv.h and recompile.
Last edit: 02 Nov 2021 21:45 by bevins.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
02 Nov 2021 21:52 #225045 by tommylight
Replied by tommylight on topic HAL Memory Limitations
Can not help with memory stuff as i am far behind in some aspects of LinuxCNC ....
But, i like this:
engineering.integrisgp.com/wp-content/up...10/Engineer-It-2.jpg
So now to answer your question with a totally unrelated question:
Do you have any remote job that i could fill? :)

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

More
02 Nov 2021 22:05 #225048 by BigJohnT
Replied by BigJohnT on topic HAL Memory Limitations
You can increase hal memory... Jeff explains how in this email.
sourceforge.net/p/emc/mailman/emc-users/...nth=201006&viewday=3

JT

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

More
03 Nov 2021 00:15 - 03 Nov 2021 00:17 #225057 by andypugh
Replied by andypugh on topic HAL Memory Limitations
2.9 (development branch) has a pull request outstanding to increase  HAL memory:

github.com/LinuxCNC/linuxcnc/pull/1171

But I already increased it earlier this year. (that change is already in 2.8, though) 
Last edit: 03 Nov 2021 00:17 by andypugh.

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

More
03 Nov 2021 08:22 #225079 by cmorley
Replied by cmorley on topic HAL Memory Limitations
sounds like a very complicated pyvcp - how many pins does it have?
My bet is you don't actually need these pins - other then with pyvcp that is not only way to control them.
Have you looked at gladevcp or qtvcp? They are more suited to building complicated screens - and only use pins when you actually need them, but you probably need to learn python programming a bit.

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

  • tom.eagan@integrisgp.com
  • Offline
  • New Member
  • New Member
More
30 Nov 2021 20:09 #228067 by tom.eagan@integrisgp.com
Replied by tom.eagan@integrisgp.com on topic HAL Memory Limitations
Yes, it is a complicated vcp, and I'm sure there are better ways... but I'm trying for a "quick" prototype, and pycvp seemed like an easier solution than gladevcp or qtvcp, and I'm trying to avoid getting too deep in learning new things. I hadn't expected a memory allocation issue, however, I did fix my original problem by downloading, changing HAL_SIZE,  and recompiling.

Thanks to all for your help.

(and to tommylight, can't hurt to apply :) )

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

  • tom.eagan@integrisgp.com
  • Offline
  • New Member
  • New Member
More
30 Nov 2021 20:14 #228068 by tom.eagan@integrisgp.com
Replied by tom.eagan@integrisgp.com on topic HAL Memory Limitations
...and I might offer a suggestion for the developer community, if you're monitoring this: How about adding HAL memory size as an INI setting rather than a #define in the code?
The following user(s) said Thank You: tommylight

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

More
30 Nov 2021 22:33 #228080 by andypugh
Replied by andypugh on topic HAL Memory Limitations

...and I might offer a suggestion for the developer community, if you're monitoring this: How about adding HAL memory size as an INI setting rather than a #define in the code?
 

Because it is statically allocated, so would still need to be set at least as large as the INI setting. (ie, the INI could only ever reduce it from the #define value) 

Could it be dynamically allocated? Probably....

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

Time to create page: 0.210 seconds
Powered by Kunena Forum