Phil Yang
e4eb7b068e
test/ring: replace sync with atomic builtins
...
'__sync' built-in functions are deprecated, should use the '__atomic'
built-in instead. the sync built-in functions are full barriers, while
atomic built-in functions offer less restrictive one-way barriers,
which help performance.
Here is the example test result on TX2:
sudo ./arm64-armv8a-linuxapp-gcc/app/test -c 0x7fffffe \
-n 4 --socket-mem=1024,0 --file-prefix=~ -- -i
RTE>>ring_perf_autotest
*** ring_perf_autotest without this patch ***
SP/SC bulk enq/dequeue (size: 8): 6.22
MP/MC bulk enq/dequeue (size: 8): 11.50
SP/SC bulk enq/dequeue (size: 32): 1.85
MP/MC bulk enq/dequeue (size: 32): 2.66
*** ring_perf_autotest with this patch ***
SP/SC bulk enq/dequeue (size: 8): 6.13
MP/MC bulk enq/dequeue (size: 8): 9.83
SP/SC bulk enq/dequeue (size: 32): 1.96
MP/MC bulk enq/dequeue (size: 32): 2.30
So for the ring performance test, this patch improved 11% of ring
operations performance.
Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Dharmik Thakkar <dharmik.thakkar@arm.com>
2019-07-08 16:35:55 +02:00
..
2019-02-26 15:29:27 +01:00
2019-07-08 10:57:14 +02:00
2019-07-04 23:44:58 +02:00
2019-07-08 10:57:14 +02:00
2019-06-27 22:33:18 +02:00
2019-04-02 02:36:22 +02:00
2019-07-08 10:57:14 +02:00
2019-07-08 10:57:14 +02:00
2019-06-03 16:54:54 +02:00
2019-05-24 13:34:46 +02:00
2019-03-27 01:09:14 +01:00
2019-02-26 15:29:27 +01:00
2019-03-27 23:10:57 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-06-03 16:54:54 +02:00
2019-06-03 16:54:54 +02:00
2019-03-12 23:01:14 +01:00
2019-02-26 15:29:27 +01:00
2019-05-09 21:58:31 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-04 11:07:05 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-05-24 13:34:45 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-04-04 22:45:54 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-03-28 00:45:00 +01:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:53 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2019-03-22 14:27:46 +01:00
2019-05-09 16:21:57 +02:00
2019-07-05 15:28:14 +02:00
2019-07-05 15:28:14 +02:00
2019-04-02 16:50:24 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2019-04-02 16:50:24 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 15:28:14 +02:00
2019-07-05 15:28:14 +02:00
2019-07-05 15:28:14 +02:00
2019-04-02 16:50:24 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-08 16:35:19 +02:00
2019-07-08 16:35:19 +02:00
2019-07-04 23:49:23 +02:00
2019-03-12 23:01:14 +01:00
2019-02-26 15:29:27 +01:00
2019-06-03 16:54:54 +02:00
2019-03-12 23:01:14 +01:00
2019-07-05 15:03:25 +02:00
2019-05-24 13:34:45 +02:00
2019-05-24 13:34:45 +02:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:53 +02:00
2019-07-03 06:56:29 +02:00
2019-02-26 15:29:27 +01:00
2019-07-06 10:32:34 +02:00
2019-06-03 16:54:54 +02:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:53 +02:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:53 +02:00
2019-04-05 10:40:56 +02:00
2019-07-05 10:45:17 +02:00
2019-06-27 22:34:53 +02:00
2019-06-03 16:54:54 +02:00
2019-03-12 17:31:22 +01:00
2019-07-05 15:28:14 +02:00
2019-03-12 17:31:22 +01:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:32:33 +02:00
2019-06-03 16:54:54 +02:00
2019-05-24 13:34:45 +02:00
2019-06-03 16:54:54 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-06-03 16:54:54 +02:00
2019-06-03 16:54:54 +02:00
2019-07-01 18:37:50 +02:00
2019-06-27 22:34:53 +02:00
2019-07-08 10:57:14 +02:00
2019-02-26 15:29:27 +01:00
2019-06-03 16:54:54 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-03-12 23:01:14 +01:00
2019-07-06 10:32:34 +02:00
2019-04-11 14:27:32 +02:00
2019-02-26 15:29:27 +01:00
2019-03-12 17:31:22 +01:00
2019-03-12 17:31:22 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-06-03 16:54:54 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 10:42:43 +02:00
2019-02-26 15:29:27 +01:00
2019-04-22 22:46:13 +02:00
2019-02-26 15:29:27 +01:00
2019-06-28 15:23:55 +02:00
2019-07-04 09:44:31 +02:00
2019-06-29 14:29:52 +02:00
2019-06-29 14:29:52 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-08 16:35:55 +02:00
2019-02-26 15:29:27 +01:00
2019-06-27 22:34:09 +02:00
2019-06-03 16:54:54 +02:00
2019-06-27 22:34:53 +02:00
2019-03-28 09:18:59 +01:00
2019-06-03 12:30:20 +02:00
2019-06-27 22:34:53 +02:00
2019-02-26 15:29:27 +01:00
2019-06-03 16:54:54 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-06 10:32:34 +02:00
2019-06-03 16:54:54 +02:00
2019-03-28 15:02:10 +01:00
2019-03-12 17:31:22 +01:00
2019-03-28 19:39:13 +01:00
2019-06-27 22:34:53 +02:00
2019-06-27 22:34:53 +02:00
2019-02-26 15:29:27 +01:00
2019-02-26 15:29:27 +01:00
2019-07-05 10:48:55 +02:00
2019-04-22 21:07:59 +02:00
2019-05-24 13:34:45 +02:00
2019-05-24 13:34:45 +02:00