From: "vries at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: dwz@sourceware.org
Subject: [Bug default/27557] Use threading at sub-file level
Date: Wed, 10 Mar 2021 14:31:12 +0000 [thread overview]
Message-ID: <bug-27557-11298-Nk5XyGnEst@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27557-11298@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=27557
--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
Created attachment 13300
--> https://sourceware.org/bugzilla/attachment.cgi?id=13300&action=edit
Demonstrator patch
Uses 4 threads to do checksum_die in parallel. Runs into trouble with
loc_htab/loclists_htab, so uses mutexes to guard accesses to those.
Passes testsuite with -fsanitize=threads.
Results on cc1: same memory usage, 20% more usertime, 8.7% less realtime.
...
real:
series: 5590 5620 5670 5710 5680 5620 5660 5650 6040 5680
mean: 5692.00 (100%)
stddev: 127.26
series: 5130 5180 5160 5140 5230 5170 5140 5600 5110 5100
mean: 5196.00 (91.29%)
stddev: 146.76
user:
series: 5300 5320 5330 5420 5370 5320 5310 5330 5330 5370
mean: 5340.00 (100%)
stddev: 36.21
series: 6460 6420 6440 6450 6530 6430 6420 6460 6430 6360
mean: 6440.00 (120.60%)
stddev: 42.69
sys:
series: 280 290 330 280 300 290 340 310 350 300
mean: 307.00 (100%)
stddev: 24.97
series: 280 350 310 290 310 330 320 340 280 340
mean: 315.00 (102.61%)
stddev: 25.50
mem:
series: 1260412 1260472 1260468 1260352 1260532 1260528 1260592 1260416
1260416 1260352
mean: 1260454.00 (100%)
stddev: 79.29
series: 1260148 1260332 1260144 1260156 1260016 1260012 1260508 1260152
1260120 1260256
mean: 1260184.40 (99.98%)
stddev: 148.57
...
Known problem: When marking inter-CU refs in read_exprloc, we need to ensure
that there's no other thread accessing that DIE. Should not be typical input
though.
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2021-03-10 14:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-10 13:36 [Bug default/27557] New: " vries at gcc dot gnu.org
2021-03-10 14:31 ` vries at gcc dot gnu.org [this message]
2021-03-10 15:11 ` [Bug default/27557] " vries at gcc dot gnu.org
2021-03-12 10:56 ` vries at gcc dot gnu.org
2021-03-12 12:35 ` vries at gcc dot gnu.org
2021-03-12 12:39 ` vries at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-27557-11298-Nk5XyGnEst@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=dwz@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).