From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 626C9A0524; Thu, 4 Feb 2021 12:47:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2BB892407AE; Thu, 4 Feb 2021 12:47:07 +0100 (CET) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by mails.dpdk.org (Postfix) with ESMTP id E31CD2407AD for ; Thu, 4 Feb 2021 12:47:05 +0100 (CET) Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4DWcF51J8Sz15cYx; Thu, 4 Feb 2021 19:45:45 +0800 (CST) Received: from [10.67.103.119] (10.67.103.119) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Thu, 4 Feb 2021 19:47:00 +0800 To: Thomas Monjalon CC: Ferruh Yigit , dev , References: <8270022.kECihOmdav@thomas> From: oulijun Message-ID: <0aacfa1e-2191-c196-ac73-fad99c016aec@huawei.com> Date: Thu, 4 Feb 2021 19:47:01 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <8270022.kECihOmdav@thomas> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.103.119] X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] =?utf-8?q?=E3=80=90Some_Questions_About_Multi-Process?= =?utf-8?q?_Resource_Cleaning=E3=80=91?= X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" ÔÚ 2021/2/4 17:25, Thomas Monjalon дµÀ: > Hi, > > Sorry your questions are quite confused. > Please start explaining what is the problem you are trying to solve. Start the master and slave processes at the same time, and then run the kill -9 command to kill the slave processes. The slave process should call rte_eal_cleanup to release resources. But I find that there is no release from the process, and I think there is a resource leak. > In general, closing a process does not mean removing the device, > because it can be used by other processes. > > > 04/02/2021 07:56, oulijun: >> Hi, Thomas Monjalon&Ferruh Yigit and others >> >> I'm analyzing multiprocess with eal. I have some questions I'd like >> to ask you. >> >> Firstly, After the rte_eal_init() command is executed, the master and >> slave processes are started successfully. >> >> and traffic is continuously sent using the tester.If you run the kill -9 >> command to stop the slave process, restart the re-process, and start >> packet receiving and sending, >> >> how to ensure that the eal resource of the slave process is cleaned up? >> >> Second, how to invoke the remove function to clear probe resources of >> the slave process after the slave process exits? >> >> Finally, I found out why the rte_eal_cleanup call was not unregistered >> mp action after the process exited. >> >> I look forward to your response. >> >> >> Thanks >> >> Lijun Ou >> >> >> > > > > > . >