Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page (4KiB) alignment for memory pool #181

Open
cohdan opened this issue Apr 19, 2024 · 0 comments
Open

Page (4KiB) alignment for memory pool #181

cohdan opened this issue Apr 19, 2024 · 0 comments

Comments

@cohdan
Copy link
Contributor

cohdan commented Apr 19, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant