Forum: NGINX Nginx Filed Descriptor are increasing in n*n space complexity

Posted by goelvivek (Guest)
on 2012-11-29 13:06
(Received via mailing list)
HI,
If I increase nginx worker count. File descriptor count are getting
increased in n*n oder.
Example with 10 worker.
 2 0xffff8801c4dec000
     10 0xffff8801c4dec300
     10 0xffff8801c4dec600
      2 0xffff8801c4dec900
     10 0xffff8801c4decc00
     10 0xffff8801c4decf00
      2 0xffff8801c4ded200
      2 0xffff8801c4ded500
     10 0xffff8801c4ded800
      2 0xffff8801c4dedb00
     10 0xffff8801c4dee100
      2 0xffff8801c4dee400
     10 0xffff8801c4dee700
      2 0xffff8801c4deea00
     10 0xffff8801c4deed00
      2 0xffff8801c4def000
     10 0xffff8801c4def300
      2 0xffff8801c4def600
     10 0xffff8801c4def900
      2 0xffff8801c4defc00


Is there a way I can decrease this count ? I

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,233374,233374#msg-233374
Posted by goelvivek (Guest)
on 2012-11-29 13:22
(Received via mailing list)
First is count second is DEVICE

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,233374,233376#msg-233376
Posted by goelvivek (Guest)
on 2012-11-29 13:37
(Received via mailing list)
sorry wrong title.
It should be :
Nginx File Descriptor are increasing in n*n space complexity

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,233374,233377#msg-233377
Posted by Igor Sysoev (Guest)
on 2012-11-29 14:09
(Received via mailing list)
On Nov 29, 2012, at 16:05 , goelvivek wrote:

>      2 0xffff8801c4ded200
>      2 0xffff8801c4def600
>     10 0xffff8801c4def900
>      2 0xffff8801c4defc00
>
>
> Is there a way I can decrease this count ? I

These are unix socket pairs intended to communicate between worker 
processes.
Actual number of sockets is N but not NxN because they are shared. 
Sockets file
descriptors are indeed NxN, but the file descriptor is more cheap kernel 
object,
than socket or inode/vnode objects.


--
Igor Sysoev
http://nginx.com/support.html
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.