Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
1–10 of 60 posts
Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#2Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#3This seems like it has some nice features. Though a 3K overhead could be important in such a constrained environment (I guess if it's only managing 128k that could reduce).
Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#4In the end we still had to add one layer of hack^H^H engineering tricks to workaround fragmentation issues in the worst case :-)
Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#5Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#6That's cool. I've written small but less flexible things before based on arrays as used/freed block maps rather than lists, from embedded devices with 128K of RAM. This seems like it has some nice features. Though a 3K overhead could be important in such a constrained environment (I guess if it's only managing 128k that could reduce).
I’m fairly happy that mirsa C forbids malloc. I can’t use it even if I wanted to, so I need to be more careful about how memory is used. Annoying at first, makes a lot of sense later on though.
Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#7That's cool. I've written small but less flexible things before based on arrays as used/freed block maps rather than lists, from embedded devices with 128K of RAM. This seems like it has some nice features. Though a 3K overhead could be important in such a constrained environment (I guess if it's only managing 128k that could reduce).
Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#8That's cool. I've written small but less flexible things before based on arrays as used/freed block maps rather than lists, from embedded devices with 128K of RAM. This seems like it has some nice features. Though a 3K overhead could be important in such a constrained environment (I guess if it's only managing 128k that could reduce).
3k overhead where you’re trying to reduce from malloc is definitely a lot. One of my products have 8K total, not going to waste 3 of that replacing malloc. I’m fairly happy that mirsa C forbids malloc. I can’t use it even if I wanted to, so I need to be more careful about how memory is used. Annoying at first, makes a lot of sense later on though.
Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#9That's cool. I've written small but less flexible things before based on arrays as used/freed block maps rather than lists, from embedded devices with 128K of RAM. This seems like it has some nice features. Though a 3K overhead could be important in such a constrained environment (I guess if it's only managing 128k that could reduce).
The library was implemented using C++. We also ported that to QNX in addition to Linux Kernel.
I remembered it can do > 1 millions msg block per second between user space programs or similar perf for between user and kernel space.
It did waste some amount of space. That can be config at system startup.
Re: Tinyalloc: replacement for malloc/free in unmanaged, linear memory situations
#10Its a nifty tool, but I can't help feeling a little disappointed that we're still having to deal directly with issues such as memory allocation in 2019.