Re: [PATCH] eal: add function to check if primary proc alive
From: Van Haaren, Harry <hidden>
Date: 2016-01-21 09:02:45
From: Van Haaren, Harry <hidden>
Date: 2016-01-21 09:02:45
From: Qiu, Michael Sent: Thursday, January 21, 2016 6:14 AM To: Van Haaren, Harry <redacted>; david.marchand@6wind.com Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] eal: add function to check if primary proc alive <snip> 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