Skip to content

Nginx performance is poor and unstable #77

@ThestralWarrior

Description

@ThestralWarrior

Describe the bug

On building and running Nginx with Unikraft 0.19.0 and stress testing with wrk, a significant drop in performance is noted each time wrk is repeated on the same running instance of Nginx + Unikraft 0.19.0 when using buddy allocator, regardless of whether ukvmem is enabled or not. Eventually the performance stabilizes but the throughput is lower than it should be.

Steps to reproduce

  1. Clone catalog-core
    git clone http://github.com/unikraft/catalog-core.git
  2. Follow the instructions to build the Nginx unikernel image
  3. Run the Nginx unikernel image using the instructions by passing 512MB-1GB of memory and -enable-kvm for x86-64
  4. Open a separate terminal and run the following wrk commandwrk -t 14 -d1m -c 30 http://172.44.0.2/index.html
  5. Repeat the wrk command and observe the fluctuations in throughput

Expected behavior

Consistent and high throughput.

Which architectures were you using or does this bug affect?

x86-64/AArch64

Which platforms were you using or does this bug affect?

QEMU/KVM

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