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

run-make-check: Showing configuration before the build #23609

Merged
merged 1 commit into from
Aug 20, 2018

Conversation

ErwanAliasr1
Copy link
Contributor

The actual code is resetting the statistics before doing the actual compilation and prints them after the build.

That is nice to understand how much the cache was used but doesn't help understanding how much it could have been used.

This patch is adding a reporting (-s) when cleaning the statistics so we can estimate :

  • the actual number of files in cache
  • the actual size of the cache

With this two missing information, its now possible estimate if there is some miss-usage of the cache.

Signed-off-by: Erwan Velu erwan@redhat.com

@@ -123,7 +123,7 @@ EOM
echo "Current ccache max_size setting:"
ccache -p | grep max_size
fi
$DRY_RUN ccache -z # Reset the ccache statistics
$DRY_RUN ccache -sz # Reset the ccache statistics & show the current configuration
Copy link
Contributor

Choose a reason for hiding this comment

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

This is just a nit, but I don't like & ampersands in code comments (the ampersand seems like a special character, so my eyes trip over it when reading). Would you mind replacing the ampersand with the word "and"?

The actual code is resetting the statistics before doing the actual compilation and prints them after the build.

That is nice to understand how much the cache was used but doesn't help understanding how much it _could_ have been used.

This patch is adding a reporting (-s) when cleaning the statistics so we can estimate :
- the actual number of files in cache
- the actual size of the cache

With this two missing information, its now possible estimate if there is some miss-usage of the cache.

Signed-off-by: Erwan Velu <erwan@redhat.com>
@ErwanAliasr1
Copy link
Contributor Author

@smithfarm updated.

@ErwanAliasr1 ErwanAliasr1 merged commit bef6670 into ceph:master Aug 20, 2018
@ErwanAliasr1 ErwanAliasr1 deleted the evelu-ccache branch August 20, 2018 09:55
@tchaikov
Copy link
Contributor

@ErwanAliasr1 next time, when you are merging a PR, could please add a "Reviewed-by: " line in the merge commit?

@ErwanAliasr1
Copy link
Contributor Author

@tchaikov Oh ok. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants