From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 05FFD2117D741 for ; Tue, 23 Oct 2018 11:16:52 -0700 (PDT) Subject: Re: [PATCH 0/9] Allow persistent memory to be used like normal RAM References: <20181022201317.8558C1D8@viggo.jf.intel.com> From: Dave Hansen Message-ID: <2677a7f9-5dc8-7590-2b8b-a67da1cb6b92@intel.com> Date: Tue, 23 Oct 2018 11:16:52 -0700 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: "Elliott, Robert (Persistent Memory)" , 'Dan Williams' , Dave Hansen Cc: Tom Lendacky , "Hocko, Michal" , linux-nvdimm , "zwisler@kernel.org" , Linux Kernel Mailing List , Linux MM , "Huang, Ying" , Andrew Morton , Fengguang Wu List-ID: >> This series adds a new "driver" to which pmem devices can be >> attached. Once attached, the memory "owned" by the device is >> hot-added to the kernel and managed like any other memory. On > > Would this memory be considered volatile (with the driver initializing > it to zeros), or persistent (contents are presented unchanged, > applications may guarantee persistence by using cache flush > instructions, fence instructions, and writing to flush hint addresses > per the persistent memory programming model)? Volatile. >> I expect udev can automate this by setting up a rule to watch for >> device-dax instances by UUID and call a script to do the detach / >> reattach dance. > > Where would that rule be stored? Storing it on another device > is problematic. If that rule is lost, it could confuse other > drivers trying to grab device DAX devices for use as persistent > memory. Well, we do lots of things like stable device naming from udev scripts. We depend on them not being lost. At least this "fails safe" so we'll default to persistence instead of defaulting to "eat your data". _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm