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 9213FA00E6 for ; Tue, 9 Jul 2019 11:58:21 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 434591B959; Tue, 9 Jul 2019 11:58:20 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 54AD61B958 for ; Tue, 9 Jul 2019 11:58:18 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Jul 2019 02:58:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,470,1557212400"; d="scan'208";a="165719994" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.237.220.82]) ([10.237.220.82]) by fmsmga008.fm.intel.com with ESMTP; 09 Jul 2019 02:58:15 -0700 To: "Shubhachint, Chaitanya" , "dev@dpdk.org" References: From: "Burakov, Anatoly" Message-ID: <9e415b49-9b4a-05f1-23ea-1cd2ddb60c41@intel.com> Date: Tue, 9 Jul 2019 10:58:15 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] /run/dpdk cleanup 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 08-Jul-19 4:00 PM, Shubhachint, Chaitanya wrote: > Hello, > > I run my dpdk applications with "file-prefix" option, so I can run them concurrently. I see that it creates a runtime directory under /var/run/dpdk. This directory still persists after the application has terminated. The code calls rte_eal_cleanup before exiting but that doesn't seem to remove the directory and its content. In my setup I have to consistently bring my applications up, run then for short period and terminate them, each application run picks a new file-prefix, thus creating new directory under /var/run/dpdk. After enough number of runs the tempfs partition fills up and results into rte_eal_init failure. > Is there a cleanup routine or sequence I need to implement to unlink this directory? Your help is appreciated. > > Chaitanya. > This is a natural consequence of how our multiprocessing works. Running a secondary process *after* primary has already exited is a supported use-case (meaning, primary won't clean up *everything* after itself - only things that are not shared), and secondary processes may be running as well (meaning, we cannot remove shared data because it may be used by other processes). I don't think it's possible to do this from within DPDK. Of course, you could always use --in-memory mode if you don't use secondary processes. -- Thanks, Anatoly