Welcome! Log In Create A New Profile

Advanced

NGINX directio is not working

Posted by shiva903645 
NGINX directio is not working
April 22, 2021 01:02AM
NGINX directio is not working

Here is the conf

location /content/ {
directio 200k;
directio_alignment 4k;
}

Using 1TB SSD with ext4 file system with 4k block size, and journaling has been disabled, linux kernal version is 5.4., nginx version is 1.16.1

Getting Error: pread() content/video.mp4 failed (22: Invalid argument) while sending response to client.

If I give request file size more than 200k ( which is mentioned in directio ) then only I am getting above error, If the file size is less than 200k then there is no issue.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 75
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready