Skip to content

releaseBackToAllocator random failure #30

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

Closed
igchor opened this issue Jan 11, 2022 · 0 comments
Closed

releaseBackToAllocator random failure #30

igchor opened this issue Jan 11, 2022 · 0 comments

Comments

@igchor
Copy link

igchor commented Jan 11, 2022

When running cachebench with config-4G-DRAM-4G-PMEM-4G-NVM with 24 or 48 thread releaseBackToAllocator fails randomly.

Specifically, this branch is taken:

  if (!it.isDrained()) {
     throw std::runtime_error(
           folly::sformat("cannot release this item: {}", it.toString()));
  }

When I tried to print it.refRaw() value it was 0 (which means that it.isDrained() is also true and thee branch should not be taken). This suggests there is some kind of race.

For now, I've implemented workaround here: 6ab52a7

@igchor igchor closed this as completed Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant