From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754145AbcAVOjH (ORCPT ); Fri, 22 Jan 2016 09:39:07 -0500 Received: from mga02.intel.com ([134.134.136.20]:49996 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753608AbcAVOjD (ORCPT ); Fri, 22 Jan 2016 09:39:03 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,331,1449561600"; d="scan'208";a="866212964" Date: Fri, 22 Jan 2016 09:39:00 -0500 From: Matthew Wilcox To: Chris Brandt Cc: "Wilcox, Matthew R" , Jared Hulbert , Linux FS Devel , LKML , Linux Memory Management List , Andrew Morton , Carsten Otte Subject: Re: [PATCH v12 10/20] dax: Replace XIP documentation with DAX documentation Message-ID: <20160122143900.GE2948@linux.intel.com> References: <1414185652-28663-1-git-send-email-matthew.r.wilcox@intel.com> <1414185652-28663-11-git-send-email-matthew.r.wilcox@intel.com> <100D68C7BA14664A8938383216E40DE0421657C5@fmsmsx111.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 22, 2016 at 01:48:08PM +0000, Chris Brandt wrote: > I believe the motivation for the new DAX code was being able to > read/write data directly to specific physical memory. However, with > the AXFS file system, XIP file mapping was mostly beneficial for direct > access to executable code pages, not data. Code pages were XIP-ed, and > data pages were copied to RAM as normal. This results in a significant > reduction in system RAM, especially when used with an XIP_KERNEL. In > some systems, most of your RAM is eaten up by lots of code pages from > big bloated shared libraries, not R/W data. (of course I'm talking about > smaller embedded system here) OK, I can't construct a failure case for read-only usages. If you want to put together a patch-set that re-enables DAX in a read-only way on those architectures, I'm fine with that. I think your time would be better spent fixing the read-write problems; once we see persistent memory on the embedded platforms, we'll need that code anyway.