From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 21E6523B for ; Wed, 23 May 2018 10:40:51 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 May 2018 01:40:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,432,1520924400"; d="scan'208";a="57728681" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.237.220.101]) ([10.237.220.101]) by fmsmga001.fm.intel.com with ESMTP; 23 May 2018 01:40:47 -0700 To: Thomas Monjalon Cc: dev@dpdk.org References: <80aff8bc0255cdab2331dcb0b21219d50f154937.1527006762.git.anatoly.burakov@intel.com> <1778895.HHJToTI6Sl@xps> From: "Burakov, Anatoly" Message-ID: Date: Wed, 23 May 2018 09:40:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1778895.HHJToTI6Sl@xps> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] fbarray: support no-shconf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 08:40:52 -0000 On 22-May-18 9:38 PM, Thomas Monjalon wrote: > 22/05/2018 18:35, Anatoly Burakov: >> When using --no-shconf option, the expectation is that no multiprocess >> will be supported as no shared files are created. However, fbarray >> still creates some shared files that prevent multiple processes with >> the same prefix from starting. >> >> Fix this by avoiding creating shared files whenever noshconf option is >> specified. Since virtual areas we get from eal_get_virtual_area() are >> read-only, remap them as writable. >> >> Signed-off-by: Anatoly Burakov >> --- >> >> Notes: >> Without this patch, EAL flags autotest will fail when attempting >> to run a test with the same prefix as primary, and --no-shconf >> specified. >> >> Technically, we never spelled out any guarantees about --no-shconf >> mode, and we've been sloppy about it, so even though we don't create >> the shared config, we still create lots of other miscelaneous files. >> This patch only fixes issue with fbarray, as this affects intialization >> of different primaries with the same prefix (fbarrays are shared too), >> but does not address the other instances where we create "shared" files >> such as hugepage info. > > Just for confirmation: this patch won't be integrated in 18.05. > OK, no objection to that. I'll work on an expanded version for 18.08 fixing all the inconsistencies then. -- Thanks, Anatoly