CLI: Do not show column headers when not outputting to a tty:
[root@felicio ~]# tuna -q en* -Q
# users affinity
54 enp1s0f0-TxRx-0 0,1,2 ixgbe
55 enp1s0f0-TxRx-1 0,1,2 ixgbe
56 enp1s0f0-TxRx-2 0,1,2 ixgbe
57 enp1s0f0-TxRx-3 0,1,2 ixgbe
58 enp1s0f0 0,1,2 ixgbe
59 enp1s0f1-TxRx-0 0,1,2 ixgbe
60 enp1s0f1-TxRx-1 0,1,2 ixgbe
61 enp1s0f1-TxRx-2 0,1,2 ixgbe
62 enp1s0f1-TxRx-3 0,1,2 ixgbe
63 enp1s0f1 0,1,2 ixgbe
66 enp7s0 0,1,2 atl1c
[root@felicio ~]# tuna -q en* -Q | head -4
54 enp1s0f0-TxRx-0 0,1,2 ixgbe
55 enp1s0f0-TxRx-1 0,1,2 ixgbe
56 enp1s0f0-TxRx-2 0,1,2 ixgbe
57 enp1s0f0-TxRx-3 0,1,2 ixgbe
[root@felicio ~]#
[root@felicio ~]# tuna -t xfs-d* -P
thread ctxt_switches
pid SCHED_ rtpri affinity voluntary nonvoluntary cmd
459 OTHER 0 0,1,2,3 2 1 xfs-data/dm-1
654 OTHER 0 0,1,2,3 2 0 xfs-data/sda1
669 OTHER 0 0,1,2,3 2 0 xfs-data/dm-2
[root@felicio ~]# tuna -t xfs-d* -P | head
459 OTHER 0 0,1,2,3 2 1 xfs-data/dm-1
654 OTHER 0 0,1,2,3 2 0 xfs-data/sda1
669 OTHER 0 0,1,2,3 2 0 xfs-data/dm-2
[root@felicio ~]#
Useful, for instance, when using wc to count how many IRQs or threadas match
some filters.
Signed-off-by: Arnaldo Carvalho de Melo <acme@felicio.ghostprotocols.net>
1 file changed