Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753547AbbEKKiM (ORCPT ); Mon, 11 May 2015 06:38:12 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:38590 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752646AbbEKKiI (ORCPT ); Mon, 11 May 2015 06:38:08 -0400 Date: Mon, 11 May 2015 12:38:02 +0200 From: Ingo Molnar To: "Zuckerman, Boris" Cc: 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 , Martin Schwidefsky , Jens Axboe , "Theodore Ts'o" , "Martin K. Petersen" , Julia Lawall , Tejun Heo , linux-fsdevel , Andrew Morton Subject: Re: "Directly mapped persistent memory page cache" Message-ID: <20150511103802.GA18700@gmail.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1554 Lines: 43 * Zuckerman, Boris wrote: > Hi, > > Data transformation (EC, encryption, etc) is commonly done by > storage systems today. [...] That's a strawman argument: if you do encryption/compression in the storage space then you don't need complex struct page descriptors for the storage space: as the resulting content won't be mappable nor DMA-able into from high level APIs... My proposal adds a RAM-integrated usage model for devices that are directly mapped in physical RAM space (such as persistent memory), where integration with high level Linux APIs is possible and desirable. If pmem is used as a front-side cache for a larger storage system behind, then the disk side can still be encrypted/compressed/etc. ( Also note that if the pmem hardware itself adds an encryption pass then actual stored content might still be encrypted. ) > [...] But let's think about other less common existing and PM > specific upcoming features like data sharing between multiple > consumers (computers for example), [...] RDMA should work fine if the pmem hardware exposes it. > [...] 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. Thanks, Ingo -- 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/