OpenNARS-for-Applications icon indicating copy to clipboard operation
OpenNARS-for-Applications copied to clipboard

Design: Precondition table needs too much memory with "too many ops"

Open PtrMan opened this issue 3 years ago • 3 comments

How to reproduce? Set OPERATIONS_MAX to something like 15 or 32.

In Concept.h we have

 Table precondition_beliefs[OPERATIONS_MAX+1];

this causes OOM for machines with <1GB and default config for number of concepts.

PtrMan avatar Nov 26 '22 15:11 PtrMan

One way which is compatible with the preallocation philosophy of memory managment is to add a custom memory allocator + manager under AIKR for entry's which are utilized.

PtrMan avatar Nov 26 '22 15:11 PtrMan

This application ought to apply AIKR principles https://cis.temple.edu/~pwang/Publication/AIKR.pdf

automenta avatar Nov 26 '22 16:11 automenta

"One way which is compatible with the preallocation philosophy of memory managment is to add a custom memory allocator + manager under AIKR for entry's which are utilized."

I agree it's quite space-wasting. Let's see how the stats look like, if the concepts have their implication tables full for most long-term runs it won't help much. While if most of them are quite empty, there will be great benefit of such an allocator. Let's see.

patham9 avatar Nov 27 '22 00:11 patham9