apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <cliffwool...@yahoo.com>
Subject Re: [PATCH/CONTRIB] Shared Mem Hash Table
Date Fri, 06 Jul 2001 20:31:44 GMT
On Fri, 6 Jul 2001, Brian Pane wrote:

> This morning, I instrumented the latest httpd-2.0 souce and found that
> it's spending 41% of its CPU time in usr mode and 59% in sys when
> delivering a 50KB, non-server-parsed file (on Linux, using sendfile).
> For server-parsed requests, I've seen ratios as high as 70% usr, 30% sys.
>
> The bad news: the httpd is wasting a huge amount of CPU time in
> user-space code (for an optimal httpd serving static files, the usr CPU
> should approach zero; 41% is surprisingly high).  The good news: there's
> an opportunity to cut the httpd's CPU utilization nearly in half by
> tuning just the user-space code.

The flip side of that, of course, is that we could probably also get rid
of some useless/redundant system calls, thereby also reducing the time
spent in sys CPU.

--Cliff


--------------------------------------------------------------
   Cliff Woolley
   cliffwoolley@yahoo.com
   Charlottesville, VA



Mime
View raw message