From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Moyer Subject: Re: "Directly mapped persistent memory page cache" Date: Mon, 11 May 2015 10:51:07 -0400 Message-ID: References: <20150507191107.GB22952@gmail.com> <554CBE17.4070904@redhat.com> <20150508140556.GA2185@gmail.com> <21836.51957.715473.780762@quad.stoffel.home> <554CEB5D.90209@redhat.com> <20150509084510.GA10587@gmail.com> <20150511082536.GP4327@dastard> <20150511091836.GA29191@gmail.com> <20150511103802.GA18700@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Cc: "Zuckerman\, Boris" , Dave Chinner , Rik van Riel , Linus Torvalds , John Stoffel , Dave Hansen , Dan Williams , Linux Kernel Mailing List , Boaz Harrosh , Jan Kara , Mike Snitzer , Neil Brown , Benjamin Herrenschmidt , Heiko Carstens , Chris Mason , Paul Mackerras , "H. Peter Anvin" , Christoph Hellwig , Alasdair Kergon , "linux-nvdimm\@lists.01.org" , Mel Gorman , Matthew Wilcox , Ross Zwisler , To: Ingo Molnar Return-path: Received: from mx1.redhat.com ([209.132.183.28]:54241 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751806AbbEKOv6 (ORCPT ); Mon, 11 May 2015 10:51:58 -0400 In-Reply-To: <20150511103802.GA18700@gmail.com> (Ingo Molnar's message of "Mon, 11 May 2015 12:38:02 +0200") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Ingo Molnar writes: >> [...] support for atomicity (to avoid journaling in PM space), etc. > > This too should work fine, by way of the SMP coherency protocol, if > atomic instructions are used on the relevant metadata. This isn't true. Visibility and durability are two very different things. That's what pcommit is all about. Search for it in this document, if you aren't already familiar with it: https://software.intel.com/en-us/intel-architecture-instruction-set-extensions-programming-reference However, in the context of your page structures that are re-initialized every boot, durability doesn't matter. So maybe that's what you were saying? Cheers, Jeff