httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject Re: [2.0] lstat's in spite of AllowOverride None
Date Wed, 07 Nov 2001 13:44:19 GMT
The stat()s are a result of Bill Rowe's rewrite of directory_walk. The additional stats
are intentional and by design.  And we desperately need to eliminate them (perhaps by
caching directory_walk results for some time period).

Apache will always be dead last in performance comparisions, and by a wide embarassing
margin, until we get rid of these stats. The rest of the server can be tuned to take 0 CPU
cycles and we will still be last in the performance race with these stats hanging around.

Bill

----- Original Message -----
From: "Martin Kraemer" <Martin.Kraemer@Fujitsu-Siemens.com>
To: <dev@httpd.apache.org>
Sent: Wednesday, November 07, 2001 4:11 AM
Subject: [2.0] lstat's in spite of AllowOverride None


> When I do a grep for "AllowOverride" in my current config, I get:
> 312:    AllowOverride None
> 341:    AllowOverride None
> 371:#    AllowOverride FileInfo AuthConfig Limit
> 523:    AllowOverride None
> 537:    AllowOverride None
> 569:    AllowOverride None
> 897:        AllowOverride None
>
> In spite of this, when tracing an access to a read-only file, I see:
>  ...
>  lstat("/home",0xbfbff890)                        = 0 (0x0)
>  lstat("/home/www",0xbfbff890)                    = 0 (0x0)
>  lstat("/home/www/SERVER",0xbfbff890)             = 0 (0x0)
>  lstat("/home/www/SERVER/apa20",0xbfbff890)       = 0 (0x0)
>  lstat("/home/www/SERVER/apa20/htdocs",0xbfbff890) = 0 (0x0)
>  lstat("/home/www/SERVER/apa20/htdocs/noread.html",0xbfbff890) = 0 (0x0)
>  open("/home/www/SERVER/apa20/htdocs/noread.html",0,00) ERR#13 'Permission denied'
>  gettimeofday(0xbfbfb874,0x0)                     = 0 (0x0)
>  write(2,0xbfbfb920,161)                          = 161 (0xa1)
>  lstat("/home",0xbfbff800)                        = 0 (0x0)
>  lstat("/home/www",0xbfbff800)                    = 0 (0x0)
>  lstat("/home/www/SERVER",0xbfbff800)             = 0 (0x0)
>  lstat("/home/www/SERVER/apa20",0xbfbff800)       = 0 (0x0)
>  lstat("/home/www/SERVER/apa20/error",0xbfbff800) = 0 (0x0)
>  lstat("/home/www/SERVER/apa20/error/HTTP_FORBIDDEN.html.var",0xbfbff800) = 0 (0x0)
>  open("/home/www/SERVER/apa20/error/HTTP_FORBIDDEN.html.var",0,0666) = 17 (0x11)
>  ....
>
> Where do all the lstats() come from, and *WHY* do they happen at all?
>
>   Martin
> --
> <Martin.Kraemer@Fujitsu-Siemens.com>         |     Fujitsu Siemens
> Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730  Munich,  Germany
>


Mime
View raw message