From: Paul Zimmermann <Paul.Zimmermann@inria.fr>
To: DJ Delorie <dj@redhat.com>
Cc: libc-alpha@sourceware.org
Subject: Re: [v2] New benchtest: pthread locks
Date: Mon, 12 Oct 2020 09:05:32 +0200 [thread overview]
Message-ID: <mwimbf53gj.fsf@tomate.loria.fr> (raw)
In-Reply-To: <xnblha68gd.fsf@greed.delorie.com> (message from DJ Delorie via Libc-alpha on Fri, 09 Oct 2020 23:55:30 -0400)
Hi DJ,
here is what I find on my processor (Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz)
with your patch (note that it was under heavy load). Does it look ok?
Best regards,
Paul
"pthread_locks": {
"mutex": {
"empty": {
"duration": 1.29659e+08,
"iterations": 1e+06,
"wall_sec": 0.0393829,
"mean": 103.086,
"stdev": 18.8037,
"min_outlier": 91.389,
"min": 91.396,
"max": 130.909,
"max_outlier": 130.91
},
"filler": {
"duration": 1.81231e+08,
"iterations": 1e+06,
"wall_sec": 0.055047,
"mean": 173.598,
"stdev": 12.8244,
"min_outlier": 166.75,
"min": 166.751,
"max": 206.287,
"max_outlier": 208.943
}
},
"mutex_trylock": {
"empty": {
"duration": 8.00459e+07,
"iterations": 1e+06,
"wall_sec": 0.0243139,
"mean": 54.1088,
"stdev": 19.6554,
"min_outlier": 27.3545,
"min": 27.3548,
"max": 80.0422,
"max_outlier": 80.0459
},
"filler": {
"duration": 1.43876e+08,
"iterations": 1e+06,
"wall_sec": 0.0437009,
"mean": 134.758,
"stdev": 16.2904,
"min_outlier": 104.209,
"min": 104.217,
"max": 143.958,
"max_outlier": 144.563
}
},
"rwlock_read": {
"empty": {
"duration": 1.38636e+08,
"iterations": 1e+06,
"wall_sec": 0.0421081,
"mean": 121.985,
"stdev": 15.337,
"min_outlier": 93.4482,
"min": 99.1126,
"max": 138.636,
"max_outlier": 151.863
},
"filler": {
"duration": 2.11036e+08,
"iterations": 1e+06,
"wall_sec": 0.0641,
"mean": 186.195,
"stdev": 25.7311,
"min_outlier": 156.256,
"min": 157.995,
"max": 223.986,
"max_outlier": 227.361
}
},
"rwlock_tryread": {
"empty": {
"duration": 8.48573e+06,
"iterations": 1e+06,
"wall_sec": 0.00257683,
"mean": 12.4413,
"stdev": 12.496,
"min_outlier": 8.48572,
"min": 8.48573,
"max": 48.0057,
"max_outlier": 48.0071
},
"filler": {
"duration": 6.14027e+07,
"iterations": 100000,
"wall_sec": 0.0186498,
"mean": 99.9205,
"stdev": 124.966,
"min_outlier": 60.3437,
"min": 60.3437,
"max": 455.579,
"max_outlier": 614.027
}
},
"rwlock_write": {
"empty": {
"duration": 4.82128e+07,
"iterations": 100000,
"wall_sec": 0.0146441,
"mean": 179.078,
"stdev": 164.916,
"min_outlier": 86.77,
"min": 86.7724,
"max": 482.109,
"max_outlier": 482.128
},
"filler": {
"duration": 2.29868e+08,
"iterations": 1e+06,
"wall_sec": 0.0698202,
"mean": 222.557,
"stdev": 12.5448,
"min_outlier": 190.339,
"min": 190.977,
"max": 229.963,
"max_outlier": 243.063
}
},
"rwlock_trywrite": {
"empty": {
"duration": 4.70629e+07,
"iterations": 1e+06,
"wall_sec": 0.0142951,
"mean": 15.4493,
"stdev": 16.6618,
"min_outlier": 7.54287,
"min": 7.54287,
"max": 47.0629,
"max_outlier": 47.063
},
"filler": {
"duration": 1.0035e+08,
"iterations": 1e+06,
"wall_sec": 0.0304809,
"mean": 116.491,
"stdev": 23.9815,
"min_outlier": 97.7879,
"min": 97.9946,
"max": 158.148,
"max_outlier": 169.458
}
},
"spin_lock": {
"empty": {
"duration": 2.26345e+07,
"iterations": 1e+06,
"wall_sec": 0.00687504,
"mean": 42.3982,
"stdev": 20.8246,
"min_outlier": 22.6345,
"min": 22.6348,
"max": 62.1574,
"max_outlier": 75.329
},
"filler": {
"duration": 1.43121e+08,
"iterations": 1e+06,
"wall_sec": 0.0434711,
"mean": 130.691,
"stdev": 20.6261,
"min_outlier": 103.234,
"min": 103.728,
"max": 158.001,
"max_outlier": 160.629
}
},
"spin_trylock": {
"empty": {
"duration": 6.40642e+07,
"iterations": 1e+06,
"wall_sec": 0.019459,
"mean": 49.7264,
"stdev": 18.2296,
"min_outlier": 24.52,
"min": 24.5262,
"max": 64.0642,
"max_outlier": 77.2103
},
"filler": {
"duration": 9.69735e+07,
"iterations": 1e+06,
"wall_sec": 0.029454,
"mean": 110.624,
"stdev": 18.102,
"min_outlier": 92.2759,
"min": 96.6148,
"max": 136.139,
"max_outlier": 136.344
}
},
"sem_wait": {
"empty": {
"duration": 1.40348e+08,
"iterations": 1e+06,
"wall_sec": 0.042629,
"mean": 124.395,
"stdev": 16.9173,
"min_outlier": 100.823,
"min": 100.825,
"max": 140.354,
"max_outlier": 172.701
},
"filler": {
"duration": 2.09171e+08,
"iterations": 1e+06,
"wall_sec": 0.0635331,
"mean": 177.185,
"stdev": 19.1812,
"min_outlier": 145.352,
"min": 155.315,
"max": 209.171,
"max_outlier": 220.138
}
},
"sem_trywait": {
"empty": {
"duration": 4.02749e+07,
"iterations": 100000,
"wall_sec": 0.012233,
"mean": 7.54332,
"stdev": 0.000211187,
"min_outlier": 7.54305,
"min": 7.54305,
"max": 7.54359,
"max_outlier": 402.749
},
"filler": {
"duration": 1.00351e+08,
"iterations": 1e+06,
"wall_sec": 0.0304799,
"mean": 123.021,
"stdev": 19.3645,
"min_outlier": 99.7954,
"min": 100.351,
"max": 139.863,
"max_outlier": 139.869
}
},
"condvar": {
"empty": {
"duration": 5.1244e+07,
"iterations": 1000,
"wall_sec": 0.015655,
"mean": 45379.1,
"stdev": 5285.79,
"min_outlier": 18260.9,
"min": 31450.7,
"max": 51244,
"max_outlier": 57756.6
},
"filler": {
"duration": 4.73658e+07,
"iterations": 1000,
"wall_sec": 0.0144019,
"mean": 40550.8,
"stdev": 10623.3,
"min_outlier": 18126,
"min": 18233.3,
"max": 52647.8,
"max_outlier": 57678.7
}
},
"consumer_producer": {
"empty": {
"duration": 8.02147e+07,
"iterations": 1000,
"wall_sec": 0.0243819,
"mean": 77217.4,
"stdev": 25019.9,
"min_outlier": 51949,
"min": 52390.9,
"max": 115883,
"max_outlier": 118116
},
"filler": {
"duration": 9.22739e+07,
"iterations": 1000,
"wall_sec": 0.028044,
"mean": 82932,
"stdev": 23952.2,
"min_outlier": 52421.7,
"min": 54514.3,
"max": 112212,
"max_outlier": 115371
}
}
},
next prev parent reply other threads:[~2020-10-12 7:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-08 5:34 New benchtest: pthread locks DJ Delorie via Libc-alpha
2020-10-10 3:55 ` [v2] " DJ Delorie via Libc-alpha
2020-10-12 7:05 ` Paul Zimmermann [this message]
2020-10-12 17:33 ` DJ Delorie via Libc-alpha
2020-10-13 8:25 ` Paul Zimmermann
2020-10-14 1:27 ` Siddhesh Poyarekar
2020-10-14 1:32 ` DJ Delorie via Libc-alpha
2020-10-21 15:18 ` DJ Delorie via Libc-alpha
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
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mwimbf53gj.fsf@tomate.loria.fr \
--to=paul.zimmermann@inria.fr \
--cc=dj@redhat.com \
--cc=libc-alpha@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).