Project

General

Profile

Bug #249

Low performance on PCEngines APU2

Added by Baptiste Jonglez about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
06/14/2017
Due date:
% Done:

0%


Description

I benchmarked fastd on a PCEngines APU2, and performance is really low compared to a modern Intel CPU (12x performance loss).

To compare, I used exactly the same setup on both machines:

- Debian stretch, amd64, kernel 4.9.25
- fastd 18-2+b1 + OpenSSL 1.1 patch, built as a Debian package on stretch
- two fastd processes running on local host in "tun" mode (one in a separate netns)
- tunnel MTU: 1440
- unidirectional iperf through the tunnel during 10 seconds

The results are below. What could explain the low performance? It does not seem related to the crypto, maybe the cost of a context switch is higher on the APU2?

| Machine  | Cipher              | Result     |
|----------+---------------------+------------|
| APU2     | salsa2012+umac      | 111 Mbits  |
| APU2     | salsa2012+gmac      | 109 Mbits  |
| APU2     | salsa2012+poly1305  | 110 Mbits  |
| APU2     | salsa20+umac        | 102 Mbits  |
| APU2     | salsa20+gmac        | 105 Mbits  |
| APU2     | salsa20+poly1305    | 103 Mbits  |
| APU2     | aes128-gcm          | 113 Mbits  |
| APU2     | aes128-ctr+umac     | 114 Mbits  |
| APU2     | aes128-ctr+poly1305 | 111 Mbits  |
| APU2     | null+salsa2012+umac | 124 Mbits  |
| APU2     | null+salsa20+umac   | 123 Mbits  |
| APU2     | null                | 152 Mbits  |
| i7-6600U | salsa2012+umac      | 1.22 Gbits |
| i7-6600U | salsa2012+gmac      | 1.26 Gbits |
| i7-6600U | salsa2012+poly1305  | 1.26 Gbits |
| i7-6600U | salsa20+umac        | 1.11 Gbits |
| i7-6600U | salsa20+gmac        | 1.15 Gbits |
| i7-6600U | salsa20+poly1305    | 1.16 Gbits |
| i7-6600U | aes128-gcm          | 1.41 Gbits |
| i7-6600U | aes128-ctr+umac     | 1.40 Gbits |
| i7-6600U | aes128-ctr+poly1305 | 1.38 Gbits |
| i7-6600U | null+salsa2012+umac | 1.50 Gbits |
| i7-6600U | null+salsa20+umac   | 1.47 Gbits |
| i7-6600U | null                | 1.95 Gbits |

Also available in: Atom PDF