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

iolatency tool, awk bug with tmux process #119

Open
mattthhh opened this issue May 22, 2024 · 0 comments
Open

iolatency tool, awk bug with tmux process #119

mattthhh opened this issue May 22, 2024 · 0 comments

Comments

@mattthhh
Copy link

Hi, when I wanted to export your bash tool to trace I/O events into a Python program, I found a little bug.

    tmux: server-421224 [000] ..s. 828844.906117: block_rq_complete: 8,0 W () 18471784 + 8 [0] (awk variable dev = block_rq_complete:)
    tmux: server-421224 [000] ..s. 828844.906210: block_rq_complete: 8,0 W () 18471832 + 8 [0] (awk variable dev = block_rq_complete:)
    tmux: server-421224 [000] ..s. 828844.906217: block_rq_complete: 8,0 W () 18471888 + 24 [0] (awk variable dev = block_rq_complete:)
    tmux: server-421224 [000] ..s. 828844.906288: block_rq_complete: 8,0 W () 18471920 + 16 [0] (awk variable dev = block_rq_complete:)
    tmux: server-421224 [000] ..s. 828844.906489: block_rq_complete: 8,0 W () 18471968 + 8 [0] (awk variable dev = block_rq_complete:)
    ...

In this case, tmux with tmux: server-... add a new separator with space in awk, then the "dev" variable is false. Btw, the program don't crash and prints :

  >=(ms) .. <(ms)   : I/O      |Distribution                          |
       0 -> 1       : 8        |######################################|

How does the tool react ? What is the purpose of the "dev" variable ?

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