httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject Some performance analysis of Apache 2.0 (Windows NT 4.0)
Date Thu, 07 Dec 2000 16:38:20 GMT
Not sure how the column formatting will come though... The interesting numbers
are the 3rd column (SelfTime) and 5th columns (Number of calls to the
function).  Basically two threads handled all the requests in this run (due to
the LIFO scheduling of threads dispatched off a Windows i/o completion port) .
Since my machine has a single CPU, I would expect large numbers in
GetQueuedCompletionStatus and WaitForSingleObject.  As I suspected, that
FindFirstFile call is killing us and I'd like to get rid of it (replace it
with a more efficient call as in alpha5).

I'm a bit suprised at the time spend in the byterange_filter and
content_length_filters. Each filter seems to be called twice per request (this
run shows 2534 requests).  As expected, the additional mallocs and frees
introduced with the filters is chewing up cycles. Not sure why we have more
frees than mallocs though. Odd...


Name                                         Hier Time     % Hier Time
Self Time     % Self Time     # Calls
GetQueuedCompletionStatus     9.91 s             37.6                 9.91 s
37.6             2534   kernel32.dll
WaitForSingleObject                 9.02 s             34.2
9.02 s             34.2             2535   kernel32.dll
FindFirstFileA                           2.13 s               8.1
2.13 s                8.1            10140   kernel32.dll
CreateFileW                             1.20 s                4.6
1.20 s               4.6              5070   kernel32.dll
FindClose                                 616.75ms           2.3
616.75ms         2.3            10140   kernel32.dll
free                                           454.90ms          1.7
454.90ms         1.7             55758   msvcrtd.dll
_ap_byterange_filter                 443.25ms         1.7
432.87ms           1.6             5069
_ap_content_length_filter          432.65ms         1.6
419.15ms           1.6             5069
TransmitFile                             410.14ms         1.6
410.14ms             1.6            2535   mswsock.dll
CloseHandle                            351.85ms         1.3
351.85ms             1.3            5069   kernel32.dll
strlen                                        299.56ms         1.1
299.56ms             1.1         420810   msvcrtd.dll
malloc                                      265.18ms         1.0
265.18ms             1.0         48163   msvcrtd.dll
_stricmp                                   244.27ms         0.9
244.27ms             0.9         375180   msvcrtd.dll
AcceptEx                                 141.15ms         0.5
141.15ms             0.5         2534   mswsock.dll
GetFileInformationByHandle     136.73ms         0.5                 136.73ms
0.5         2535   kernel32.dll


Bill


Mime
View raw message