# Nginx causing high IO

**URL:** <https://www.ruby-forum.com/t/nginx-causing-high-io/215991>\
**Category:** NGINX\
**Created:** [January 21, 2012, 9:06pm UTC](https://www.ruby-forum.com/t/nginx-causing-high-io/215991 "2012-01-21T21:06:18Z")\
**Posts on this page:** 5\
**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:** [January 21, 2012, 9:06pm UTC](https://www.ruby-forum.com/t/nginx-causing-high-io/215991/1 "2012-01-21T21:06:18Z")

</div>

Hello ladies and gents,

I am using nginx to serve video on our video sharing platform. We are  
seeing high IO from nginx which is causing extremely slow responsiveness  
from the servers. I have tried changing the number of child nginx  
services to four but still the services go into a D state.

Image: [http://oi41.tinypic.com/214pq9.jpg](http://oi41.tinypic.com/214pq9.jpg)  
Image: [http://oi43.tinypic.com/244slkx.jpg](http://oi43.tinypic.com/244slkx.jpg)

My servers are running centos 5 32bit.

Here’s how my configs look: [worker\_processes 4; worker\_rlimit\_nofile 10240; worker\_rlimit\_sigpending... - bcc99261](http://tinypaste.com/bcc99261)

There’s some more to the configs but the rest is related to the script  
that we’re running to operate our website. Anyhow, any suggested would  
be greatly appreciated as I’m not very familiar with nginx.

Thank you

---

<div class="post-metadata">

**Author:** ![ismoore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b5a626/32.png) [@ismoore](https://www.ruby-forum.com/u/ismoore)\
**Post date:** [January 22, 2012, 3:21am UTC](https://www.ruby-forum.com/t/nginx-causing-high-io/215991/2 "2012-01-22T03:21:04Z")

</div>

Which video sharing platform do you have? We are building a massive  
network down in miami to serv a few million cable boxes at a time. glad  
to help out if i can.  
Whats the hardware looking like for the server?

Our Config Pulled from a beta node.

### User node24 in Beta Cluster 3

user node24;  
worker\_processes 54;  
pid /var/run/nginx.pid;  
error\_log /logserver/nginx/cluster/node34/logs/error.log;  
events  
{

```
worker_connections 65535;
 multi_accept on;

```

}

http  
{  
##  
# Changed.  
##  
sendfile on;  
tcp\_nopush on;  
tcp\_nodelay on;  
keepalive\_timeout 9;  
types\_hash\_max\_size 2048;  
# server\_tokens off;  
# server\_names\_hash\_bucket\_size 64;  
# server\_name\_in\_redirect off;

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,221510,221515#msg-221515](http://forum.nginx.org/read.php?2,221510,221515#msg-221515)

---

<div class="post-metadata">

**Author:** ![ismoore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b5a626/32.png) [@ismoore](https://www.ruby-forum.com/u/ismoore)\
**Post date:** [January 22, 2012, 7:53pm UTC](https://www.ruby-forum.com/t/nginx-causing-high-io/215991/3 "2012-01-22T19:53:56Z")

</div>

DavidJS wrote in post #1041997:

> Which video sharing platform do you have? We are building a massive  
> network down in miami to serv a few million cable boxes at a time. glad  
> to help out if i can.  
> Whats the hardware looking like for the server?

Hello David,

The hardware is the following.

E3-1270, 8GB Ram and 2x2TB HDD Raid 0 all over gbit connection.

We are using a custom built perl script for this. It was working nicely  
before on our old servers. Any ideas? I don’t see anything obvious in  
your configs that could help me. I know your workers are pretty high but  
in my case I don’t need that many. This is very frustrating because I’m  
seeing poor performance because of this.

Any help would be greatly appreciated 🙂

---

<div class="post-metadata">

**Author:** ![ismoore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b5a626/32.png) [@ismoore](https://www.ruby-forum.com/u/ismoore)\
**Post date:** [January 22, 2012, 8:40pm UTC](https://www.ruby-forum.com/t/nginx-causing-high-io/215991/4 "2012-01-22T20:40:42Z")

</div>

What disks did you have in old servers? The reason for high io is  
usually disks, but I have had it caused by cheap network cards too!

Also what does your perl script do exactly?

Sent from my iPhone

---

<div class="post-metadata">

**Author:** ![ismoore](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b5a626/32.png) [@ismoore](https://www.ruby-forum.com/u/ismoore)\
**Post date:** [January 22, 2012, 10:06pm UTC](https://www.ruby-forum.com/t/nginx-causing-high-io/215991/5 "2012-01-22T22:06:46Z")

</div>

Can you contact me outside the forum?

Posted at Nginx Forum:

> **[Re: Nginx causing high IO](https://forum.nginx.org/read.php?2,221510,221526#msg-221526)**
>
> Hello ladies and gents, I am using nginx to serve video on our video sharing platform. We are seeing high IO from nginx which is causing extremely slow responsiveness from the servers. I have tried changing the number of child nginx services to four...
