From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0B3BB3A07021; Mon, 12 Apr 2021 08:22:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B3BB3A07021 From: "vries at gcc dot gnu.org" To: dwz@sourceware.org Subject: [Bug default/25951] support for parallel processing? Date: Mon, 12 Apr 2021 08:22:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 08:22:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25951 --- Comment #7 from Tom de Vries --- Created attachment 13362 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13362&action=3Ded= it Demonstator source file using seperate reaper/coordinator (In reply to Tom de Vries from comment #6) > Now -j works for multifile as well, provided -e and -p are used. For the last step, to make multifile work with -j without -e/-p, the communication scheme needs to be more elaborate. The parent needs to both: - reap the children - communicate with the children about the multifile It cannot do both tasks in blocking fashion. It could do them in a non-bloc= king fashion, but then you have busy wait, which is bad. The solution I came up with is to have the parent spawn a seperate process,= the coordinator. Then the job of the parent is to reap children. The job of the coordinator is to communicate with the children about the multifile: the children request permission to contribute to the multifile, = with a certain type endian/pointer-size. The coordinator replies back whether a= nd when that's ok. When the parent reaps a child, it notifies the coordinator to ensure that t= he coordinator is not stuck on waiting for a request from that child. --=20 You are receiving this mail because: You are on the CC list for the bug.=