All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: Mike Snitzer <snitzer@redhat.com>,
	linux-nvdimm <linux-nvdimm@lists.01.org>,
	"Darrick J. Wong" <darrick.wong@oracle.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-xfs <linux-xfs@vger.kernel.org>,
	device-mapper development <dm-devel@redhat.com>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns
Date: Mon, 4 Jun 2018 08:20:38 +1000	[thread overview]
Message-ID: <20180603222038.GS10363@dastard> (raw)
In-Reply-To: <CAPcyv4iXTsxmQgjoLs2E_8QrLHrFOV_58T7UYf0zPJuB2744qQ@mail.gmail.com>

On Thu, May 31, 2018 at 09:02:52PM -0700, Dan Williams wrote:
> On Thu, May 31, 2018 at 7:24 PM, Dave Chinner <david@fromorbit.com> wrote:
> > On Thu, May 31, 2018 at 06:57:33PM -0700, Dan Williams wrote:
> >> > FWIW, XFS+DAX used to just work on this setup (I hadn't even
> >> > installed ndctl until this morning!) but after changing the kernel
> >> > it no longer works. That would make it a regression, yes?

[....]

> >> I suspect your kernel does not have CONFIG_ZONE_DEVICE enabled which
> >> has the following dependencies:
> >>
> >>         depends on MEMORY_HOTPLUG
> >>         depends on MEMORY_HOTREMOVE
> >>         depends on SPARSEMEM_VMEMMAP
> >
> > Filesystem DAX now has a dependency on memory hotplug?

[....]

> > OK, works now I've found the magic config incantantions to turn
> > everything I now need on.

By enabling these options, my test VM now has a ~30s pause in the
boot very soon after the nvdimm subsystem is initialised.

[    1.523718] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.550353] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.552175] Non-volatile memory driver v1.3
[    2.332045] tsc: Refined TSC clocksource calibration: 2199.909 MHz
[    2.333280] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1fb5dcd4620, max_idle_ns: 440795264143 ns
[   37.217453] brd: module loaded
[   37.225423] loop: module loaded
[   37.228441] virtio_blk virtio2: [vda] 10485760 512-byte logical blocks (5.37 GB/5.00 GiB)
[   37.245418] virtio_blk virtio3: [vdb] 146800640 512-byte logical blocks (75.2 GB/70.0 GiB)
[   37.255794] virtio_blk virtio4: [vdc] 1073741824000 512-byte logical blocks (550 TB/500 TiB)
[   37.265403] nd_pmem namespace1.0: unable to guarantee persistence of writes
[   37.265618] nd_pmem namespace0.0: unable to guarantee persistence of writes

The system does not appear to be consuming CPU, but it is blocking
NMIs so I can't get a CPU trace. For a VM that I rely on booting in
a few seconds because I reboot it tens of times a day, this is a
problem....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

WARNING: multiple messages have this Message-ID (diff)
From: Dave Chinner <david@fromorbit.com>
To: Dan Williams <dan.j.williams@intel.com>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>,
	Mike Snitzer <snitzer@redhat.com>,
	linux-nvdimm <linux-nvdimm@lists.01.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	linux-xfs <linux-xfs@vger.kernel.org>,
	device-mapper development <dm-devel@redhat.com>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns
Date: Mon, 4 Jun 2018 08:20:38 +1000	[thread overview]
Message-ID: <20180603222038.GS10363@dastard> (raw)
In-Reply-To: <CAPcyv4iXTsxmQgjoLs2E_8QrLHrFOV_58T7UYf0zPJuB2744qQ@mail.gmail.com>

On Thu, May 31, 2018 at 09:02:52PM -0700, Dan Williams wrote:
> On Thu, May 31, 2018 at 7:24 PM, Dave Chinner <david@fromorbit.com> wrote:
> > On Thu, May 31, 2018 at 06:57:33PM -0700, Dan Williams wrote:
> >> > FWIW, XFS+DAX used to just work on this setup (I hadn't even
> >> > installed ndctl until this morning!) but after changing the kernel
> >> > it no longer works. That would make it a regression, yes?

[....]

> >> I suspect your kernel does not have CONFIG_ZONE_DEVICE enabled which
> >> has the following dependencies:
> >>
> >>         depends on MEMORY_HOTPLUG
> >>         depends on MEMORY_HOTREMOVE
> >>         depends on SPARSEMEM_VMEMMAP
> >
> > Filesystem DAX now has a dependency on memory hotplug?

[....]

> > OK, works now I've found the magic config incantantions to turn
> > everything I now need on.

By enabling these options, my test VM now has a ~30s pause in the
boot very soon after the nvdimm subsystem is initialised.

[    1.523718] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.550353] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.552175] Non-volatile memory driver v1.3
[    2.332045] tsc: Refined TSC clocksource calibration: 2199.909 MHz
[    2.333280] clocksource: tsc: mask: 0xffffffffffffffff max_cycles: 0x1fb5dcd4620, max_idle_ns: 440795264143 ns
[   37.217453] brd: module loaded
[   37.225423] loop: module loaded
[   37.228441] virtio_blk virtio2: [vda] 10485760 512-byte logical blocks (5.37 GB/5.00 GiB)
[   37.245418] virtio_blk virtio3: [vdb] 146800640 512-byte logical blocks (75.2 GB/70.0 GiB)
[   37.255794] virtio_blk virtio4: [vdc] 1073741824000 512-byte logical blocks (550 TB/500 TiB)
[   37.265403] nd_pmem namespace1.0: unable to guarantee persistence of writes
[   37.265618] nd_pmem namespace0.0: unable to guarantee persistence of writes

The system does not appear to be consuming CPU, but it is blocking
NMIs so I can't get a CPU trace. For a VM that I rely on booting in
a few seconds because I reboot it tens of times a day, this is a
problem....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2018-06-03 22:20 UTC|newest]

Thread overview: 119+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-29 19:50 [PATCH v2 0/7] Fix DM DAX handling Ross Zwisler
2018-05-29 19:50 ` Ross Zwisler
2018-05-29 19:50 ` Ross Zwisler
2018-05-29 19:51 ` [PATCH v2 1/7] fs: allow per-device dax status checking for filesystems Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51 ` [PATCH v2 2/7] dax: change bdev_dax_supported() to support boolean returns Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 21:25   ` Darrick J. Wong
2018-05-29 21:25     ` Darrick J. Wong
2018-05-29 21:25     ` Darrick J. Wong
2018-05-29 22:01     ` Ross Zwisler
2018-05-29 22:01       ` Ross Zwisler
2018-05-31 19:13       ` Darrick J. Wong
2018-05-31 19:13         ` Darrick J. Wong
2018-05-31 19:13         ` Darrick J. Wong
2018-05-31 20:34         ` Ross Zwisler
2018-05-31 20:34           ` Ross Zwisler
2018-05-31 20:34           ` Ross Zwisler
2018-05-31 20:35         ` Dan Williams
2018-05-31 20:35           ` Dan Williams
2018-05-31 20:35           ` Dan Williams
2018-05-31 20:41         ` Ross Zwisler
2018-05-31 20:41           ` Ross Zwisler
2018-05-31 20:41           ` Ross Zwisler
2018-05-31 20:52         ` Mike Snitzer
2018-05-31 20:52           ` Mike Snitzer
2018-05-31 20:52           ` Mike Snitzer
2018-05-31 22:26           ` [dm-devel] " Darrick J. Wong
2018-05-31 22:26             ` Darrick J. Wong
2018-05-31 22:26             ` Darrick J. Wong
2018-06-01 20:59             ` Ross Zwisler
2018-06-01 20:59               ` Ross Zwisler
2018-06-01 20:59               ` Ross Zwisler
2018-06-01  1:26         ` Dave Chinner
2018-06-01  1:26           ` Dave Chinner
2018-06-01  1:57           ` Dan Williams
2018-06-01  1:57             ` Dan Williams
2018-06-01  2:24             ` Dave Chinner
2018-06-01  2:24               ` Dave Chinner
2018-06-01  2:24               ` Dave Chinner
2018-06-01  4:02               ` Dan Williams
2018-06-01  4:02                 ` Dan Williams
2018-06-01  4:02                 ` Dan Williams
2018-06-03 22:20                 ` Dave Chinner [this message]
2018-06-03 22:20                   ` Dave Chinner
2018-06-04  0:25                   ` Dave Chinner
2018-06-04  0:25                     ` Dave Chinner
2018-06-04  0:25                     ` Dave Chinner
2018-06-04  1:48                     ` Dan Williams
2018-06-04  1:48                       ` Dan Williams
2018-06-04  1:48                       ` Dan Williams
2018-06-04 23:40                       ` Dan Williams
2018-06-04 23:40                         ` Dan Williams
2018-06-04 23:40                         ` Dan Williams
2018-06-05  0:33                         ` Mike Snitzer
2018-06-05  0:33                           ` Mike Snitzer
2018-06-05  0:33                           ` Mike Snitzer
2018-06-05  5:55                           ` Dave Chinner
2018-06-05  5:55                             ` Dave Chinner
2018-06-05  5:55                             ` Dave Chinner
2018-06-05  3:32                         ` Dan Williams
2018-06-05  3:32                           ` Dan Williams
2018-05-29 19:51 ` [PATCH v2 3/7] dm: fix test for DAX device support Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-06-01 20:19   ` Mike Snitzer
2018-06-01 20:19     ` Mike Snitzer
2018-06-01 20:19     ` Mike Snitzer
2018-06-01 20:46     ` Mike Snitzer
2018-06-01 20:46       ` Mike Snitzer
2018-06-01 20:46       ` Mike Snitzer
2018-06-01 21:11       ` Ross Zwisler
2018-06-01 21:11         ` Ross Zwisler
2018-06-01 21:11         ` Ross Zwisler
2018-06-01 21:16       ` Dan Williams
2018-06-01 21:16         ` Dan Williams
2018-06-01 21:16         ` Dan Williams
2018-05-29 19:51 ` [PATCH v2 4/7] dm: prevent DAX mounts if not supported Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-06-01 21:55   ` Mike Snitzer
2018-06-01 21:55     ` Mike Snitzer
2018-06-01 21:55     ` Mike Snitzer
2018-06-04 23:15     ` Ross Zwisler
2018-06-04 23:15       ` Ross Zwisler
2018-06-04 23:15       ` Ross Zwisler
2018-06-20 15:17       ` Mike Snitzer
2018-06-20 15:17         ` Mike Snitzer
2018-06-25 19:20         ` Ross Zwisler
2018-06-25 19:20           ` Ross Zwisler
2018-05-29 19:51 ` [PATCH v2 5/7] dm: remove DM_TYPE_DAX_BIO_BASED dm_queue_mode Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-06-01 22:04   ` Mike Snitzer
2018-06-01 22:04     ` Mike Snitzer
2018-06-01 22:04     ` Mike Snitzer
2018-06-04 23:24     ` Ross Zwisler
2018-06-04 23:24       ` Ross Zwisler
2018-06-04 23:24       ` Ross Zwisler
2018-06-04 23:49       ` Kani, Toshi
2018-06-04 23:49         ` Kani, Toshi
2018-06-04 23:49         ` Kani, Toshi
2018-06-05  0:46       ` Mike Snitzer
2018-06-05  0:46         ` Mike Snitzer
2018-06-05  0:46         ` Mike Snitzer
2018-06-06 17:24         ` Ross Zwisler
2018-06-06 17:24           ` Ross Zwisler
2018-06-06 17:24           ` Ross Zwisler
2018-06-06 22:29           ` Mike Snitzer
2018-06-06 22:29             ` Mike Snitzer
2018-06-06 22:29             ` Mike Snitzer
2018-05-29 19:51 ` [PATCH v2 6/7] dm-snap: remove unnecessary direct_access() stub Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51 ` [PATCH v2 7/7] dm-error: " Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler
2018-05-29 19:51   ` Ross Zwisler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180603222038.GS10363@dastard \
    --to=david@fromorbit.com \
    --cc=dan.j.williams@intel.com \
    --cc=darrick.wong@oracle.com \
    --cc=dm-devel@redhat.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvdimm@lists.01.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=snitzer@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.