From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 560BFA04DB; Thu, 15 Oct 2020 15:53:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3316B1E971; Thu, 15 Oct 2020 15:52:59 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 91C911E96E for ; Thu, 15 Oct 2020 15:52:56 +0200 (CEST) IronPort-SDR: MkJfaIKsLPWqI0Kkz5LAznHE2820ZrSSLZSOMPJG7g0L6zl5sTzoV80IQ1COevoO22EPr6gEMQ BF8nRFboMNqQ== X-IronPort-AV: E=McAfee;i="6000,8403,9774"; a="251044257" X-IronPort-AV: E=Sophos;i="5.77,379,1596524400"; d="scan'208";a="251044257" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2020 06:52:43 -0700 IronPort-SDR: kCU6qKM6AXMFiyRgp/TWTEG9yAYoC5g56nbeLzhAHv/W1PJAjQOdVYb7HIh1gQ6dbtksECz5p6 XDzTZfv7n7cw== X-IronPort-AV: E=Sophos;i="5.77,379,1596524400"; d="scan'208";a="521845834" Received: from aburakov-mobl.ger.corp.intel.com (HELO [10.213.243.220]) ([10.213.243.220]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2020 06:52:42 -0700 To: "Mohakud, Amiya Ranjan" , dpdk-dev References: From: "Burakov, Anatoly" Message-ID: Date: Thu, 15 Oct 2020 14:52:40 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] eal: DPDK: 18.11.6 version rte_eal_init() function cleans the runtime directory in 5.4.35 kernel 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 15-Oct-20 2:26 PM, Mohakud, Amiya Ranjan wrote: > Hi All, > I'm facing one issue with DPDK-18.11.6 in EAL library. Please find the below problem statement. > > Problem Statement: > I have one DPDK application using DPDK version 18.11.6 which works fine in 4.19 version kernel. The rte_eal_init() works fine and eal_clean_runtime_dir() does not remove the files present in dpdk run time directory, /var/run/dpdk/rte/. > The same application when I am trying to run in 5.4.35 kernel, the rte_eal_init() behavior is different. eal_clean_runtime_dir() cleans up dpdk run time directory, as a result the secondary processes fail to come up. Basically the flock system call succeeds , return value is 0 which goes and deletes the files. And in 4.19 kernel the flcok system call fails. > > Note: This is the case with 5.3 kernel version . > I'm not quite sure what the issue is. The runtime dir is *supposed to* be cleared when you're running a primary process, and is not supposed to be cleared when you're running a secondary process. Are you expecting for a *primary* process to not clear the runtime directory? -- Thanks, Anatoly