Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROSS/CODES sampling is a mess #192

Open
nmcglo opened this issue Nov 4, 2019 · 2 comments
Open

ROSS/CODES sampling is a mess #192

nmcglo opened this issue Nov 4, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@nmcglo
Copy link
Member

nmcglo commented Nov 4, 2019

I sort of mentioned this in #164 but feel like it needs its own issue as the other one's original text had been addressed.

The statistics that are put into the sampling structures is kind of a mess and isn't well documented. For example we have code like this in dragonfly-dally.C's packet_send() function:

        if(s->last_buf_full > 0.0)
        {
            bf->c6 = 1;
            msg->saved_total_time = s->busy_time;
            msg->saved_busy_time = s->last_buf_full;
            msg->saved_sample_time = s->busy_time_sample;

            s->busy_time += (tw_now(lp) - s->last_buf_full);
            s->busy_time_sample += (tw_now(lp) - s->last_buf_full);
            s->ross_sample.busy_time_sample += (tw_now(lp) - s->last_buf_full);
            msg->saved_busy_time_ross = s->busy_time_ross_sample;
            s->busy_time_ross_sample += (tw_now(lp) - s->last_buf_full);
            s->last_buf_full = 0.0;
        }

poor re-use of unrelated RC msg variable names aside, there's obviously a lot of repeated behavior encoded in this snippet. Why is there a s->ross_sample.busy_time_sample value AND a s->busy_time_ross_sample value? What is the difference?

@nmcglo nmcglo added enhancement New feature or request help wanted Extra attention is needed labels Nov 4, 2019
@nmcglo
Copy link
Member Author

nmcglo commented Nov 4, 2019

@caitlinross, I'd love some time to chat if you had some insight about these features, I've assigned you on this issue just to consult (unless you wanted to tackle it all yourself!)

@caitlinross
Copy link
Member

Whoops I'm not on github much (we use gitlab at Kitware) so I completely missed this. Probably got an email but I've gotten so many emails from the repo lately that I probably missed it. :)

Anyway, at some point after SC or maybe Thanksgiving I can probably take some time to help out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants