You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to use Fastmap in combination with libvmmalloc or vmem to offload memory for quantum chemistry applications to many nvme-drives. I have gotten libvmmalloc and pmem to work. However, Fastmap gives me some trouble by causing kernel panics.
Could you please have a look an give or do you have any idea what the reason could be? Or which additional information would be helpful.
Steps to reproduce:
Debian oldstable with Mainline Kernel 4.14.123 running in qemu 7.0.0
Hi, sorry for the late reply! The kernel panic shown in your screenshots appears unrelated to FastMap itself. If you check the function write_bio_async (which appears on the stack trace of your kernel panic) in driver/write_dirty_pages.c, we try to allocate a page directly from the kernel allocator, and use it as both a merge array for pages under writeback, as well as an array for bio structures. Judging from your screenshots, I would say that this allocation request fails and the kernel invokes the OOM reaper.
I would suggest trying to increase the amount of DRAM allocated to the VM on qemu startup. Keep in mind that beyond the memory allocated by FastMap for its page cache, we require some additional memory for the in-memory metadata we maintain, and some additional memory should be reserved for the OS itself. Therefore, if for instance you want to use FastMap with an 8GB page cache, I would suggest setting the VM's available memory to at least 10-12GB. Let me know how that works out for you.
(Also: keep in mind that perma_mmap_buf_size is expressed in terms of 4KB pages, therefore with a value of 16, the FastMap page cache will only be given 64KB of memory)
Hi,
I am trying to use Fastmap in combination with libvmmalloc or vmem to offload memory for quantum chemistry applications to many nvme-drives. I have gotten libvmmalloc and pmem to work. However, Fastmap gives me some trouble by causing kernel panics.
Could you please have a look an give or do you have any idea what the reason could be? Or which additional information would be helpful.
Steps to reproduce:
Things I have tried so far:
The text was updated successfully, but these errors were encountered: