httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52132] process activity score calculated incorrectly if time changes
Date Tue, 10 Apr 2012 21:14:52 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132

Michał Grzędzicki <lazy@iq.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Michał Grzędzicki <lazy@iq.pl> 2012-04-10 21:14:52 UTC ---
the logs suggest absolute time change the code in

fcgid_spawn_ctl.c/register_life_death()
...
    /* Decrease the score based on elapsed time */
    current_node->score -=
        sconf->time_score *
        (int)(apr_time_sec(now) - apr_time_sec(current_node->last_stat_time));

    /* Make score reasonable */
    if (current_node->score < 0)
        current_node->score = 0;

    current_node->last_stat_time = now;


mod_fcgid can easly check for time going backward, this function Isn't used
very often so I think it won't have any impact on performance

-- 
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


Mime
View raw message