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

Add metric to cacth the double free error in mmap allocator #8648

Closed
wants to merge 1 commit into from

Conversation

xiaoxmeng
Copy link
Contributor

@xiaoxmeng xiaoxmeng commented Feb 2, 2024

Currently we only have a warning log for double free in mmap allocator
and we shall also add a metric for production alert.

Copy link

netlify bot commented Feb 2, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 631639c
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/66161d2f320618000862ee01

@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 Feb 2, 2024
@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.

@xiaoxmeng xiaoxmeng marked this pull request as ready for review February 2, 2024 07:34
@xiaoxmeng xiaoxmeng force-pushed the fatal branch 2 times, most recently from eaf3afe to 0187320 Compare April 9, 2024 18:29
@xiaoxmeng xiaoxmeng changed the title Throw error in case of double memory free to catch failure early Add metric to cacth the double free error in mmap allocator Apr 9, 2024
@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.

@@ -143,6 +143,10 @@ void registerVeloxMetrics() {
DEFINE_METRIC(
kMetricMemoryPoolReservationLeakBytes, facebook::velox::StatType::SUM);

// Tracks the count of double frees in memory allocator.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: how about: Tracks the count of double frees in memory allocator, indicating the possibility of buffer ownership issues when a buffer is freed more than once.

@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.

…incubator#8648)

Summary:
Currently we only have a warning log for double free in mmap allocator
and we shall also add a metric for production alert.


Reviewed By: bikramSingh91

Differential Revision: D53341067

Pulled By: xiaoxmeng
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53341067

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng merged this pull request in c4cd265.

Copy link

Conbench analyzed the 1 benchmark run on commit c4cd2659.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

@xiaoxmeng xiaoxmeng deleted the fatal branch April 10, 2024 15:24
yanngyoung pushed a commit to yanngyoung/velox that referenced this pull request Apr 12, 2024
…incubator#8648)

Summary:
Currently we only have a warning log for double free in mmap allocator
and we shall also add a metric for production alert.

Pull Request resolved: facebookincubator#8648

Reviewed By: bikramSingh91

Differential Revision: D53341067

Pulled By: xiaoxmeng

fbshipit-source-id: 3d0979a1621ebae1180b3d59cd98345fd0c4dff8
Joe-Abraham pushed a commit to Joe-Abraham/velox that referenced this pull request Jun 7, 2024
…incubator#8648)

Summary:
Currently we only have a warning log for double free in mmap allocator
and we shall also add a metric for production alert.

Pull Request resolved: facebookincubator#8648

Reviewed By: bikramSingh91

Differential Revision: D53341067

Pulled By: xiaoxmeng

fbshipit-source-id: 3d0979a1621ebae1180b3d59cd98345fd0c4dff8
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. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants