Date: Mon, 29 May 2017 21:44:36 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 219644] FreeBSD 11 + nginx + apache delay +0.1 second on files greater than 32768 bytes Message-ID: <bug-219644-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219644 Bug ID: 219644 Summary: FreeBSD 11 + nginx + apache delay +0.1 second on files greater than 32768 bytes Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: freebsd@ihead.ru Created attachment 183041 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D183041&action= =3Dedit test file (size large than 32768 bytes) FreeBSD freebsd11.build.ihead.ru 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8 #0: Wed Feb 22 06:12:04 UTC 2017=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Proxy requests from nginx to apache. If apache response more than 32768 bytes (with headers) the request longed = on ~0.1 second. How to reproduce. 1. In httpd.conf add Listen 127.0.0.1:80 MaxClients 1 2. Add ihead.txt in DocumentRoot (/usr/local/www/apache24/data). It may be any file larger than 32768 bytes. 3. In nginx.conf in server {...} add=20 location /ihead.txt { proxy_pass http://127.0.0.1:80; } 4. find nginx and apache PIDs ps -aux | grep nginx ps -aux | grep httpd 5. run ktrace on finded PIDs=20 ktrace -p 42260 -t cfinpstuwy -f nginx ktrace -p 42184 -t cfinpstuwy -f apache 6. Request http://IP_nginx/ihead.txt 7. Stop ktrace ktrace -C 8. Make dumps readable kdump -E -f nginx > nginx.txt kdump -E -f apache > apache.txt 9. There is +0.1 second delay 42260 nginx 0.004903 CSW stop kernel "kqread" 42260 nginx 0.110929 CSW resume kernel "kqread"=20 42184 httpd 0.000591 CSW stop kernel "select" 42184 httpd 0.199081 CSW resume kernel "select" Problem not reproduced on FreeBSD 10. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219644-8>