关注 spark技术分享,
撸spark源码 玩spark最佳实践

StorageMemoryPool

StorageMemoryPool

StorageMemoryPool is a MemoryPool that…​FIXME

StorageMemoryPool is created along with MemoryManager (as onHeapStorageMemoryPool and offHeapStorageMemoryPool pools).

Table 1. StorageMemoryPool’s Internal Properties (e.g. Registries, Counters and Flags)
Name Description

poolName

FIXME

Used when…​FIXME

_memoryUsed

The amount of memory in use for storage (caching)

Used when…​FIXME

_memoryStore

MemoryStore

Used when…​FIXME

memoryFree Method

memoryFree…​FIXME

Note
memoryFree is used when…​FIXME

acquireMemory Method

  1. Calls acquireMemory with numBytesToFree as a difference between numBytes and memoryFree

acquireMemory…​FIXME

Note

acquireMemory is used when:

freeSpaceToShrinkPool Method

freeSpaceToShrinkPool…​FIXME

Note
freeSpaceToShrinkPool is used exclusively when UnifiedMemoryManager is requested to acquireExecutionMemory.

Creating StorageMemoryPool Instance

StorageMemoryPool takes the following when created:

  • Lock

  • MemoryMode (either ON_HEAP or OFF_HEAP)

StorageMemoryPool initializes the internal registries and counters.

赞(0) 打赏
未经允许不得转载:spark技术分享 » StorageMemoryPool
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏