April 22, 2009 02:20AM
On Wed, Apr 22, 2009 at 11:12:39AM +0800, Weibin Yao wrote:

> > Could you add
>
> > open_file_cache max=1000 inactive=20s;
> > open_file_cache_valid 30s;
> > open_file_cache_min_uses 2;
> > open_file_cache_errors on;
>
> > and run just
>
> > ab.exe -k -n 10000 -c 1
>
> > to see if CreateFile() adds noticeable overhead ?
>
> I have tested it with above configration, and there is nothing in the error.log.
>
> C:\Program Files\Apache Software Foundation\Apache2.2\bin>ab.exe -k -n 10000 -
> 1 http://127.0.0.1/

> Requests per second: 5714.29 [#/sec] (mean)

Without open_file_cache:

ab.exe -k -n 10000 -c 1 http://127.0.0.1/
Requests per second: 2424.24 [#/sec] (mean)
CPU load: about 68%

It seems that CreateFile() is really heavy syscall: using open_file_cache
increases twice the number of requests. In this case nginx saves 4 syscalls:

*) CreateFile() while index files testing,
*) and CreateFile()/GetFileAttributesEx/CloseHandle().


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

nginx-0.7.52

Igor Sysoev April 20, 2009 02:33AM

Re: nginx-0.7.52

Kevin Worthington April 20, 2009 03:12AM

Re: nginx-0.7.52

Igor Sysoev April 20, 2009 03:24AM

Re: nginx-0.7.52

Kevin Worthington April 20, 2009 01:28PM

Re: nginx-0.7.52

Weibin Yao April 20, 2009 06:38AM

Re: nginx-0.7.52

Igor Sysoev April 20, 2009 07:13AM

Re: nginx-0.7.52

Igor Sysoev April 20, 2009 07:30AM

basic auth not prompting for id and pass

AMP Admin April 20, 2009 07:27PM

RE: nginx-0.7.52

郭振立 April 20, 2009 09:41AM

Re: nginx-0.7.52

Joaquin Cuenca Abela April 20, 2009 10:42AM

Re: nginx-0.7.52

Igor Sysoev April 20, 2009 01:02PM

Re: Re: Re: nginx-0.7.52

Weibin Yao April 21, 2009 04:57AM

Re: Re: nginx-0.7.52

Igor Sysoev April 21, 2009 04:18AM

Re: Re: nginx-0.7.52

Igor Sysoev April 21, 2009 04:06AM

Re: Re: Re: nginx-0.7.52

Igor Sysoev April 21, 2009 06:19AM

Re: Re: nginx-0.7.52

Weibin Yao April 21, 2009 03:51AM

Re: Re: Re: nginx-0.7.52

Weibin Yao April 21, 2009 05:43AM

Re: Re: Re: nginx-0.7.52

Istv April 21, 2009 05:52AM

Re: nginx-0.7.52

Anton Yuzhaninov April 21, 2009 06:12AM

Re: Re: nginx-0.7.52

Weibin Yao April 21, 2009 11:12PM

Re: Re: nginx-0.7.52

Weibin Yao April 22, 2009 12:01AM

Re: Re: nginx-0.7.52

Igor Sysoev April 22, 2009 02:20AM

Re: Re: nginx-0.7.52

Igor Sysoev April 22, 2009 03:38AM

Re: Re: Re: nginx-0.7.52

Igor Sysoev April 21, 2009 06:23AM

Re: Re: Re: nginx-0.7.52

Roger Pack April 21, 2009 10:52AM

Re: Re: Re: nginx-0.7.52

Igor Sysoev April 21, 2009 11:17AM

Re: Re: Re: nginx-0.7.52

Istv April 21, 2009 11:27AM

Re: Re: Re: nginx-0.7.52

Igor Sysoev April 21, 2009 04:00PM

Re: Re: Re: nginx-0.7.52

Roger Pack April 21, 2009 11:36AM

Re: Re: Re: nginx-0.7.52

Igor Sysoev April 21, 2009 03:54PM

Re: nginx-0.7.52

Chris Cortese April 20, 2009 06:20PM

Re: nginx-0.7.52

Igor Sysoev April 21, 2009 04:20PM

Re: nginx-0.7.52

Roger Pack April 21, 2009 05:35PM

Re: nginx-0.7.52

Chris Cortese April 21, 2009 07:34PM

Re: nginx-0.7.52

Igor Sysoev April 22, 2009 08:01AM

Re: nginx-0.7.52 all Windows native working

Chris Cortese April 22, 2009 03:21PM

Re: nginx-0.7.52 all Windows native working

Roger Pack April 23, 2009 09:38AM

Re: nginx-0.7.52

Chris Wan April 21, 2009 11:37PM

Re: nginx-0.7.52

Igor Sysoev April 22, 2009 08:45AM

Re: nginx-0.7.52

Chris Wan April 22, 2009 11:14PM

Re: nginx-0.7.52

diogin April 22, 2009 02:47AM

Re: nginx-0.7.52

Igor Sysoev April 22, 2009 03:02AM

Re: nginx-0.7.52

diogin April 22, 2009 08:09AM

Re: nginx-0.7.52

Igor Sysoev April 22, 2009 08:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 165
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready