Re: [Freetel-codec2] Shared Memory Malloc/Free Tool

2019-03-19 Thread Steve
Hello Jeroen, You can use /dev/shm I think, just change the conf file to create a directory there on boot. Ubuntu has decided to throw everything in /run these days. /run/shm is linked to /dev/shm for example. I'm not sure if in the 21st century and 64 bit address space is heap/stack crashes are

Re: [Freetel-codec2] Shared Memory Malloc/Free Tool

2019-03-19 Thread Jeroen Vreeken
Hi Steve, Except for the function prototypes closely matching malloc/free, is there any difference or advantage to using mmap/munmap with MAP_SHARED or the Posix shm_open/shm_unlink calls? As for the location I would recommend /dev/shm instead of /run as the latter is not guaranteed to be memory

[Freetel-codec2] Shared Memory Malloc/Free Tool

2019-03-19 Thread Steve
I've always been interested in Shared Memory. It was like the dual-port memory chips that were popular in the 80's. Simultaneous Memory access by two ALU's. Truth be told, I never really used multiple-write. Instead, only one-write, read-many in software. Then too, I always liked the file