From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 21 Jan 2016 01:02:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,324,1449561600"; d="scan'208";a="897956473" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga002.fm.intel.com with ESMTP; 21 Jan 2016 01:02:42 -0800 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 21 Jan 2016 09:02:41 +0000 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.97]) by IRSMSX156.ger.corp.intel.com ([10.108.20.68]) with mapi id 14.03.0248.002; Thu, 21 Jan 2016 09:02:41 +0000 From: "Van Haaren, Harry" To: "Qiu, Michael" , "david.marchand@6wind.com" Thread-Topic: [dpdk-dev] [PATCH] eal: add function to check if primary proc alive Thread-Index: AQHRU4YWhvADP+xDWU6YXyDiXb5ALp8FrD4g 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> In-Reply-To: <533710CFB86FA344BFBF2D6802E6028622F1E7EA@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMDAwZjg2ODItNmUwNy00OGFhLWFkMDAtOTE4YzM4MjYwOWZiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX1BVQkxJQyJ9XX1dfSwiU3ViamVjdExhYmVscyI6W10sIlRNQ1ZlcnNpb24iOiIxNS40LjEwLjE5IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkJCRGpicGhoemFDWUNDeTRwajV2OEx3YVwvN2MwRERtVGxCenhJTXJNZzlBPSJ9 x-ctpclassification: CTP_PUBLIC x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] eal: add function to check if primary proc alive X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2016 09:02:46 -0000 > 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