Re: Data race in PGO profile collection for multi-process program

2015-06-01 Thread Pengfei Yuan
Thank you very much for the advice. I will try __gcov_dump first. Yuan 2015-06-02 12:14 GMT+08:00 Xinliang David Li : > Using AutoFDO is one way. For PGO, you may want to to try using > __gcov_dump interface to explicitly control the timing and order of > the profile dump --- i.e., invoke __gcov_

Re: Data race in PGO profile collection for multi-process program

2015-06-01 Thread Xinliang David Li
Using AutoFDO is one way. For PGO, you may want to to try using __gcov_dump interface to explicitly control the timing and order of the profile dump --- i.e., invoke __gcov_dump in main process after work processes exit and before the main process exits. David On Mon, Jun 1, 2015 at 8:08 PM, Peng

Data race in PGO profile collection for multi-process program

2015-06-01 Thread Pengfei Yuan
Hi, I am trying PGO on Nginx, which has a main process and several worker processes. I find that the collected profile data files only contain information for the main process, which is probably a data race (the main process exits immediately after worker processes exit). How can I solve this prob