News Release

SeoulTech scientists develop ultra-lightweight memory manager that transforms embedded system performance

The revolutionary software could dramatically boost the performance of billions of smart devices

Peer-Reviewed Publication

Seoul National University of Science & Technology

LWMalloc: A state-of-the-art dynamic memory allocator

image: 

The lightweight allocator demonstrates 53% faster execution times and requires 23% lower memory usage, while needing only 530 lines of code.

view more 

Credit: Hwajung Kim from SeoulTech

Embedded systems such as Internet of Things (IoT) devices and single-board computers possess limited memory and processing power, necessitating the effective management of these constraints. This makes Linux—a flexible and cost-effective platform—promising for embedded systems. Indeed, Linux-based operating systems, including Ubuntu Core, Raspberry Pi OS, BalenaOS, and OpenWrt, are commonly used for a wide variety of embedded devices. However, ptmalloc—its default memory allocator—is often unable to satisfy the needs of all applications. While experts have proposed alternatives such as jemalloc, tcmalloc, and mimalloc for improved memory management, these general-purpose dynamic memory allocators suffer from heavy memory consumption, vast library sizes, complexity, and eventual performance degradation. This highlights the urgent requirement for new lightweight options.

Addressing this issue to reduce complexity and optimize performance, researchers led by Dr. Hwajung Kim, an Assistant Professor of Smart ICT Convergence Engineering at Seoul National University of Science and Technology (SeoulTech), Republic of Korea, have developed LWMalloc, a lightweight and high-performance dynamic memory allocator specifically designed for resource-constrained environments. Their novel findings were made available online on 12 February 2025 and have been published in Volume 12, Issue 12 of the IEEE Internet of Things Journal on 15 June 2025.

LWMalloc is based on a lightweight data structure and possesses a deferred coalescing policy and dedicated small chunk pools for memory allocation optimization. Its data structure helps reduce metadata overhead for compact and efficient implementation. Notably, the DC policy postpones redundant operations until allocation, thus lowering the execution overhead and maintaining efficiency as well as low-response times. Furthermore, dedicated small chunk pools segregate small memory requests common in dynamic allocation patterns into fixed-size pools, facilitating their O(1)—constant time complexity—allocation.

The researchers demonstrated the superiority of LWMalloc through extensive experimental real-world applications on Raspberry Pi Zero W, Raspberry Pi 4, and Jetson Orin Nano. “Our proposal outperforms ptmalloc, the default allocator in Linux, achieving up to 53% faster execution time and 23% lower memory usage. With a compact implementation of only 530 lines of code and a 20-KB size, significantly smaller than ptmallocs 4838 lines and 116 KB, LWMalloc achieves an effective balance between performance and memory efficiency, making it highly suitable for resource-constrained environments,” remarks Dr. Kim.

LWMalloc can benefit any embedded or IoT system that operates under strict memory and performance constraints. These include consumer electronics, such as smart TVs, set-top boxes, home appliances, mobile and wearable devices, automotive systems with real-time constraints, as well as edge computing nodes handling AI or data processing workloads.

In the long term, efficient memory allocators like LWMalloc can extend device lifespans, reduce energy consumption, and enable more complex applications to run on low-power hardware. According to Dr. Kim: “This could make high-performance features accessible on affordable consumer devices, reduce e-waste, and improve the responsiveness and reliability of everyday embedded systems. Moreover, as IoT and edge computing continue to expand, such lightweight allocators will be critical in ensuring the scalability and sustainability of connected devices worldwide.”

 

***

 

Reference
DOI: 10.1109/JIOT.2025.3541247

 

About the institute Seoul National University of Science and Technology (SEOULTECH)
Seoul National University of Science and Technology, commonly known as 'SEOULTECH,' is a national university located in Nowon-gu, Seoul, South Korea. Founded in April 1910, around the time of the establishment of the Republic of Korea, SEOULTECH has grown into a large and comprehensive university with a campus size of 504,922 m2. It comprises 10 undergraduate schools, 35 departments, 6 graduate schools, and has an enrollment of approximately 14,595 students.

Website: https://en.seoultech.ac.kr/



About the author
Dr. Hwajung Kim is an Assistant Professor of Smart ICT Convergence Engineering at Seoul National University of Science and Technology (SeoulTech). Her group is developing innovative system software technologies, including operating systems, file and storage systems, distributed systems, and database systems. Dr. Kim’s research aims to optimize data management and computing performance in edge and cloud environments. Before joining SeoulTech, she spent 11 years at Samsung Research, developing middleware for mobile, SmartTV, and server architecture for cloud services. In 2023, she received a PhD in Computer Science from Seoul National University.


Disclaimer: AAAS and EurekAlert! are not responsible for the accuracy of news releases posted to EurekAlert! by contributing institutions or for the use of any information through the EurekAlert system.