Comment on Swapping two blocks of memory inside a larger block, in constant memoryComments−cbsks8moOn Linux, if the blocks are page aligned, you could use mremap(2) to swap blocks very efficiently without using any additional physical memory.
Comments
On Linux, if the blocks are page aligned, you could use mremap(2) to swap blocks very efficiently without using any additional physical memory.