Re[2]: РИТ: Высокие нагрузки vs Highload++

Михаил Монашёв postmaster at softsearch.ru
Fri Sep 19 11:06:41 MSD 2008


Здравствуйте, Игорь.

А патчик выкладывать где-то планируешь?

IS> В общем, научили мы sendfile читать по 2M:

IS> #sysctl kern.ipc.sfreadahead
IS> kern.ipc.sfreadahead: 2097152

IS> и правильно кэшировать частоиспользуемое (1190M Active):

IS> CPU states:  0.3% user,  0.0% nice,  0.9% system,  2.6% interrupt, 96.3% idle
IS> Mem: 1190M Active, 2271M Inact, 341M Wired, 140M Cache, 214M Buf, 8908K Free

IS>   PID USERNAME  THR PRI NICE   SIZE    RES STATE  C   TIME   WCPU COMMAND
IS>  1278 nobody      1   4    0 12704K  4420K kqread 1   0:20  0.00% nginx
IS>  1266 nobody      1   4    0 12704K  4396K kqread 1   0:16  0.00% nginx
IS>  1267 nobody      1   4    0 12704K  4348K kqread 1   0:15  0.00% nginx

IS> Итого, имеем на данный момент:

IS>  L(q)  ops/s    r/s   kBps   ms/r    w/s   kBps   ms/w   %busy Name
IS>     0      7      7   6650   23.7      0      0    0.0   16.6| ad16
IS>     0      7      7   8376   24.8      0      0    0.0   17.3| ad18
IS>     0      7      7   8376   26.8      0      0    0.0   18.8| ad20
IS>     0      7      7   8504   25.0      0      0    0.0   17.5| ad22
IS>     0     28     28  31907   25.1      0      0    0.0   52.7| mirror/dat

IS> В 3-4 раза можно вырасти.

IS> Памяти под сетевые буфера всего 4M:

IS> 3092K/632K/3725K bytes allocated to network (current/cache/total)




  

--

С уважением,
Михаил Монашёв, SoftSearch.ru
mailto:postmaster at softsearch.ru
ICQ# 166233339
http://michael.mindmix.ru/
Без бэкапа по жизни.






More information about the nginx-ru mailing list