Welcome! Log In Create A New Profile

Advanced

Re: upstream timeouts I can not explain

Руслан Закиров
January 11, 2017 04:06PM
On Wed, Jan 11, 2017 at 10:25 PM, Руслан Закиров <ruz@sports.ru> wrote:

>
> On amd64 sendfile() uses mbufs / mbuf clusters. Try looking into
> "vmstat -z" to see if there are enough mbuf clusters in various
> zones. Note well tha sendfile() normally blocks on disk, and it
> might simply mean that your disk subsystem is (occasionally)
> overloaded. Try gstat to see some details.
>
>
> It is goes red periodically and i should look further there.
>

It was disk subsystem. atime updates were enabled (needed them for one
thing), kern.filedelay is 30s, top -mio -S showed syncer jumping up every
30seconds. Re-mounting disk with noatime dropped number of errors down to
<10 per minute from 200+.

At this moment i wonder if turning off sendfile will help. Will nginx use
> aio to serve static files from disk without blocking?
>

Still open question.

Also, sendfile syscall has two flags on bsd to avoid blocking. Can these be
> used to avoid blocks?
>

Looks like BSD 11 has improvements in this area. At least `man` says that
sendfile doesn't block on disk I/O and can return earlier with success.


--
Руслан Закиров
Руководитель отдела разработки веб-сервисов
+7(916) 597-92-69, ruz @ http://www.sports.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

upstream timeouts I can not explain

Руслан Закиров January 08, 2017 09:06AM

Re: upstream timeouts I can not explain

Maxim Dounin January 09, 2017 10:16AM

Re: upstream timeouts I can not explain

Руслан Закиров January 09, 2017 01:58PM

Re: upstream timeouts I can not explain

Maxim Dounin January 09, 2017 03:02PM

Re: upstream timeouts I can not explain

Руслан Закиров January 10, 2017 12:48PM

Re: upstream timeouts I can not explain

pbooth January 10, 2017 02:14PM

Re: upstream timeouts I can not explain

Руслан Закиров January 11, 2017 10:08AM

Re: upstream timeouts I can not explain

Maxim Dounin January 11, 2017 10:46AM

Re: upstream timeouts I can not explain

Руслан Закиров January 11, 2017 12:56PM

Re: upstream timeouts I can not explain

Maxim Dounin January 11, 2017 01:42PM

Re: upstream timeouts I can not explain

Руслан Закиров January 11, 2017 02:26PM

Re: upstream timeouts I can not explain

Руслан Закиров January 11, 2017 04:06PM

Re: upstream timeouts I can not explain

Maxim Konovalov January 11, 2017 04:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 295
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready