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

Measure isBlocked and isFinished operator calls #10923

Closed
wants to merge 1 commit into from

Conversation

yingsu00
Copy link
Collaborator

@yingsu00 yingsu00 commented Sep 4, 2024

No description provided.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 4, 2024
Copy link

netlify bot commented Sep 4, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit b8705e6
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66fcded2f151a90008a65766

@yingsu00 yingsu00 force-pushed the isBlockedTime branch 2 times, most recently from 34d307d to 53f061a Compare September 20, 2024 07:42
@yingsu00 yingsu00 marked this pull request as ready for review September 21, 2024 01:06
@yingsu00
Copy link
Collaborator Author

@Yuhta @xiaoxmeng Can you please review this? Thanks!

@@ -1184,7 +1184,7 @@ DEBUG_ONLY_TEST_F(TaskTest, liveStats) {
EXPECT_EQ(32 * numBatches, operatorStats.outputBytes);
EXPECT_EQ(3 * numBatches, operatorStats.outputPositions);
EXPECT_EQ(numBatches, operatorStats.outputVectors);
EXPECT_EQ(1, operatorStats.finishTiming.count);
EXPECT_EQ(2, operatorStats.finishTiming.count);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to check isBlockedTiming e.g. in HashProbe?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. I just added it to this test.

for (auto i = 0; i < numBatches; ++i) {
    ...
    EXPECT_EQ(2 * (i + 1), operatorStats.isBlockedTiming.count);

Sorry I didn't add it until now. I was blocked by the build issues for a long time.

@yingsu00 yingsu00 force-pushed the isBlockedTime branch 2 times, most recently from 9e68cc9 to 1f1285f Compare September 27, 2024 00:46
Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yingsu00 LGTM and can you complete the test? Thanks!

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yingsu00 thanks!

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@@ -1184,7 +1185,8 @@ DEBUG_ONLY_TEST_F(TaskTest, liveStats) {
EXPECT_EQ(32 * numBatches, operatorStats.outputBytes);
EXPECT_EQ(3 * numBatches, operatorStats.outputPositions);
EXPECT_EQ(numBatches, operatorStats.outputVectors);
EXPECT_EQ(1, operatorStats.finishTiming.count);
EXPECT_EQ(2 * numBatches, operatorStats.isBlockedTiming.count);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this condition is failing in the tests

@yingsu00 yingsu00 force-pushed the isBlockedTime branch 3 times, most recently from 7210e9f to b8705e6 Compare October 2, 2024 05:49
For some operators, the isBlocked() function call is non-trivial. This
commit adds the isBlockedTiming to OperatorStats and count it in
Driver::runInternal(). It also count the isFinished() operator which
was previously missed being counted..

Note that this does not include the Presto protocol change, which will
be done later.
@facebook-github-bot
Copy link
Contributor

@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng merged this pull request in f4ca3c6.

Copy link

Conbench analyzed the 1 benchmark run on commit f4ca3c6f.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants