RE: [External] Re: A question about ndctl namespace

2018-07-09 Thread Huaisheng HS1 Ye
> From: Dan Williams [mailto:dan.j.willi...@intel.com] > Sent: Tuesday, July 10, 2018 9:42 AM > On Mon, Jul 9, 2018 at 6:33 PM, Huaisheng HS1 Ye wrote: > > Hi All, > > > > I want to destroy some redundant namespaces (namespace0.0 and 0.1) from > > my system. > > But it still doesn’t work even I

Re: [kbuild-all] [PATCH v6 2/4] resource: Use list_head to link sibling resource

2018-07-09 Thread Baoquan He
On 07/10/18 at 08:59am, Ye Xiaolong wrote: > Hi, > > On 07/08, Baoquan He wrote: > >Hi, > > > >On 07/05/18 at 01:00am, kbuild test robot wrote: > >> Hi Baoquan, > >> > >> I love your patch! Yet something to improve: > >> > >> [auto build test ERROR on linus/master] > >> [also build test ERROR

Re: A question about ndctl namespace

2018-07-09 Thread Dan Williams
On Mon, Jul 9, 2018 at 6:33 PM, Huaisheng HS1 Ye wrote: > Hi All, > > I want to destroy some redundant namespaces (namespace0.0 and 0.1) from > my system. > But it still doesn’t work even I used ‘destroy-namespace’, the result > of command looks ok, but I still could find them there. How can I

A question about ndctl namespace

2018-07-09 Thread Huaisheng HS1 Ye
Hi All, I want to destroy some redundant namespaces (namespace0.0 and 0.1) from my system. But it still doesn’t work even I used ‘destroy-namespace’, the result of command looks ok, but I still could find them there. How can I remove them so they wouldn't appear in next command 'ndctl list'? My

Re: [kbuild-all] [PATCH v6 2/4] resource: Use list_head to link sibling resource

2018-07-09 Thread Ye Xiaolong
Hi, On 07/08, Baoquan He wrote: >Hi, > >On 07/05/18 at 01:00am, kbuild test robot wrote: >> Hi Baoquan, >> >> I love your patch! Yet something to improve: >> >> [auto build test ERROR on linus/master] >> [also build test ERROR on v4.18-rc3 next-20180704] >> [if your patch is applied to the

Re: [PATCH v2 04/11] nfit/libnvdimm: adding unlock of nvdimm support for Intel DIMMs

2018-07-09 Thread Dan Williams
On Thu, Jul 5, 2018 at 1:22 PM, Dave Jiang wrote: > Adding support to allow query the security status of the Intel nvdimms and > also unlock the dimm via the kernel key management APIs. The passphrase is > expected to be pulled from userspace through keyutils. Moving the Intel > related bits to

Re: [PATCHv2 1/2] libnvdimm: Use max contiguous area for namespace size

2018-07-09 Thread Dan Williams
On Mon, Jul 9, 2018 at 8:44 AM, Keith Busch wrote: > On Fri, Jul 06, 2018 at 03:25:15PM -0700, Dan Williams wrote: >> This is going in the right direction... but still needs to account for >> the blk_overlap. >> >> So, on a given DIMM BLK capacity is allocated from the top of DPA >> space going

Re: [PATCH v3 2/2] ext4: handle layout changes to pinned DAX mappings

2018-07-09 Thread Jan Kara
On Mon 09-07-18 09:23:38, Darrick J. Wong wrote: > On Mon, Jul 09, 2018 at 02:33:47PM +0200, Jan Kara wrote: > > On Thu 05-07-18 10:53:10, Ross Zwisler wrote: > > > On Wed, Jul 04, 2018 at 08:59:52PM -0700, Darrick J. Wong wrote: > > > > On Thu, Jul 05, 2018 at 09:54:14AM +1000, Dave Chinner

Re: [PATCH 00/13] mm: Asynchronous + multithreaded memmap init for ZONE_DEVICE

2018-07-09 Thread Dan Williams
On Mon, Jul 9, 2018 at 5:56 AM, Jan Kara wrote: > On Wed 04-07-18 23:49:02, Dan Williams wrote: >> In order to keep pfn_to_page() a simple offset calculation the 'struct >> page' memmap needs to be mapped and initialized in advance of any usage >> of a page. This poses a problem for large memory

Re: [PATCH v3 2/2] ext4: handle layout changes to pinned DAX mappings

2018-07-09 Thread Darrick J. Wong
On Mon, Jul 09, 2018 at 02:33:47PM +0200, Jan Kara wrote: > On Thu 05-07-18 10:53:10, Ross Zwisler wrote: > > On Wed, Jul 04, 2018 at 08:59:52PM -0700, Darrick J. Wong wrote: > > > On Thu, Jul 05, 2018 at 09:54:14AM +1000, Dave Chinner wrote: > > > > On Wed, Jul 04, 2018 at 02:27:23PM +0200, Jan

Re: [PATCH v3 2/2] ext4: handle layout changes to pinned DAX mappings

2018-07-09 Thread Darrick J. Wong
On Mon, Jul 09, 2018 at 11:59:07AM +0200, Lukas Czerner wrote: > On Fri, Jul 06, 2018 at 09:29:34AM +1000, Dave Chinner wrote: > > On Thu, Jul 05, 2018 at 01:40:17PM -0700, Dan Williams wrote: > > > On Wed, Jul 4, 2018 at 8:59 PM, Darrick J. Wong > > > wrote: > > > > On Thu, Jul 05, 2018 at

Re: [PATCHv2 1/2] libnvdimm: Use max contiguous area for namespace size

2018-07-09 Thread Keith Busch
On Fri, Jul 06, 2018 at 03:25:15PM -0700, Dan Williams wrote: > This is going in the right direction... but still needs to account for > the blk_overlap. > > So, on a given DIMM BLK capacity is allocated from the top of DPA > space going down and PMEM capacity is allocated from the bottom of the

Re: [ndctl PATCH v3] ndctl, test: add a new unit test for monitor

2018-07-09 Thread Dan Williams
On Mon, Jul 9, 2018 at 4:38 AM, Qi, Fuli wrote: > Hi Dan, > Thanks for your comments. > >> -Original Message- >> From: Dan Williams [mailto:dan.j.willi...@intel.com] >> Sent: Sunday, July 8, 2018 3:56 AM >> To: Qi, Fuli/斉 福利 >> Cc: linux-nvdimm >> Subject: Re: [ndctl PATCH v3] ndctl,

[ndctl PATCH v10 1/4] ndctl, monitor: add a new command - monitor

2018-07-09 Thread QI Fuli
Ndctl monitor is used for monitoring the smart events of nvdimm DIMMs. When a smart event fires, monitor will output the notifications which include dimm health status and event informations to syslog or a logfile by setting [--logfile] option. The notifications follow json format and can be

[ndctl PATCH v10 3/4] ndctl, monitor: add the unit file of systemd for ndctl-monitor service

2018-07-09 Thread QI Fuli
This patch adds the systemd unit file for ndctl-monitor service. The systemd unit directory can be configured by setting environment variable "--with-systemd-unit-dir[=DIR]". A monitor daemon can be started as a system service: # systemctl start ndctl-monitor.service Signed-off-by: QI Fuli

[ndctl PATCH v10 2/4] ndctl, monitor: add main ndctl monitor configuration file

2018-07-09 Thread QI Fuli
This patch adds the main configuration file(/etc/ndctl/monitor.conf) of ndctl monitor. It contains the configuration directives that give ndctl monitor instructions. Users can change the configuration by editing this file or using [--config-file] option to override this file. The changed value

[ndctl PATCH v10 4/4] ndctl, documentation: add manpage for monitor

2018-07-09 Thread QI Fuli
This patch is used to add manpage for ndctl monitor command. Signed-off-by: QI Fuli --- Documentation/ndctl/Makefile.am | 3 +- Documentation/ndctl/ndctl-monitor.txt | 96 +++ 2 files changed, 98 insertions(+), 1 deletion(-) create mode 100644

[ndctl PATCH v10 0/4] ndctl, monitor: add ndctl monitor daemon

2018-07-09 Thread QI Fuli
This is the v10 patch for ndctl monitor, a tiny daemon to monitor the smart events of nvdimm DIMMs. Since NVDIMM does not have a feature like mirroring, if it breaks down, the data will be impossible to restore. Ndctl monitor daemon will catch the smart events notify from firmware and outputs

Re: [PATCH 00/13] mm: Asynchronous + multithreaded memmap init for ZONE_DEVICE

2018-07-09 Thread Jan Kara
On Wed 04-07-18 23:49:02, Dan Williams wrote: > In order to keep pfn_to_page() a simple offset calculation the 'struct > page' memmap needs to be mapped and initialized in advance of any usage > of a page. This poses a problem for large memory systems as it delays > full availability of memory

Re: [PATCH 3/3] kvm: add a function to check if page is from NVDIMM pmem.

2018-07-09 Thread Jan Kara
On Thu 05-07-18 21:19:30, Zhang,Yi wrote: > > > On 2018年07月04日 23:25, Paolo Bonzini wrote: > > On 04/07/2018 17:30, Zhang Yi wrote: > >> For device specific memory space, when we move these area of pfn to > >> memory zone, we will set the page reserved flag at that time, some of > >> these

Re: [PATCH v3 2/2] ext4: handle layout changes to pinned DAX mappings

2018-07-09 Thread Jan Kara
On Thu 05-07-18 10:53:10, Ross Zwisler wrote: > On Wed, Jul 04, 2018 at 08:59:52PM -0700, Darrick J. Wong wrote: > > On Thu, Jul 05, 2018 at 09:54:14AM +1000, Dave Chinner wrote: > > > On Wed, Jul 04, 2018 at 02:27:23PM +0200, Jan Kara wrote: > > > > On Wed 04-07-18 10:49:23, Dave Chinner wrote: >

RE: [ndctl PATCH v3] ndctl, test: add a new unit test for monitor

2018-07-09 Thread Qi, Fuli
Hi Dan, Thanks for your comments. > -Original Message- > From: Dan Williams [mailto:dan.j.willi...@intel.com] > Sent: Sunday, July 8, 2018 3:56 AM > To: Qi, Fuli/斉 福利 > Cc: linux-nvdimm > Subject: Re: [ndctl PATCH v3] ndctl, test: add a new unit test for monitor > > On Fri, Jul 6, 2018

Re: [PATCH v3 2/2] ext4: handle layout changes to pinned DAX mappings

2018-07-09 Thread Lukas Czerner
On Fri, Jul 06, 2018 at 09:29:34AM +1000, Dave Chinner wrote: > On Thu, Jul 05, 2018 at 01:40:17PM -0700, Dan Williams wrote: > > On Wed, Jul 4, 2018 at 8:59 PM, Darrick J. Wong > > wrote: > > > On Thu, Jul 05, 2018 at 09:54:14AM +1000, Dave Chinner wrote: > > >> On Wed, Jul 04, 2018 at

RE: [PATCH v9 1/3] ndctl, monitor: add ndctl monitor

2018-07-09 Thread Qi, Fuli
> -Original Message- > From: Dan Williams [mailto:dan.j.willi...@intel.com] > Sent: Monday, July 9, 2018 3:27 PM > To: Qi, Fuli/斉 福利 > Cc: linux-nvdimm > Subject: Re: [PATCH v9 1/3] ndctl, monitor: add ndctl monitor > > On Sun, Jul 8, 2018 at 11:22 PM, Qi, Fuli wrote: > >>

Re: [PATCH v9 1/3] ndctl, monitor: add ndctl monitor

2018-07-09 Thread Dan Williams
On Sun, Jul 8, 2018 at 11:22 PM, Qi, Fuli wrote: >> -Original Message- >> From: Dan Williams [mailto:dan.j.willi...@intel.com] >> Sent: Monday, July 9, 2018 3:04 PM >> To: Qi, Fuli/斉 福利 >> Cc: linux-nvdimm >> Subject: Re: [PATCH v9 1/3] ndctl, monitor: add ndctl monitor >> >> On Sun,

RE: [PATCH v9 1/3] ndctl, monitor: add ndctl monitor

2018-07-09 Thread Qi, Fuli
> -Original Message- > From: Dan Williams [mailto:dan.j.willi...@intel.com] > Sent: Monday, July 9, 2018 3:04 PM > To: Qi, Fuli/斉 福利 > Cc: linux-nvdimm > Subject: Re: [PATCH v9 1/3] ndctl, monitor: add ndctl monitor > > On Sun, Jul 8, 2018 at 9:59 PM, Qi, Fuli wrote: > >> -Original

Re: [PATCH v9 1/3] ndctl, monitor: add ndctl monitor

2018-07-09 Thread Dan Williams
On Sun, Jul 8, 2018 at 9:59 PM, Qi, Fuli wrote: >> -Original Message- >> From: Dan Williams [mailto:dan.j.willi...@intel.com] >> Sent: Sunday, July 8, 2018 5:06 AM >> To: Qi, Fuli/斉 福利 >> Cc: linux-nvdimm >> Subject: Re: [PATCH v9 1/3] ndctl, monitor: add ndctl monitor >> >> On Thu, Jun