unikraft / app-nginx

Nginx on Unikraft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nginx stops processing requests on new version of UK

andrejvelichkovski opened this issue · comments

Hello,

While playing around with Nginx on the new version of Unikraft, I noticed that after processing some load it crashes (or stops processing any requests). For example after running a few 10s wrk benchmark, I can no longer make a request with curl to the server. I can ping it sometimes, but sometimes even pinging doesn't work. For comparison, this doesn't happen on the old (v0.10) UK version.

To setup I used the musl/do-nginx script.

Here is a log of some of the benchmarks I run:

andrej@lenovo-linux:~/assessing-scalability/benchmark_cli$ wrk http://172.16.0.2
Running 10s test @ http://172.16.0.2
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.23ms    6.35ms  60.53ms   96.39%
    Req/Sec     4.41k     1.37k    6.49k    68.00%
  87849 requests in 10.00s, 34.94MB read
Requests/sec:   8783.87
Transfer/sec:      3.49MB
andrej@lenovo-linux:~/assessing-scalability/benchmark_cli$ wrk http://172.16.0.2
Running 10s test @ http://172.16.0.2
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.34ms    6.84ms  64.66ms   96.16%
    Req/Sec     4.52k     1.36k    9.51k    66.17%
  90380 requests in 10.10s, 35.94MB read
Requests/sec:   8949.01
Transfer/sec:      3.56MB
andrej@lenovo-linux:~/assessing-scalability/benchmark_cli$ wrk http://172.16.0.2
Running 10s test @ http://172.16.0.2
  2 threads and 10 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.75ms    5.11ms  60.56ms   97.93%
    Req/Sec     4.33k     1.41k    6.39k    63.89%
  31021 requests in 10.01s, 12.34MB read
Requests/sec:   3097.92
Transfer/sec:      1.23MB
andrej@lenovo-linux:~/assessing-scalability/benchmark_cli$ wrk http://172.16.0.2
Running 10s test @ http://172.16.0.2
  2 threads and 10 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 10.02s, 0.00B read
Requests/sec:      0.00
Transfer/sec:       0.00B
andrej@lenovo-linux:~/assessing-scalability/benchmark_cli$ wrk http://172.16.0.2
Running 10s test @ http://172.16.0.2
  2 threads and 10 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 10.02s, 0.00B read
Requests/sec:      0.00
Transfer/sec:       0.00B