Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Bugs

[Bug 52132] process activity score calculated incorrectly if time changes

 

 

Apache bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Apr 10, 2012, 2:14 PM

Post #1 of 3 (170 views)
Permalink
[Bug 52132] process activity score calculated incorrectly if time changes

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

Michał Grzędzicki <lazy [at] iq> changed:

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

--- Comment #2 from Michał Grzędzicki <lazy [at] iq> 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 [at] httpd
For additional commands, e-mail: bugs-help [at] httpd


bugzilla at apache

Apr 10, 2012, 2:16 PM

Post #2 of 3 (163 views)
Permalink
[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 [at] iq> 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 [at] httpd
For additional commands, e-mail: bugs-help [at] httpd


bugzilla at apache

Apr 10, 2012, 2:17 PM

Post #3 of 3 (164 views)
Permalink
[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 [at] iq> 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 [at] httpd
For additional commands, e-mail: bugs-help [at] httpd

Apache bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.