nginx and multiple cpu

Omer Faruk Sen omerfsen at gmail.com
Thu Jan 14 14:22:31 MSK 2010


Hi,

Have enabled accept_mutex on;

user  root;
worker_processes  8;

worker_rlimit_nofile 32000;

#pid        logs/nginx.pid;


events {
        accept_mutex on;
        worker_connections 30000;
}

but still only one cpu is busy while others stay in idle mode? Any sugggestions?

Regards.

On Wed, Jan 13, 2010 at 5:31 PM, Dennis J. <dennisml at conversis.de> wrote:
> On 01/13/2010 04:20 PM, Omer Faruk Sen wrote:
>>
>> Hi,
>>
>> I have  a 8 core (4 core and HT enabled) machine to test nginx. In my
>> configuration file
>>
>> worker_processes  8;
>>
>> events {
>>     worker_connections  30000;
>> }
>>
>
> [SNIP]
>
>>
>> As you can see nginx only use one core not all of them even if I state
>> worker_processes  8;
>>
>> I have used  nginx-0.7.64 and used centos 5.4 compiled using just
>> ./configure&&  make&&  make install. I have read that nginx supports
>> multiple cpu but as far as I see from mpstat output it doesn't
>> Can anyone englighten me about that?
>
> I've seen someting similar during my tests on an 8 core system (no HT). I
> set up a default nginx with and increased the number of worker processes to
> two but when I put load on nginx only one CPU gets used while the other
> stays idle.
>
> Regards,
>  Dennis
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>



More information about the nginx mailing list