Error: Segmentation fault (core dumped)
Closed this issue · 0 comments
tzh-dot commented
Under ZNS type, when insmod module prompts: kernel BUG at /home/hello/tzh/nvmevirt/nvmevirt/zns_ftl.c:102!
This is because storage space starts from 1M offset (source code: config->storage_size = memmap_size - MB(1)), so the parameter memmap_size must be set to the original value + 1M.
In addition, due to the increase in memmap_size, the insmod kernel will detect whether the used memory space (memmap_start---memmap_start+memmap_size) is reserved space. Therefore, when configuring the reserved memory space, you must also configure at least 1M more memory.