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

feat(test): Track memory leak (or) memory corruption issues #334

Open
mittachaitu opened this issue May 21, 2020 · 1 comment
Open

feat(test): Track memory leak (or) memory corruption issues #334

mittachaitu opened this issue May 21, 2020 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@mittachaitu
Copy link

What would you like to be added:
It will help to fix memory issues/corruption in cstor-istgt.

Why is this needed:
Add a test case to track memory leak (or) corruption using Valgrind tool

Describe the solution you'd like:
[A clear and concise description of what you want to happen]

Environment:

  • OpenEBS version:
  • Kubernetes version (use kubectl version):
  • Kubernetes installer & version:
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
@mittachaitu
Copy link
Author

Explored Valgrind tool to detect memory leak/corruption in istgt

  • It is able to give stats about the memory only once the istgt process is killed/died.
  • It doesn't support attaching the currently running process to it(By its design).
  • If will kill the Valgrind process then it will not give any stats about memory usage.
    Ex: We need to launch istgt process as Valgrind ./istgt to get memory stats but if we kill that process then it is not giving any stats about the memory(since Valgrind itself dies so no one is there to print output).
    ============
    Basically, to overcome the above issue we need to have istgtcontrol command to kill istgt process alone and need to check whether Valgrind is able to give stats.

@mittachaitu mittachaitu added the help wanted Extra attention is needed label Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant