How do I limit the number of resident pages in a mmap?
I’m making a “database” by mmap
‘ing a file to a massive chunk (1 TiB) of memory, and writing to it, and fallocate
‘ing more space when needed. The db is meant for time series data, and I’m simply appending new data points to the end of the file.
Allocating user space buffer in kernel module fails
I’d like to allocate a user space buffer in a kernel module (linux kernel v5.4.0). According to this post, this should be doable by using do_mmap()
.