Getting (MemLock) "Cannot Allocate Memory" on LockedBuf::with_size()
Closed this issue · 5 comments
theli-ua commented
Any idea on how to debug this? I'm requesting a fairly small size ~200000
glebpom commented
Could be some OS limits. Take a look here: https://stackoverflow.com/questions/27634109/why-mmap-cannot-allocate-memory
theli-ua commented
Its from lock, not mmap.
Either way I figured, Its a user limit on locked memory in my case. ( ulimit -l )
theli-ua commented
Would it possible to make LockedBuf a trait so that a user could provide a different implementation?
glebpom commented
What is the goal? Linux AIO requires the memory to be locked so that it never gets swapped out. Any ideas why implementation may be different?