docs/nvdimm: add 'pmem=on' for the device dax backend file
PATCH 1/1 docs/nvdimm: add 'pmem=on' for the device dax backend file
At the end of live migration, QEMU uses msync() to flush the data to the backend storage. When the backend file is a character device dax, the pages explicitly avoid the page cache. It will return failure from msync(). The following warning is output.
"warning: qemu_ram_msync: failed to sync memory range“
So we add 'pmem=on' to avoid calling msync(), use the QEMU command line:
-object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4G
--- docs/nvdimm.txt | 7 +++++++ 1 file changed, 7 insertions(+)
docs/nvdimm.txt +7 -0
@@ -243,6 +243,13 @@ use the QEMU command line: -object memory-backend-file,id=nv_mem,mem-path=/XXX/yyy,size=4G,pmem=on +At the end of live migration, QEMU uses msync() to flush the data to the +backend storage. When the backend file is a character device dax, the pages +explicitly avoid the page cache. It will return failure from msync(). +So we add 'pmem=on' to avoid calling msync(), use the QEMU command line: + + -object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4G + References ----------
Signature · 1 line
2.17.1
Ping for comments.
Quoted 34 lines · Jingqi
At the end of live migration, QEMU uses
msync()to flush the data to the backend storage. When the backend file is a character device dax, the pages explicitly avoid the page cache. It will return failure frommsync(). The following warning is output."warning:
qemu_ram_msync: failed to sync memory range“So we add 'pmem=on' to avoid calling
msync(), use the QEMU command line:-object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4GSigned-off-by Jingqi Liu <[email protected]>--- docs/nvdimm.txt | 7 +++++++ 1 file changed, 7 insertions(+)docs/nvdimm.txt +7
-0@@ -243,6 +243,13 @@ use the QEMU command line: -object memory-backend-file,id=nv_mem,mem-path=/XXX/yyy,size=4G,pmem=on +At the end of live migration, QEMU uses msync() to flush the data to the +backend storage. When the backend file is a character device dax, the pages +explicitly avoid the page cache. It will return failure from msync(). +So we add 'pmem=on' to avoid calling msync(), use the QEMU command line: + + -object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4G + References ----------
Hi Paolo,
Any comments for this patch ?
Thanks,
Jingqi
Quoted 34 lines · Jingqi
At the end of live migration, QEMU uses
msync()to flush the data to the backend storage. When the backend file is a character device dax, the pages explicitly avoid the page cache. It will return failure frommsync(). The following warning is output."warning:
qemu_ram_msync: failed to sync memory range“So we add 'pmem=on' to avoid calling
msync(), use the QEMU command line:-object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4GSigned-off-by Jingqi Liu <[email protected]>--- docs/nvdimm.txt | 7 +++++++ 1 file changed, 7 insertions(+)docs/nvdimm.txt +7
-0@@ -243,6 +243,13 @@ use the QEMU command line: -object memory-backend-file,id=nv_mem,mem-path=/XXX/yyy,size=4G,pmem=on +At the end of live migration, QEMU uses msync() to flush the data to the +backend storage. When the backend file is a character device dax, the pages +explicitly avoid the page cache. It will return failure from msync(). +So we add 'pmem=on' to avoid calling msync(), use the QEMU command line: + + -object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4G + References ----------
Quoted 7 lines · Jingqi Liu
At the end of live migration, QEMU uses
msync()to flush the data to the backend storage. When the backend file is a character device dax, the pages explicitly avoid the page cache. It will return failure frommsync(). The following warning is output."warning:
qemu_ram_msync: failed to sync memory range“
Quoted 8 lines
So we add 'pmem=on' to avoid calling
msync(), use the QEMU command line:-object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4GSigned-off-by Jingqi Liu <[email protected]>--- docs/nvdimm.txt | 7 +++++++ 1 file changed, 7 insertions(+)