Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753997AbbDMLMA (ORCPT ); Mon, 13 Apr 2015 07:12:00 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:38801 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753824AbbDMLL6 (ORCPT ); Mon, 13 Apr 2015 07:11:58 -0400 MIME-Version: 1.0 In-Reply-To: <20150413104531.GB30556@gmail.com> References: <20150413093309.GA30219@gmail.com> <20150413093541.GA5147@lst.de> <20150413104531.GB30556@gmail.com> Date: Mon, 13 Apr 2015 14:11:56 +0300 Message-ID: Subject: Re: [Linux-nvdimm] [GIT PULL] PMEM driver for v4.1 From: Yigal Korman To: Ingo Molnar Cc: Christoph Hellwig , linux-nvdimm@ml01.01.org, "linux-kernel@vger.kernel.org" , Matthew Wilcox , Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1835 Lines: 47 On Mon, Apr 13, 2015 at 1:45 PM, Ingo Molnar wrote: > > * Christoph Hellwig wrote: > >> On Mon, Apr 13, 2015 at 11:33:09AM +0200, Ingo Molnar wrote: >> > Limitations: this is a regular block device, and since the pmem areas >> > are not struct page backed, they are invisible to the rest of the >> > system (other than the block IO device), so direct IO to/from pmem >> > areas, direct mmap() or XIP is not possible yet. The page cache will >> > also shadow and double buffer pmem contents, etc. >> >> Unless you use the DAX support in ext2/4 and soon XFS, in which case >> we avoid that double buffering when doing read/write and mmap > > Indeed, I missed that DAX support just went upstream in v4.0 - nice! > > DAX may have some other limitations though that comes from not having > struct page * backing and using VM_MIXEDMAP, the following APIs might > not work on DAX files: > > - splice > - zero copy O_DIRECT into DAX areas. > - futexes > > - ( AFAICS hugetlbs won't work on DAX mmap()s yet - although with > the current nocache mapping that's probable the least of the > performance issues for now. ) mlock() and MAP_POPULATE don't work with DAX files as well. > > Btw., what's the future design plan here? Enable struct page backing, > or provide special codepaths for all DAX uses like the special pte > based approach for mmap()s? > > Thanks, > > Ingo > _______________________________________________ > Linux-nvdimm mailing list > Linux-nvdimm@lists.01.org > https://lists.01.org/mailman/listinfo/linux-nvdimm -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/