Avleen Vig wrote:
> On Sep 21, 2009, at 1:02, François Battail <fb@francois.battail.name>
> wrote:
>
>> Le dimanche 20 septembre 2009 à 22:47 -0700, Khalid Shaikh a écrit :
>>
>>> worker_processes 32;
>>
>> That's way too much, try to keep the number of workers sticked to the
>> number of cores (eg: 4).
>
> Surely you should have more?
> Eg with 4 cores have 8 workers.
>
> If workers block serving a request, this means you don't have CPU
> sitting idle.
Generally no. If you are doing everything properly event driven (even
more so if you shift from a polling model to an AIO model), then any
time you are busy serving a request, that means your CPU isn't sitting
idle. The only time it should be idle is when there literally aren't any
requests/events to process (at which point extra processes isn't going
to help).
--Chris