Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fedora 19 не тянет
- To: nginx-ru@xxxxxxxxx
- Subject: Fedora 19 не тянет
- From: Konstantin Svist <fry.kun@xxxxxxxxx>
- Date: Wed, 18 Sep 2013 16:10:04 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=T4nJ2IACPJA+1BZAQ5G/Xytuv7ZbYqp3n8dNM7Mm4lA=; b=EBaj0ekV/m0uoL2CPbz36z+cDDz9+G7dFZndJgqyQB4lbuFMeyjBDj+izBahdeu9l3 0oqXnmFYAXG0QyTFReDBuJxQOnZZNMdzgqp1fJPLa7tp12dAH5yiXdHpCPSKJTdkfF8c zFx78ORrb3gWX97nDMDBUw1/zmXXrx3IaoeMz7i9scWCYM4CtvuzBNkqVgHiozE6HlBI wwE+OHz3cAuvLAC0VoSMb8TALvVjvOtxsBDaP2pGG/qU1zNvZWmm0LY5+slwKQ5grlO7 WeqhINDQbuOT8CTMnTDbTjf5R8R5xyFgnRUiSYGkB/CXs/nswwavcWQBIlBoyNrcbA7N L16A==
Пытаюсь перейти с Fedora 14 (2.6.35.14-97.fc14.x86_64) на Fedora 19
(3.10.11-200.fc19.x86_64)
worker_processes 40;
events {
worker_connections 8000;
use epoll;
}
http {
proxy_headers_hash_max_size 8096; # default was: 512
proxy_headers_hash_bucket_size 128; # default was: 64
variables_hash_max_size 1024;
variables_hash_bucket_size 128;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
charset utf-8;
resolver 127.0.0.1; # necessary for dynamic upstream
resolution
limit_req_log_level warn;
proxy_intercept_errors on;
server {
listen 80;
location = /service_check_nginx { echo "nginx"; }
}
}
Симптомы:
* ab -n1000000 -c1000 'http://localhost/service_check_nginx'
(параллельно 4 раза, т.е. 4000 одновременных соединений)
говорит что некоторые запросы занимают >3сек
* netstat -s:
...
1269313 times the listen queue of a socket overflowed
1282868 SYNs to LISTEN sockets dropped
...
Растёт со скоростью примерно 2000/сек, иногда больше
* CPU загрузка не одинакова по workers:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27671 nobody 20 0 418.6m 149.2m 1.1m S 51.1 0.1 0:00.77 nginx:
worker process
27685 nobody 20 0 418.6m 149.2m 1.1m S 39.7 0.1 0:01.76 nginx:
worker process
27661 nobody 20 0 418.6m 149.2m 1.1m S 22.7 0.1 0:01.63 nginx:
worker process
27688 nobody 20 0 418.6m 149.2m 1.2m S 22.7 0.1 0:01.90 nginx:
worker process
27697 nobody 20 0 418.6m 149.2m 1.1m S 17.0 0.1 0:00.95 nginx:
worker process
27666 nobody 20 0 422.0m 152.3m 1.1m R 7.6 0.1 0:01.50 nginx:
worker process
27701 nobody 20 0 419.3m 149.7m 1.1m S 1.9 0.1 0:00.01 nginx:
worker process
27650 nobody 20 0 418.6m 149.9m 1.8m S 0.0 0.1 0:03.52 nginx:
worker process
27658 nobody 20 0 418.6m 149.2m 1.1m S 0.0 0.1 0:01.30 nginx:
worker process
27664 nobody 20 0 419.0m 149.5m 1.1m S 0.0 0.1 0:01.86 nginx:
worker process
27669 nobody 20 0 418.6m 149.2m 1.1m S 0.0 0.1 0:00.35 nginx:
worker process
27672 nobody 20 0 418.6m 149.2m 1.1m S 0.0 0.1 0:00.23 nginx:
worker process
а на F14:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
30042 nobody 20 0 1224m 955m 17m R 41.2 0.4 523:24.45 nginx: worker
process
30038 nobody 20 0 1224m 955m 17m S 39.4 0.4 522:24.30 nginx: worker
process
30047 nobody 20 0 1224m 955m 17m R 39.4 0.4 520:35.36 nginx: worker
process
30053 nobody 20 0 1224m 955m 17m R 39.4 0.4 520:42.77 nginx: worker
process
30027 nobody 20 0 1224m 955m 17m S 37.6 0.4 520:55.20 nginx: worker
process
30036 nobody 20 0 1224m 955m 18m R 37.6 0.4 525:26.07 nginx: worker
process
30037 nobody 20 0 1224m 955m 17m S 37.6 0.4 523:59.09 nginx: worker
process
30041 nobody 20 0 1224m 955m 17m R 37.6 0.4 529:31.88 nginx: worker
process
30049 nobody 20 0 1224m 954m 17m R 37.6 0.4 519:58.73 nginx: worker
process
Кстати, если ставлю worker_connections 800 (worker_processes 40) и запускаю "ab
-c1000 ..." -- то ab отваливается с ошибкой (на F19).
Где же дальше копать?
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|