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

wrong results of sample commands #119

Open
fthommen opened this issue Jul 6, 2022 · 0 comments
Open

wrong results of sample commands #119

fthommen opened this issue Jul 6, 2022 · 0 comments

Comments

@fthommen
Copy link

fthommen commented Jul 6, 2022

Hi,

the following sample commands yield wrong results in sampler:

  • /usr/bin/ps -ef | grep mbatchd | grep -v grep | wc -l consistently results in one more than the number of mbatchd processes
  • /usr/bin/ps -eLf | grep 'mbatchd' | grep -v 'grep' | wc -l results in around 20 to 30 more than the number of mbatchd threads

The whole configuration block looks like

runcharts:
  - title: mbatchd processes and threads
    position: [[0, 0], [45, 19]]
    rate-ms: 2000
    legend:
        enabled: true
        details: true
    scale: 0
    items:
      - label: mbatchd processes
        sample: /usr/bin/ps -ef | grep mbatchd | grep -v grep | wc -l
      - label: mbatchd threads
        sample: /usr/bin/ps -eLf | grep 'mbatchd' | grep -v 'grep' | wc -l

Any idea what could be the problem? Is there a way to see, how sampler evaluates the sample commands?

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