Skip to content

wrk test asynch_mode_nginx, no data #74

@tangds1234

Description

@tangds1234

hi~,I want to use asynch_mode_nginx to test qat_sw,the following issues occurred. Can you help me see what the reason is?

install asynch_mode_nginx

./configure --prefix=$NGINX_INSTALL_DIR --with-http_ssl_module --add-dynamic-module=modules/nginx_qat_module --with-cc-opt="-DNGX_SECURE_MEM -I$OPENSSL_LIB/include -Wno-error=deprecated-declarations" --with-ld-opt="-Wl,-rpath=$OPENSSL_LIB/lib -L$OPENSSL_LIB/lib" --without-http_rewrite_module --without-http_gzip_module --with-openssl=/mnt/storage01/QAT/openssl-1.1.1j

make -j40
make install

nginx.conf

user root;
worker_processes 1;
# load_module modules/ngx_ssl_engine_qat_module.so;

events {
	use epoll;
	worker_connections 100000;
	multi_accept on;
	accept_mutex on;
}

# ssl_engine {
# 	use_engine qatengine;
# 	default_algorithms ALL;
# 	qat_engine {
# 		qat_offload_mode async;
# 		qat_notify_mode poll;
# 		qat_poll_mode heuristic;
# 		qat_shutting_down_release off;
# 	}
# }

http {
	server {
		listen 443 ssl reuseport backlog=131072 so_keepalive=off rcvbuf=65536 sndbuf=65536;
		keepalive_timeout 0s;
		ssl_verify_client off;
		ssl_session_tickets off;
		access_log off;
		ssl_asynch on;
		ssl_session_timeout 300s;
		ssl_protocols TLSv1.2;
		ssl_ciphers AES128-SHA;
		ssl_prefer_server_ciphers on;
		ssl_certificate /usr/local/nginx/cert/server.crt;
		ssl_certificate_key /usr/local/nginx/cert/server.key;
		location / {
			root html;
			index index.html index.htm;
		}
	}
}

wrk test

# nginx.conf with ssl_asynch on
./wrk -t 40 -c 10000 -d 30s  https://x.x.x.x:443
Running 30s test @ https://x.x.x.x:443
  40 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     0.00us    0.00us   0.00us    -nan%
    Req/Sec     0.00      0.00     0.00      -nan%
  0 requests in 30.11s, 0.00B read
  Socket errors: connect 3549362, read 0, write 0, timeout 0
Requests/sec:      0.00
Transfer/sec:       0.00B

if i turn off the "ssl_asynch", it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions