Skip to content

Provides custom APIs for allocation and deallocation of memory. All allocations and de-allocations are done from the pools depending upon the size of the requested memory. Provides improvement of about 40% in comparison to regular heap allocations.

License

Notifications You must be signed in to change notification settings

sakky016/FixedBlockStorageManager

Repository files navigation

FixedBlockStorageManager

Fixed block storage manager - View in raw mode to get a proper console output.

Heap allocation console output:

Allocation from HEAP

heapAllocs : 16777215 heapFrees : 8389602

** Interval = 1812 ms ****

Pool allocation console output:

Allocation from POOL StorageManager:: Initial Pools- 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 128 StorageManager:: Pool init complete Total claimed memory: 1140 MB

Pool 8 totalAllocationsFromThisPool : 1047897 startAddress : 0x31c1020 endAddress : 0x39c1018 totalSize : 8388600 bytes remainingSpace : 4199304 bytes totalBlocks : 1048575 freeBlocks : 524913 usedBlocks : 523662

Pool 16 totalAllocationsFromThisPool : 1050653 startAddress : 0x39da020 endAddress : 0x49da010 totalSize : 16777200 bytes remainingSpace : 8370640 bytes totalBlocks : 1048575 freeBlocks : 523165 usedBlocks : 525410

Pool 24 totalAllocationsFromThisPool : 1049450 startAddress : 0x49e9020 endAddress : 0x61e9008 totalSize : 25165800 bytes remainingSpace : 12590160 bytes totalBlocks : 1048575 freeBlocks : 524590 usedBlocks : 523985

Pool 32 totalAllocationsFromThisPool : 1049097 startAddress : 0x61f7020 endAddress : 0x81f7000 totalSize : 33554400 bytes remainingSpace : 16740928 bytes totalBlocks : 1048575 freeBlocks : 523154 usedBlocks : 525421

Pool 40 totalAllocationsFromThisPool : 1047333 startAddress : 0x820c020 endAddress : 0xaa0bff8 totalSize : 41943000 bytes remainingSpace : 21008360 bytes totalBlocks : 1048575 freeBlocks : 525209 usedBlocks : 523366

Pool 48 totalAllocationsFromThisPool : 1048263 startAddress : 0xaa1e020 endAddress : 0xda1dff0 totalSize : 50331600 bytes remainingSpace : 25196112 bytes totalBlocks : 1048575 freeBlocks : 524919 usedBlocks : 523656

Pool 56 totalAllocationsFromThisPool : 1050767 startAddress : 0xf295020 endAddress : 0x12a94fe8 totalSize : 58720200 bytes remainingSpace : 29321992 bytes totalBlocks : 1048575 freeBlocks : 523607 usedBlocks : 524968

Pool 64 totalAllocationsFromThisPool : 1048768 startAddress : 0x12aa8020 endAddress : 0x16aa7fe0 totalSize : 67108800 bytes remainingSpace : 33593664 bytes totalBlocks : 1048575 freeBlocks : 524901 usedBlocks : 523674

Pool 72 totalAllocationsFromThisPool : 1051338 startAddress : 0x16ab6020 endAddress : 0x1b2b5fd8 totalSize : 75497400 bytes remainingSpace : 37641384 bytes totalBlocks : 1048575 freeBlocks : 522797 usedBlocks : 525778

Pool 80 totalAllocationsFromThisPool : 1050093 startAddress : 0x1b2cb020 endAddress : 0x202cafd0 totalSize : 83886000 bytes remainingSpace : 41862400 bytes totalBlocks : 1048575 freeBlocks : 523280 usedBlocks : 525295

Pool 88 totalAllocationsFromThisPool : 1049864 startAddress : 0x202d2020 endAddress : 0x25ad1fc8 totalSize : 92274600 bytes remainingSpace : 46086744 bytes totalBlocks : 1048575 freeBlocks : 523713 usedBlocks : 524862

Pool 96 totalAllocationsFromThisPool : 1049043 startAddress : 0x25ae0020 endAddress : 0x2badffc0 totalSize : 100663200 bytes remainingSpace : 50382528 bytes totalBlocks : 1048575 freeBlocks : 524818 usedBlocks : 523757

Pool 104 totalAllocationsFromThisPool : 1048261 startAddress : 0x2baf6020 endAddress : 0x322f5fb8 totalSize : 109051800 bytes remainingSpace : 54509312 bytes totalBlocks : 1048575 freeBlocks : 524128 usedBlocks : 524447

Pool 112 totalAllocationsFromThisPool : 1045593 startAddress : 0x32309020 endAddress : 0x39308fb0 totalSize : 117440400 bytes remainingSpace : 58840096 bytes totalBlocks : 1048575 freeBlocks : 525358 usedBlocks : 523217

Pool 120 totalAllocationsFromThisPool : 1045688 startAddress : 0x39314020 endAddress : 0x40b13fa8 totalSize : 125829000 bytes remainingSpace : 63062400 bytes totalBlocks : 1048575 freeBlocks : 525520 usedBlocks : 523055

Pool 128 totalAllocationsFromThisPool : 1045107 startAddress : 0x40b2c020 endAddress : 0x48b2bfa0 totalSize : 134217600 bytes remainingSpace : 67356544 bytes totalBlocks : 1048575 freeBlocks : 526223 usedBlocks : 522352

** Total Pools: 16 **

** Interval = 1343 ms ****

About

Provides custom APIs for allocation and deallocation of memory. All allocations and de-allocations are done from the pools depending upon the size of the requested memory. Provides improvement of about 40% in comparison to regular heap allocations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages