Zen API
|
kStatus kPoolAlloc_EnableBlockReuse | ( | kPoolAlloc | object, |
kBool | enabled | ||
) |
Determines whether blocks can be reused between ranks.
When a memory request qualifies for block-based allocation, and no free buffers are available at the required rank, a new block must be provided. If block reuse is enabled, then free blocks from other ranks can be reassigned as needed. If block reuse is disabled, then blocks remain at the rank to which they are first assigned.
Block reuse can increase allocation time slightly, due to the need to search through all ranks for a free block. Reuse is enabled by default.
object | kPoolAlloc object. |
enabled | kTRUE to enable reuse; kFALSE otherwise. |