From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD4BA388C018; Wed, 10 Jun 2020 20:17:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD4BA388C018 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591820226; bh=2pzabCHo0gpS0oiwArEVj2oNtRg3WPeSAOw4JmLg3j8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=g8F4Bwi6KDara/u/uhhKg6Dr0c4SpqLjfAw3IKx3BnTnw1kmZb+cGmsKyNJ6J7m9E tsR0rGAHlGXE2diR5hqW8GTTfnK0g/g4cZIJRIIQ9l4tevSeD9mmZWzmx3P1ALK+Sl tO4KtdYlGCcYpdhDhxsKqGYHyQjoNAkB3+55a15A= From: "qing.zhao at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/95348] GCC records zero functions and modules in the profiling data file, ICC does NOT Date: Wed, 10 Jun 2020 20:17:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: qing.zhao at oracle dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jun 2020 20:17:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95348 --- Comment #31 from Qing Zhao --- > The explanation is not sufficient. You mean the following explanation: (in comment 18) we tried the scheme that all the processes generate profiling feedback data= to the single directory,=20 but looks like a lot of profiling info got lost, resulting bad performance effect.=20 We thought this might relate to the parallel running environment of our application,=20 then we switched to this current approach.=20 Per the documentation of -fprofile-dir=3Dpath at: https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html "When an executable is run in a massive parallel environment, it is recomme= nded to save profile to different folders. That can be done with variables in path that are exported during run-time: %p process ID. %q{VAR} value of environment variable VAR" > You mentioned that merging takes 24 hours, so I would expect that directi= ng > merging will same you quite some time. Yes, that will help. But at the same time, if the profiling feedback size can be reduced, then t= he time for merging will be reduced too.=20 > I'm still missing information like: > - how long does it take the training run? I have asked the question too (I don=E2=80=99t have permission to run that = real app, so I need to collect such info from other engineer), but no answer so far. > - how many parallel runs do you have? Over 10000 processes are running at the same time.=20 > - what's the average duration of a process? I have asked the question too, no answer so far.=