Apache and extra stat64 + lstat64 calls

This is a discussion on Apache and extra stat64 + lstat64 calls within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi, I'm trying to squeeze the last bits of performance out or Apache (httpd 1.3.34), so I'...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-16-2006
OtisUsenet
 
Posts: n/a
Default Apache and extra stat64 + lstat64 calls

Hi,

I'm trying to squeeze the last bits of performance out or Apache (httpd
1.3.34), so I'm strace-ing httpd processes to see wht extra work they
are doing. Here is one thing I found - when a request for
"/some/path/here" is made, Apache goes all the way down to "/some"
looking for... I don't know what.

Below is the important strace bit.
Note that /history/(.*) is a pattern from a RewriteRule that rewrites
to /myapp/History.do?.... (myapp is a webapp).
So, the first stat64 call below makes sense, because that's the real
URI, but what about all the rest?

read(6, "GET /history/http://japanese.a"..., 4096) = 283
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x80750e6, [],
SA_RESTORER|SA_INTERRUPT, 0x2448c8}, 8) = 0
time(NULL) = 1166257862
stat64("/www/site/htdocs/myapp/History.do", 0xfef92894) = -1 ENOENT (No
such file or directory)
stat64("/www/site/htdocs/myapp", 0xfef92894) = -1 ENOENT (No such file
or directory)
stat64("/www/site/htdocs", {st_mode=S_IFDIR|0755, st_size=4096, ...}) =
0
lstat64("/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/www/site", {st_mode=S_IFDIR|S_ISGID|0775, st_size=4096, ...})
= 0
lstat64("/www/site/htdocs", {st_mode=S_IFDIR|0755, st_size=4096, ...})
= 0
lstat64("/www/site/htdocs/myapp", 0xfef927e4) = -1 ENOENT (No such file
or directory)

I think I followed everything described on
http://httpd.apache.org/docs/1.3/misc/perf-tuning.html .

Any help, tips, or pointers would be much appreciated, so I can get rid
of these extra calls.

Thank you!

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:46 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0