Bug #27501 | 5.0 significantly more sys ("kernel") time than 4.1 due to getrusage() calls | ||
---|---|---|---|
Submitted: | 28 Mar 2007 15:33 | Modified: | 25 Aug 2007 16:15 |
Reporter: | Nils Goroll | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.0.37 | OS: | Solaris (Solaris 9) |
Assigned to: | Chad MILLER | CPU Architecture: | Any |
Tags: | getrusage, performance, profiling |
[28 Mar 2007 15:33]
Nils Goroll
[28 Mar 2007 15:47]
Nils Goroll
Edited Synopsis: "slower" was not an adequate description of the issue
[29 Mar 2007 1:21]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/23226 ChangeSet@1.2423, 2007-03-28 21:21:34-04:00, cmiller@zippy.cornsilk.net +2 -0 Bug#27501: 5.0 significantly more sys ("kernel") time than 4.1 \ due to getrusage() calls Even if profiling is turned off, the parser makes calls to reset the state at the beginning of each query. That would eventually instantiate a PROFILE_ENTRY, which does indeed capture resource usage. Instead, now check that profiling is active before progressing far into the storage/expiration of old entries in the history. This has the pleasant side-effect that queries to toggle profiling are not recorded in the history.
[29 Mar 2007 7:31]
Nils Goroll
I am seriously impressed by the speed this bug report has been handled. We will wait for the next version and try it then. THANK YOU !
[9 Aug 2007 11:44]
Chad MILLER
Oops. This was pushed to a 5.0-community release long ago. Nothing to document.
[9 Aug 2007 12:32]
Chad MILLER
That was sent to the release that was cloned around 2007-04-03, which I calculate must have been v5.0.41.
[25 Aug 2007 16:15]
Paul DuBois
Noted in 5.0.41 changelog. Profiling overhead was incurred even with profiling disabled.