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

Failed to read thread allocated/de-allocated bytes: mallctl: not using jemalloc #134

Open
guodong opened this issue Jul 8, 2022 · 0 comments

Comments

@guodong
Copy link

guodong commented Jul 8, 2022

Please use this template for reporting suspected bugs or requests for help.

Issue Description

I have built OpenR and tested it in a mininet env. But the log on each instance shows the following error:

E0708 02:45:17.745582 266847 Util.cpp:190] Failed to read thread allocated/de-allocated bytes: mallctl: not using jemalloc

Environment

  • tag or commit hash on which this occured: 660c13e
  • OS version: Ubuntu 20.04

It seems that the error is not fatal to break OpenR, is it an incorrect invoke of folly?

Code in Util.cpp that throws the error:

uint64_t
getThreadBytesImpl(bool isAllocated) {
  uint64_t bytes{0};
  const char* cmd = isAllocated ? "thread.allocated" : "thread.deallocated";
  try {
    folly::mallctlRead(cmd, &bytes);
  } catch (const std::exception& ex) {
    XLOG(ERR) << "Failed to read thread allocated/de-allocated bytes: "
              << ex.what();
  }
  return bytes;
}
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