Learn about Centmin Mod LEMP Stack today
Register Now

Beta Branch add NGINX_IOURING_PATCH variable support in 123.09beta01

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

  1. BamaStangGuy

    BamaStangGuy Active Member

    656
    189
    43
    May 25, 2014
    Ratings:
    +264
    Local Time:
    5:44 PM
    I am seeing the same.

    Code:
    2019/09/02 13:50:06 [crit] 20515#20515: *59091 aio read "/home/nginx/domains/bamapolitics.com/public/wp-content/uploads/2019/01/Prichard-AL-150x150.jpg" failed (14: Bad address) while sending response to client, client: 68.35.162.46, server: www.bamapolitics.com, request: "GET /wp-content/uploads/2019/01/Prichard-AL-150x150.jpg HTTP/1.1", host: "www.bamapolitics.com", referrer: "https://www.bamapolitics.com/alabama/counties/mobile-county/"
    

     
  2. eva2000

    eva2000 Administrator Staff Member

    46,238
    10,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,293
    Local Time:
    9:44 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yeah seems patch isn't 100% ready yet then, hence why it's disabled by default. So for now just disable it again and recompile nginx via centmin.sh menu option 4

    @BamaStangGuy @upgrade81 what's output for this command on your servers
    Code (Text):
    ulimit -l

    and
    Code (Text):
    ps -ef | awk '/nginx: worker/' | grep -v awk | awk '{print $2}' | while read p; do echo; prlimit --pid $p -l; done
     
  3. eva2000

    eva2000 Administrator Staff Member

    46,238
    10,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,293
    Local Time:
    9:44 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    FYI, typo variable is not NGINX_IORURING_PATCH='y' but NGINX_IOURING_PATCH='y'

    eventually will do that when I get the time, hence why it's disabled by default for now

    @BamaStangGuy @upgrade81 I just updated 123.09beta01 with possible workaround Beta Branch - update NGINX_IOURING_PATCH routine in 123.09beta01 for non-openvz servers.
     
  4. steph40

    steph40 Member

    80
    15
    8
    Jan 28, 2019
    Ratings:
    +32
    Local Time:
    6:44 PM
    1.1.5
    mariadb 10
    Yep noticed that after a while, should have check my spelling first.
     
  5. eva2000

    eva2000 Administrator Staff Member

    46,238
    10,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,293
    Local Time:
    9:44 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yeah i think at one point i did post that typo'd version but corrected it in a post. Maybe you copy and pasted that :)
     
  6. upgrade81

    upgrade81 Premium Member Premium Member

    268
    16
    18
    Sep 5, 2016
    CH
    Ratings:
    +27
    Local Time:
    12:44 AM
    1.17
    10.3
    ulimit = 23789568

    and

    Code (Text):
    RESOURCE DESCRIPTION                         SOFT  HARD UNITS
    MEMLOCK  max locked-in-memory address space 65536 65536 bytes
    
    RESOURCE DESCRIPTION                         SOFT  HARD UNITS
    MEMLOCK  max locked-in-memory address space 65536 65536 bytes
    
    RESOURCE DESCRIPTION                         SOFT  HARD UNITS
    MEMLOCK  max locked-in-memory address space 65536 65536 bytes
    
    RESOURCE DESCRIPTION                         SOFT  HARD UNITS
    MEMLOCK  max locked-in-memory address space 65536 65536 byte
     
  7. Trung

    Trung New Member

    4
    0
    1
    Dec 2, 2019
    Ratings:
    +0
    Local Time:
    6:44 AM
    1.7.16
    MariaDB 10
    Hi,


    I'm following the guide on boosting LEMP stack here and trying to both 2 tips "Leverage Nginx Thread Pooling" and "Leverage Linux kernel 5.1+ and Nginx io_uring patch for better Async I/O". So I have two aio directive definitions in Nginx configuration file:

    Code:
    aio threads
    aio on
    Now I cannot start Nginx. If I run Nginx -t, it prompts me the start failed because I have duplicate aio directives declared. I have also checked the Nginx document about the directive, but not sure what value I need to use if I want to have both options. I guess if I use just "aio threads", it also means aio turned on, but not sure.

    And btw, should I use thread pool feature if my VPS just has 1 core CPU and 1024 MB memory? If I can, what is the pool size should I consider configuring?

    Thanks!
     
  8. eva2000

    eva2000 Administrator Staff Member

    46,238
    10,510
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,293
    Local Time:
    9:44 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    from linked article at https://www.nginx.com/blog/thread-pools-boost-performance-9x/

    no benefit if you have only 1 cpu thread :)
     
  9. Dnyan

    Dnyan Member

    97
    20
    8
    Sep 16, 2017
    Ratings:
    +28
    Local Time:
    5:14 AM
    1.17.8
    10.3.22
    Updated to latest kernel 5.7+

    using NGINX_IOURING_PATCH='y' in variable

    do not see anything in nginx compilation log nor nginx -V showing --with-file-aio

    On KVM VPS
     
  10. adzkii

    adzkii Member

    38
    1
    8
    Apr 15, 2020
    Ratings:
    +3
    Local Time:
    11:44 PM
    try
    Code (Text):
    NGINX_IOURING_PATCH_BETA='y'
    
     
  11. Dnyan

    Dnyan Member

    97
    20
    8
    Sep 16, 2017
    Ratings:
    +28
    Local Time:
    5:14 AM
    1.17.8
    10.3.22
    Ok Will try that, thank you for update