Multithreaded memory management in real-time network data detection

Wang Dongbin,Hu Mingzeng,Zhi Hui,Yu Xiangzhan
DOI: https://doi.org/10.3772/j.issn.1002-0470.2008.12.004
2008-01-01
Abstract:The paper proposes a new algorithm named MLMalloc(multithread local malloc)for the real-time network data de- tection.MLMalloc adopts the thread-local memory to avoid the contention for multithread memory lock.To significantly reduce the thrashing times in requesting and releasing the memory among thread-local memory,global memory and system memory,MLMalloc pre-allocate plenty of memory resource in thread-local memory and global memory.The thread-local memory and global memory consist of fixed-size memory heaps.Multiple heaps will be got or returned once,so the times of operating memory lock decrease drastically.The experimental result shows that MLMalloc can greatly improve the performance in memory operation and perform better than the famous PTMalloc and TCMalloc,especially when more threads are running.
What problem does this paper attempt to address?