Hi Emeric,
Sorry for my delayed reply.
On 03/28/2017 01:47 AM, Emeric Brun wrote:
This is an atom C2518 and it seems that --disable-prf has cut the performance
in half. We should receive a 8920 soon.
Stopping the injection, the haproxy process continue to steal cpu doing nothing
(top shows ~50% of one core, mainly in user):
Hmm, an idle haproxy process with qat enabled consumes about 5% of a core in
my test. 50% is too much:-(.
In theory it should not consume anything anymore if it has nothing to do,
so maybe the 5% you observed will help understand what is happening.
I've just noticed 50% cpu usage directly at start-up if we enable the engine (w
or wout ssl-async):
global
tune.ssl.default-dh-param 2048
ssl-engine qat
# ssl-async
listen gg
mode http
bind 0.0.0.0:9443 ssl crt /root/2048.pem ciphers AES
redirect location
Somehow I cannot reproduce the cpu usage issue using the above config.
In my test with the above config, when haproxy is idle, pidstat shows 4%
cpu usage
11:49:14 PM 359247 3.33 1.33 0.00 4.67 1 haproxy_nodebug
11:49:17 PM 359247 3.33 1.33 0.00 4.67 1 haproxy_nodebug
11:49:20 PM 359247 2.67 1.33 0.00 4.00 1 haproxy_nodebug
When it is under load test the cpu usage jumps to 100%(single process mode):
11:51:26 PM 359247 85.67 21.67 0.00 107.33 8 haproxy_nodebug
I am not sure whether it is the different hardware(c2000 vs. 895X), or
some difference in software. Just something to check:
* your kernel version (I tested with 4.4/4.7/4.9 without problem
though), and qat driver version?
* openssl version (1.1.0b-e?)
* are you using the latest QAT_ENGINE https://github.com/01org/QAT_Engine
* I assume you use qat_contig_mem kernel module?
* are you using the following config file for your c2000 card?
https://github.com/01org/QAT_Engine/blob/master/qat/config/c2xxx/multi_process_optimized/c2xxx_qa_dev0.conf
Thanks,
Grant