This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2][malloc] Use relaxed atomics for malloc have_fastchunks
- From: DJ Delorie <dj at redhat dot com>
- To: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- Cc: libc-alpha at sourceware dot org, nd at arm dot com
- Date: Thu, 21 Sep 2017 18:17:05 -0400
- Subject: Re: [PATCH v2][malloc] Use relaxed atomics for malloc have_fastchunks
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=dj at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EA3087D0C9
Results of benchmarks... Note that dj2 is a synthetic test, so the
slowdown is not surprising, and that all tests are averages of 16 runs
except git-cinnabar-helper which is only two pristine and one patched
(it takes 20 minutes per run and I got impatient ;). Values are cycles,
lower is better.
Workload Pristine Patched
389ds 9,121,687,695 8,017,021,813 87.89%
dj2 7,901,004,232 8,277,784,940 104.77%
git-cinnabar-helper 100,123,244,269 90,058,896,622 89.95%
okular-1 3,648,656,309 3,220,751,900 88.27%
oocalc 1,053,984,703 1,009,859,213 95.81%
qemu-virtio 781,260,028 766,458,246 98.11%
qemu-win7 655,497,193 626,270,566 95.54%
proprietary-2 2,112,159,165 1,977,684,058 93.63%
Mean 94.25%
Patch looks good to me otherwise, caveat any futher complaints about
concurrency ;-)