You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/07/07 20:07:17 UTC

DO NOT REPLY [Bug 45356] New: ab: optionally reduce ressource usage ( qsort and memory)

https://issues.apache.org/bugzilla/show_bug.cgi?id=45356

           Summary: ab: optionally reduce ressource usage (qsort and memory)
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: rainer.jung@kippdata.de
        Depends on: 45355


1) qsort() CPU usage

At the end of a run, ab uses qsort() a couple of times to sort result data.
This is only needed if one wants to get confidence data, or percentile data.

Modern machines easily handle millions of requests in a very few minutes. The
qsort() processing time at the end of the run gets to long for such big
numbers.

Add a flag to disable qsort runs (automatically also disables confidence and
percentile data, since they rely on sorting the request data).

2) memory usage

ab saves detail data for each request in memory during the run. Again for huge
numbers of requests, this gets expensive.

Add a flag to disable request data saving. All statistics, that are available
via incremental computations still get produced (min/max/mean/total).

All patches are based on the final result of the patches in issue 45355.

https://issues.apache.org/bugzilla/show_bug.cgi?id=45355

I can provide patches against trunk, but 45355 makes the changes nicer.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45356] ab: optionally reduce ressource usage ( qsort and memory)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45356


Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45356] ab: optionally reduce ressource usage ( qsort and memory)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45356





--- Comment #2 from Rainer Jung <ra...@kippdata.de>  2008-07-07 11:09:13 PST ---
Created an attachment (id=22233)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22233)
Add "-q" to disable qsort()


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45356] ab: optionally reduce ressource usage ( qsort and memory)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45356





--- Comment #3 from Rainer Jung <ra...@kippdata.de>  2008-07-07 11:09:48 PST ---
Created an attachment (id=22234)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22234)
Add '-s' to disable keeping all request data in memory


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45356] ab: optionally reduce resource usage ( qsort and memory)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45356


Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|ab: optionally reduce       |ab: optionally reduce
                   |ressource usage (qsort and  |resource usage (qsort and
                   |memory)                     |memory)




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45356] ab: optionally reduce ressource usage ( qsort and memory)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45356


Rainer Jung <ra...@kippdata.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22233|Add "-q" to disable qsort() |Add "-Q" to disable qsort()
        description|                            |




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45356] ab: optionally reduce ressource usage ( qsort and memory)

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45356





--- Comment #1 from Rainer Jung <ra...@kippdata.de>  2008-07-07 11:08:46 PST ---
Created an attachment (id=22232)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22232)
Use incremental statistics for min/max/total


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org