# Why worker process only use cpu0?

**URL:** <https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702>\
**Category:** NGINX\
**Created:** [June 1, 2011, 1:07am UTC](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702 "2011-06-01T01:07:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [June 1, 2011, 1:07am UTC](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702/1 "2011-06-01T01:07:54Z")

</div>

I have 4 core CPU’s, cpu0-cpu3, but why NginX worker process only high  
on  
cpu0 than other cpu’s ?  
This is my main configuration [http://fpaste.org/VT7I](http://fpaste.org/VT7I)

My hardware spec’s are :  
Intel(R) Xeon(R) CPU X3220  
Memory 4 x 2 GB of RAM

I am using htop to monitor the process’

–  
View this message in context:  
[http://nginx.2469901.n2.nabble.com/why-worker-process-only-use-cpu0-tp6425023p6425023.html](http://nginx.2469901.n2.nabble.com/why-worker-process-only-use-cpu0-tp6425023p6425023.html)  
Sent from the nginx mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![antituhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Post date:** [June 1, 2011, 1:13am UTC](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702/2 "2011-06-01T01:13:28Z")

</div>

Sorry, for more details, I’m using nginx-0.8.54-1.el5

–  
View this message in context:  
[http://nginx.2469901.n2.nabble.com/why-worker-process-only-use-cpu0-tp6425023p6425044.html](http://nginx.2469901.n2.nabble.com/why-worker-process-only-use-cpu0-tp6425023p6425044.html)  
Sent from the nginx mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![antituhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Post date:** [June 1, 2011, 2:07am UTC](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702/3 "2011-06-01T02:07:35Z")

</div>

Hello!

On Tue, May 31, 2011 at 04:07:39PM -0700, antituhan wrote:

> I have 4 core CPU’s, cpu0-cpu3, but why NginX worker process only high on  
> cpu0 than other cpu’s ?  
> This is my main configuration [http://fpaste.org/VT7I](http://fpaste.org/VT7I)

Do you mean to ask “why only one nginx process actually uses CPU”  
instead? This usually means that nginx isn’t really loaded and  
one process is enough to handle all connections/requests.

In some situations you may want to disable accept mutex via

```
events {
    accept_mutex off;
    ...
}

```

or tune it with accept\_mutex\_delay directive. This should result  
in more even distribution of load between nginx processes.

Maxim D.

---

<div class="post-metadata">

**Author:** ![antituhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/6bbea6/32.png) [@antituhan](https://www.ruby-forum.com/u/antituhan)\
**Post date:** [June 1, 2011, 2:49am UTC](https://www.ruby-forum.com/t/why-worker-process-only-use-cpu0/207702/4 "2011-06-01T02:49:35Z")

</div>

Yup, I mean only one nginx process actually uses CPU 🙂  
Ok, I’ll try the directive and monitor them.

–  
View this message in context:  
[http://nginx.2469901.n2.nabble.com/why-worker-process-only-use-cpu0-tp6425023p6425232.html](http://nginx.2469901.n2.nabble.com/why-worker-process-only-use-cpu0-tp6425023p6425232.html)  
Sent from the nginx mailing list archive at [Nabble.com](http://Nabble.com).
