Skip to content

lsfd: add 'm' flag representing "multiplexed by epoll_wait(2)" to XMODE column#2371

Merged
karelzak merged 3 commits intoutil-linux:masterfrom
masatake:lsfd--multiplexed-flag-of-XMODE-column
Jul 11, 2023
Merged

lsfd: add 'm' flag representing "multiplexed by epoll_wait(2)" to XMODE column#2371
karelzak merged 3 commits intoutil-linux:masterfrom
masatake:lsfd--multiplexed-flag-of-XMODE-column

Conversation

@masatake
Copy link
Copy Markdown
Member

An example output:

$ ./lsfd -p 3101482 -Q '(FD > 2)'
COMMAND        PID   USER ASSOC  XMODE      TYPE       SOURCE MNTID INODE NAME
test_mkfds 3101482 yamato     3 rw---- eventpoll anon_inodefs    15   106 tfds=4,5
test_mkfds 3101482 yamato     4 r----m       CHR        mem:8    23     8 /dev/random
test_mkfds 3101482 yamato     5 -w---m       CHR        mem:8    23     8 /dev/random

The fd 4 and 5 is multiplexed by 3, an evetpoll fd.
Therefore 'm' flags in XMODE column for fd 4 and 5 are set.

Just one character but 'm' may help users to understand the "IO structure"
of a process.

masatake added 2 commits July 11, 2023 00:05
…lumn

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
…DE column

An example output:

    $ ./lsfd -p 3101482 -Q '(FD > 2)'
    COMMAND        PID   USER ASSOC  XMODE      TYPE       SOURCE MNTID INODE NAME
    test_mkfds 3101482 yamato     3 rw---- eventpoll anon_inodefs    15   106 tfds=4,5
    test_mkfds 3101482 yamato     4 r----m       CHR        mem:8    23     8 /dev/random
    test_mkfds 3101482 yamato     5 -w---m       CHR        mem:8    23     8 /dev/random

The fd 4 and 5 is multiplexed by 3, an evetpoll fd.
Therefore 'm' flags in XMODE column for fd 4 and 5 are set.

Just one character but 'm' may help users to understand the "IO structure"
of a process.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
@masatake masatake force-pushed the lsfd--multiplexed-flag-of-XMODE-column branch from 95d9116 to 25729a3 Compare July 10, 2023 16:22
@karelzak
Copy link
Copy Markdown
Collaborator

What about also adding a MULTI column and printing the number of the multiplexing FD there? ;-)

@masatake
Copy link
Copy Markdown
Member Author

What about also adding a MULTI column and printing the number of the multiplexing FD there? ;-)

Thank you. Added the idea to #1418 (comment).

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

Successfully merging this pull request may close these issues.

3 participants