Learn about Centmin Mod LEMP Stack today
Become a Member

Master Branch add NGINX_IOURING_PATCH variable support in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 11, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    48,900
    11,189
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,423
    Local Time:
    5:47 PM
    Nginx 1.21.x
    MariaDB 10.x
    add NGINX_IOURING_PATCH variable support in 123.09beta01

    - For Nginx 1.17.0+ and Linux Kernel 5.1 usage only when NGINX_IORURING_PATCH='y' is enabled via persistent config file /etc/centminmod/custom_config.inc setting prior to centmin.sh menu option 4 nginx compiles (disabled by default), apply patch to allow Nginx AIO https://nginx.org/en/docs/http/ngx_http_core_module.html#aio to use Linux Kernel 5.1's new io_uring interface to support more efficient buffered AIO with less system calls https://lwn.net/Articles/776703/ & https://hub.packtpub.com/linux-5-1-out-with-io_uring-io-interface-persistent-memory-new-patching-improvements-and-more-2/
    - Obviously, if you remove/downgrade Linux Kernel from 5.1, need to set NGINX_IORURING_PATCH='n', and recompile Nginx via centmin.sh menu option 4 to remove the patch
    - Once patched in /usr/local/nginx/conf/nginx.conf need to disable sendfiles and enable aio. The centmin.sh menu option 4 routine will attempt to do this automatically so you can verify if the following is set in nginx.conf when NGINX_IORURING_PATCH='y' enabled. When NGINX_IORURING_PATCH='n' set, centmin.sh menu option 4 routine will attempt to remove aio on and turn sendfile on again.

    sendfile off;
    aio on;

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.