Re: [Qemu-devel] Question about vNVDIMM file format

2016-05-18 Thread Richard W.M. Jones
I thought you might be interested in some performance results, "hot off the presses". With DAX enabled, I see the following messages in the guest kernel logs, which I assume means it is working: [0.469364] EXT4-fs (pmem0): DAX enabled. Warning: EXPERIMENTAL, use at your own risk [

Re: [Qemu-devel] Question about vNVDIMM file format

2016-05-18 Thread Richard W.M. Jones
On Wed, May 18, 2016 at 03:04:52PM +0800, Xiao Guangrong wrote: > On 05/17/2016 02:25 AM, Richard W.M. Jones wrote: > >(a) How necessary is the ACPI dependency? We disable ACPI because it > >is quite slow, adding something like 150-200ms to the boot process > >(every millisecond counts for us!).

Re: [Qemu-devel] Question about vNVDIMM file format

2016-05-18 Thread Zhang, Haozhong
Hi Richard, On 05/18/16 15:04, Xiao Guangrong wrote: [..] > >There are a few possible problems / questions I have: > > > >(a) How necessary is the ACPI dependency? We disable ACPI because it > >is quite slow, adding something like 150-200ms to the boot process > >(every millisecond counts for

Re: [Qemu-devel] Question about vNVDIMM file format

2016-05-18 Thread Xiao Guangrong
Hi Rich, On 05/17/2016 02:25 AM, Richard W.M. Jones wrote: On Mon, May 16, 2016 at 09:53:36AM -0700, Stefan Hajnoczi wrote: On Mon, May 16, 2016 at 04:04:01PM +0100, Richard W.M. Jones wrote: I'm playing with ext4 and DAX. I'm using: -object

Re: [Qemu-devel] Question about vNVDIMM file format

2016-05-16 Thread Stefan Hajnoczi
On Mon, May 16, 2016 at 04:04:01PM +0100, Richard W.M. Jones wrote: > I'm playing with ext4 and DAX. > > I'm using: > > -object memory-backend-file,id=mem1,share,mem-path=/var/tmp/pmem,size=4G \ > -device nvdimm,memdev=mem1,id=nv1 > > where /var/tmp/pmem is a 4 GB ext4 filesystem image (no

Re: [Qemu-devel] Question about vNVDIMM file format

2016-05-16 Thread Richard W.M. Jones
On Mon, May 16, 2016 at 09:53:36AM -0700, Stefan Hajnoczi wrote: > On Mon, May 16, 2016 at 04:04:01PM +0100, Richard W.M. Jones wrote: > > I'm playing with ext4 and DAX. > > > > I'm using: > > > > -object memory-backend-file,id=mem1,share,mem-path=/var/tmp/pmem,size=4G \ > > -device

Re: [Qemu-devel] Question about vNVDIMM file format

2016-05-16 Thread Xiao Guangrong
On 05/16/2016 11:04 PM, Richard W.M. Jones wrote: I'm playing with ext4 and DAX. Thanks for your try, Rich! :) I'm using: -object memory-backend-file,id=mem1,share,mem-path=/var/tmp/pmem,size=4G \ -device nvdimm,memdev=mem1,id=nv1 where /var/tmp/pmem is a 4 GB ext4 filesystem

[Qemu-devel] Question about vNVDIMM file format

2016-05-16 Thread Richard W.M. Jones
I'm playing with ext4 and DAX. I'm using: -object memory-backend-file,id=mem1,share,mem-path=/var/tmp/pmem,size=4G \ -device nvdimm,memdev=mem1,id=nv1 where /var/tmp/pmem is a 4 GB ext4 filesystem image (no partition table). I can mount this in the guest using: mount -o dax /dev/pmem0