Quantcast
Channel: Nginx Forum - Other discussion
Viewing all articles
Browse latest Browse all 972

NGINX directio is not working

$
0
0
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.

Viewing all articles
Browse latest Browse all 972