基于預(yù)測(cè)原理的嵌入式內(nèi)存分配算法設(shè)計(jì)
發(fā)布時(shí)間:2018-01-12 05:22
本文關(guān)鍵詞:基于預(yù)測(cè)原理的嵌入式內(nèi)存分配算法設(shè)計(jì) 出處:《計(jì)算機(jī)工程與設(shè)計(jì)》2014年09期 論文類(lèi)型:期刊論文
更多相關(guān)文章: 內(nèi)存塊 利用率 碎片率 預(yù)測(cè) 合并
【摘要】:針對(duì)嵌入式系統(tǒng)中內(nèi)存管理存在的實(shí)時(shí)性與碎片率較大等問(wèn)題,分別從時(shí)間和空間角度對(duì)其進(jìn)行分析,采用基于預(yù)測(cè)分配和合并分配原理的預(yù)測(cè)-合并分配機(jī)制。從時(shí)間上,利用預(yù)測(cè)線程預(yù)測(cè)下一次申請(qǐng)內(nèi)存的大小,提前分配以減少系統(tǒng)等待內(nèi)存創(chuàng)建的時(shí)間;將2次申請(qǐng)的內(nèi)存塊合并成一大塊,以大塊為申請(qǐng)單位申請(qǐng)內(nèi)存塊,以降低內(nèi)存塊被多次分割導(dǎo)致的內(nèi)部碎片。μC/OS-Ⅱ平臺(tái)對(duì)比實(shí)驗(yàn)結(jié)果表明,改進(jìn)后的預(yù)測(cè)-合并內(nèi)存分配算法能有效從時(shí)間和內(nèi)存碎片率方面提高系統(tǒng)的整體性能。
[Abstract]:Aiming at the problems of real time and high fragment rate in memory management in embedded system, this paper analyzes them from the point of view of time and space. Based on the principle of predictive allocation and merge allocation, the predictor thread is used to predict the size of the next application memory in time, so as to reduce the time of system waiting for memory creation. The two applications are merged into one block, and the block is applied for as the application unit, so as to reduce the internal fragmentation caused by the multiple partition of the memory block. The results of comparison experiments on 渭 C / OS- 鈪,
本文編號(hào):1412880
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1412880.html
最近更新
教材專(zhuān)著