检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:王东滨[1] 胡铭曾[1] 智慧[2] 余翔湛[1] Wang, Dongbin[1]; Hu, Mingzeng[1]; Zhi, Hui[2]; Yu, Xiangzhan[1]
机构地区:[1]哈尔滨工业大学计算机网络与信息安全技术研究中心,哈尔滨150001 [2]中国民航信息网络股份有限公司,北京100080
出 处:《高技术通讯》2008年第12期1231-1235,共5页Chinese High Technology Letters
基 金:国家自然科学基金(60573134);863计划(21307AA01Z406、2006AA01Z452)资助项目
摘 要:针对目前内存管理算法在多线程环境下存在的问题,提出了一种新的面向网络数据实时检测系统的多线程内存管理算法 MLMalloc。MLMalloc 算法采用线程局部内存区的方式解决了在多线程环境下内存锁的频繁竞争问题;预先在线程局部区和全局内存区分配大量内存,减少了在线程局部内存区、全局内存区和系统内存区之间的内存获取和归还抖动;线程局部内存区和全局内存区由固定大小的内存堆构成,在两种内存区之间采用预测的方式,一次锁操作分配或归还多个堆,减少了对内存区锁的竞争次数。实验结果表明,MLMalloc 算法显著地提高了多线程环境下大规模网络数据实时检测系统内存操作的效率。MLMalloc 算法的性能要优于 PTFMalloc 算法和 TCMalloc 算法,并且运行线程的数目越多,性能提高的幅度越大。The paper proposes a new algorithm named MLMalloc (multithread local malloc) for the real-time network data detection. MLMalloe 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, MLMalloe pre-allocate plenty of memory resouree 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 MLMalloe can greatly improve the performance in memory operation and perform better than the famous PTMalloc and TCMalloc, especially when more threads are running.
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.214