From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] eal: add function to check if primary proc alive Date: Fri, 22 Jan 2016 09:37:48 -0800 Message-ID: <20160122173747.GB13424@bricha3-MOBL3> 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 Cc: "dev@dpdk.org" To: "Van Haaren, Harry" Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 2CDDA919B for ; Fri, 22 Jan 2016 18:37:51 +0100 (CET) Content-Disposition: inline In-Reply-To: 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" On Thu, Jan 21, 2016 at 09:02:41AM +0000, Van Haaren, Harry wrote: > > 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 proc 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 important. The default is /var/run/.rte_config > > To run multiple primary processes, the --file-prefix= option is used to specific a custom location for the config file. Eg: --file-prefix=testing /var/run/.testing_config > > The rte_eal_check_primary_alive(const char*) function takes a char* parameter - this is the location of the config file that the secondary process will wait for. Setting it to the correct value will make this secondary process wait for the corresponding primary process. > > Regards, -Harry Since a given secondary process only works with a single primary process, I'm not sure why the user should want or need to pass in this parameter. What's the use case for a secondary process wanting to know about a different primary process? The details of what the config file is should largely be hidden from the user IMHO. If you want to allow a secondary to query an arbitrary primary process can you still allow a NULL string to query the default primary based on the passed in file-prefix parameter (if any)? /Bruce