Statistics window

Discussion related to the implementation of new features & algorithms to the Core Engine.

Moderators: jromang, tomb, zcott, coordinators

Statistics window

Postby Omniflux » Wed Jun 13, 2012 7:56 pm

I have changed the statistics window for Samples / Sec etc. to use an exponential moving average instead of a rolling mean.

This increases responsiveness to large changes in the value being measured due to, for example, a change in the number of threads or the system giving more cycles to another process. The rolling mean method could take several minutes to stabilize after such a change.

The downside is this increases the jitteryness of this value again, but hopefully not too much.
Omniflux
Developer
 
Posts: 51
Joined: Mon Nov 15, 2010 8:41 pm

Re: Statistics window

Postby zsolnai » Wed Jun 13, 2012 8:42 pm

Bright idea, thank you. :)
I don't know about the exact window size as of now, but as the characteristic of this weighting function is exponential, you may want to consider using a slightly smaller one as the strength of the older weights gets negligible in a few steps.
Last edited by zsolnai on Fri Jun 15, 2012 11:12 am, edited 1 time in total.
zsolnai
Developer
 
Posts: 244
Joined: Sun May 22, 2011 6:17 pm

Re: Statistics window

Postby jeanphi » Thu Jun 14, 2012 7:22 am

Hi,

Instead of a fixed filter value you should probably use min(1, elapsedtime/filtertimewindow) otherwise depending on the frequency of the calls to the update method you'll modify the filter response (and don't forget to treat the elapsedtime==0 cas like before otherwise you might blow up the computation). The added benefit will be a more commonly understandable parameter :)

Jeanphi
jeanphi
Developer
 
Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am

Re: Statistics window

Postby Abel » Fri Jun 15, 2012 8:07 am

Thanks, I'll give it a try soon. I'm happy about the change because one of the things I use the statistics for is to see if the system is working at optimal speed and if no swapping is occurring. If there is swapping, I tend to close other programs and then watch if LuxRender's S/s value goes up; lately this didn't work too well as like you say it tended to take a long time to get closer to current speed. I'm sure there are other means to check if there is enough memory available to LuxRender but I like the direct feedback of LuxRender's statistics.
User avatar
Abel
Developer
 
Posts: 1414
Joined: Sat Oct 20, 2007 8:13 am
Location: Helsinki, Finland

Re: Statistics window

Postby Pilchard123 » Fri Jun 15, 2012 10:57 am

Abel wrote:Thanks, I'll give it a try soon. I'm happy about the change because one of the things I use the statistics for is to see if the system is working at optimal speed and if no swapping is occurring. If there is swapping, I tend to close other programs and then watch if LuxRender's S/s value goes up; lately this didn't work too well as like you say it tended to take a long time to get closer to current speed. I'm sure there are other means to check if there is enough memory available to LuxRender but I like the direct feedback of LuxRender's statistics.


What OS are you using? If you're on Windows, try task manager's (CTRL-SHIFT-ESC) processes tab, and possibly the performance tab.
Pilchard123
 
Posts: 407
Joined: Sun Oct 30, 2011 8:05 am

Re: Statistics window

Postby Omniflux » Fri Jun 15, 2012 6:42 pm

jeanphi wrote:Instead of a fixed filter value you should probably use min(1, elapsedtime/filtertimewindow) otherwise depending on the frequency of the calls to the update method you'll modify the filter response (and don't forget to treat the elapsedtime==0 cas like before otherwise you might blow up the computation). The added benefit will be a more commonly understandable parameter :)

I don't understand this. Do you mean I should be using min(1, elapsedtime/filtertimewindow) in place of the fixed value I am using for the coefficient α?
Omniflux
Developer
 
Posts: 51
Joined: Mon Nov 15, 2010 8:41 pm

Re: Statistics window

Postby jeanphi » Sat Jun 16, 2012 6:39 pm

Omniflux wrote:I don't understand this. Do you mean I should be using min(1, elapsedtime/filtertimewindow) in place of the fixed value I am using for the coefficient α?

Exactly.

Jeanphi
jeanphi
Developer
 
Posts: 6577
Joined: Mon Jan 14, 2008 7:21 am


Return to Architecture & Design

Who is online

Users browsing this forum: No registered users and 1 guest