memory icon indicating copy to clipboard operation
memory copied to clipboard

Page (4KiB) alignment for memory pool

Open cohdan opened this issue 10 months ago • 0 comments

Hi, I'm trying to create a memory_pool with 4KiB alignment. I tried to wrap the memory_pool with aligned_allocator, but it fails as the max alignment from a reason I can't understand is 8 bytes. Is there a way to create an allocator that allocated 4K buffers with pointers aligned to 4K?

I need this in order to handle some direct IO to 4K block devices. Thanks!

cohdan avatar Apr 19 '24 12:04 cohdan