Font Size: a A A

The Memory Management Based On The Embedded Systems

Posted on:2013-12-14Degree:MasterType:Thesis
Country:ChinaCandidate:R DingFull Text:PDF
GTID:2248330371462037Subject:Circuits and Systems
Abstract/Summary:PDF Full Text Request
With the development of embedded system, the embedded system are used in the societywidely. The requirement for real-time, reliability, high efficiency, makes lots of embedded systemapplications using their own memory managing methods.PTmalloc is widely used in embedded system because of its stability and the character ofcomprehensiveness. In the condition of large quantities by multiple threads, the requirement ofrouters can not be satisfied, and the bad waste of memory will be occurred. This paper will analyzethe reason for the default when handle large quantities by multiple threads, the arena cache can notbe used by only one thread strictly so that it will bring the operation of locking and unlockingfrequently, which will waste large amount of time.Tcmalloc is widely used in servers, the perfect management of large quantities by multiplethreads can satisfy the router’s requirement perfectly. But the disadvantage of tcmalloc will beanalyzed in this paper, which is the large waste of memory.This paper gives a new memory allocating method based on the PTmalloc and tcmalloc’sadvantages as follows:1) Using the multiple leveled caches of tcmalloc as the model of the new method, in the sametime, using PTmalloc’s method for carving the memory;2) Carving up the memory into different bins according to the real applications;3) Giving a new method for limiting the caches’capacity so that can easy the waste of memory;4) Giving a tool for diagnosing different bugs because of the illegal operation of the memory;After testing, the new method of memory allocating performance well than PTmalloc, and thewaste of memory is handled well.
Keywords/Search Tags:memory management, multiple leveled caches, PTmalloc, tcmalloc
PDF Full Text Request
Related items