From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Van Haaren, Harry" Subject: Re: [PATCH] eal: add function to check if primary proc alive Date: Thu, 21 Jan 2016 09:02:41 +0000 Message-ID: References: <1453296322-1210-1-git-send-email-harry.van.haaren@intel.com> <533710CFB86FA344BFBF2D6802E6028622F1E7EA@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: "dev@dpdk.org" To: "Qiu, Michael" , "david.marchand@6wind.com" Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 161118E59 for ; Thu, 21 Jan 2016 10:02:45 +0100 (CET) In-Reply-To: <533710CFB86FA344BFBF2D6802E6028622F1E7EA@SHSMSX101.ccr.corp.intel.com> Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > From: Qiu, Michael > Sent: Thursday, January 21, 2016 6:14 AM > To: Van Haaren, Harry ; david.marchand@6wind.= com > Cc: dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH] eal: add function to check if primary pro= c alive > > As we could start up many primaries, how does your secondary process > work with them? When a primary process initializes, the location of the config file is impo= rtant. The default is /var/run/.rte_config To run multiple primary processes, the --file-prefix=3D option is used to s= pecific a custom location for the config file. Eg: --file-prefix=3Dtesting = /var/run/.testing_config The rte_eal_check_primary_alive(const char*) function takes a char* paramet= er - this is the location of the config file that the secondary process wil= l wait for. Setting it to the correct value will make this secondary proces= s wait for the corresponding primary process. Regards, -Harry