ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

воркеры и подключения



Здравствуйте, Монашёв!

Monday, October 8, 2007, 2:58:36 PM, you wrote:

>> А  зачем  20  воркеров?  У  вас 20- процессорная машина? Один воркер
>> способен   нагрузить  один  процессор,  не  имеет  смысла  запускать
>> воркеров больше чем процессоров (ядер)...

ММ> У меня один процессор и 5 дисков. 5 воркеров не могут нагрузить
ММ> эти 5 дисков. Поставил 20 воркеров и тогда gstat начал показывать
ММ> busy около 99%. А с 5 воркерами было 80-90%

исходящий трафик после этого как-то вырос,
или так и остался на уровне 20-30 мегабит?

если исходящий трафик остался примерно таким же,
но загрузка дисков выросла - это misoptimization

там нет 5 независимых жестких дисков,
это raid-z storage pool из 5 дисков.

при random`ных запросах к дисковой подсистеме пропускная
способность raid-z массива будет такой же как у 1 диска.

http://blogs.sun.com/roch/entry/when_to_and_not_to

WHEN TO (AND NOT TO) USE RAID-Z

[...]

Effectively,  as  a first approximation,  an  N-disk RAID-Z group will
behave as   a single   device in  terms  of  delivered    random input
IOPS. Thus  a 10-disk group of devices  each capable of 200-IOPS, will
globally act as a 200-IOPS capable RAID-Z group.  This is the price to
pay to achieve proper data  protection without  the 2X block  overhead
associated with mirroring.

With 2-way mirroring, each FS block output must  be sent to 2 devices.
Half of the available IOPS  are thus lost  to mirroring.  However, for
Inputs each side of a mirror can service read calls independently from
one another  since each  side   holds the full information.    Given a
proper software implementation that balances  the inputs between sides
of a mirror, the  FS blocks delivered by a  mirrored group is actually
no less than what a simple non-protected RAID-0 stripe would give.

So looking  at random access input  load, the number  of FS blocks per
second (FSBPS), Given N devices to be grouped  either in RAID-Z, 2-way
mirrored or simply striped  (a.k.a RAID-0, no  data protection !), the
equation would  be (where dev  represents   the capacity in  terms  of
blocks of IOPS of a single device):

                                        Random
                Blocks Available        FS Blocks / sec
                ----------------        --------------
RAID-Z          (N - 1) * dev           1 * dev         
Mirror          (N / 2) * dev           N * dev         
Stripe          N * dev                 N * dev         

[...]

-- 
Best regards,
 Gena                            mailto:makhomed@xxxxxxxxxxxxxx





 




Copyright © Lexa Software, 1996-2009.