Project

General

Profile

Actions

Feature #1014

closed

comparing strace of single request through lighty-1.5-svn and nginx-0.5.10

Added by Anonymous about 18 years ago. Updated about 1 year ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
No

Description

I used the following commands to capture the strace

system is Centos 4.4/x86-64

strace -f -o nginx.strace nginx -c conf/webserver.conf
strace -f o lighttpd.strace lighttpd -D -f webserver.conf

both nginx/lighty configs are setup for epoll and sendfile. access/error log is disabled for both
client is http_load -fetches 1 -parallels 1 file-containing-url

I can't figure out why lighty has open/stat of /etc/localtime whereas nginx doesn't have any
also lighty-svn seems to open the file which is to be sent twice compared to nginx single time

-- yusufg


Files

nginx.strace (14.6 KB) nginx.strace strace of nginx 0.5.10 yusufg, 2007-02-08 11:55
lighttpd.strace (50.1 KB) lighttpd.strace strace of lighty r1620 yusufg, 2007-02-08 11:56
lighty.strace (14.6 KB) lighty.strace strace with server.max-stat-threads = 0 yusufg, 2007-02-08 12:01
Actions #1

Updated by stbuehler over 16 years ago

  • Status changed from New to Fixed
  • Resolution set to wontfix

/etc/localtime is probably opened by some time related library function. and the stat function in lihgty checks if it can really open a file. i have no problem with that.

Actions #2

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Wontfix
Actions #3

Updated by gstrauss about 1 year ago

  • Description updated (diff)
  • Status changed from Wontfix to Fixed
  • ASK QUESTIONS IN Forums set to No

Fixed a long time ago.

Unless the server.stat-cache-engine is disabled, lighttpd 1.4.56 and later cache open file descriptors, reducing stat() and open() for repeated requests to the same file in a short timeframe (default 1 second).

Even older versions of lighttpd cache the unix time (in seconds since 1970) once per event loop and reuse this value with formatting Date in response headers.

Actions

Also available in: Atom