Mailing List Archive

[Bug 52132] process activity score calculated incorrectly if time changes
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
[Bug 52132] process activity score calculated incorrectly if time changes [ In reply to ]
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132

--- Comment #3 from Michał Grzędzicki <lazy@iq.pl> 2012-04-10 21:16:07 UTC ---
Created attachment 28573
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28573
check for time going back

--
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
[Bug 52132] process activity score calculated incorrectly if time changes [ In reply to ]
https://issues.apache.org/bugzilla/show_bug.cgi?id=52132

Michał Grzędzicki <lazy@iq.pl> 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