Welcome! Log In Create A New Profile

Advanced

Re: nginx support multithread

October 28, 2011 02:28AM
On Thu, Oct 27, 2011 at 07:06:29AM -0400, Brian Akins wrote:
>
> On Oct 27, 2011, at 3:41 AM, agentzh wrote:
> >>
> >> What would be the usage of multi-threads?
> >>
> >
> > Mostly for (blocking) disk I/O and other syscalls that have to block
> > the main thread of an nginx worker :)
> >
>
> True. I've seen some systems where the overhead of the thread/queue management was more than just letting the system call block the main thread.

Could you eleborate this case ?
For example, on non-SSD disk, I/O blocking may take several milliseconds,
while very expensive fork() syscall takes about 100-200 microseconds
on modern CPU.


--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx support multithread

wdmchaft October 26, 2011 10:49AM

Re: nginx support multithread

Igor Sysoev October 26, 2011 10:58AM

Re: nginx support multithread

Brian Akins October 26, 2011 05:44PM

Re: nginx support multithread

Martin Loy October 26, 2011 07:10PM

Re: nginx support multithread

deltay October 26, 2011 09:44PM

Re: nginx support multithread

agentzh October 27, 2011 03:42AM

Re: nginx support multithread

Brian Akins October 27, 2011 07:08AM

Re: nginx support multithread

Igor Sysoev October 28, 2011 02:28AM

Re: nginx support multithread

Igor Sysoev October 27, 2011 09:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 143
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready