mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add a new tool named chpstat that can be used to view channel-path
statistics such as utilization and I/O throughput, and to query and
control the status of the channel-path statistics function.
Note: Channel-path statistics are only available on systems running in
an LPAR or DPM partition.
When run without further options, data for all channel-paths is
displayed repeatedly with a 5 second delay in table format.
Example output:
CHANNEL-PATH UTILIZATION(%) READ(B/s) WRITE(B/s)
ID TYP CMG SHR SPEED PART TOTAL BUS PART TOTAL PART TOTAL
1d 25 2 1 - 7.16 7.50 7.50 129M 129M 0.00 161K
21 1b 2 1 32G 0.00 0.00 0.00 0.00 0.00 0.00 0.00
34 1b 2 1 32G 0.00 0.00 0.00 0.00 0.00 0.00 0.00
61 25 2 1 - 0.00 0.01 0.00 0.00 2.00K 0.00 307K
63 25 2 1 - 0.00 0.01 0.00 0.00 0.00 0.00 381K
bd 11 2 1 10G - - - 529.8 532.1 616.3 616.3
Reviewed-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Signed-off-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
25 lines
622 B
Makefile
25 lines
622 B
Makefile
include ../../common.mak
|
|
|
|
all: chchp lschp chpstat
|
|
$(MAKE) -C chpstat all
|
|
|
|
libs = $(rootdir)/libutil/libutil.a
|
|
|
|
chchp: chchp.o $(libs)
|
|
lschp: lschp.o $(libs)
|
|
|
|
install: all
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 chchp $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -g $(GROUP) -o $(OWNER) -m 755 lschp $(DESTDIR)$(BINDIR)
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(MANDIR)/man8
|
|
$(INSTALL) -m 644 -c chchp.8 $(DESTDIR)$(MANDIR)/man8
|
|
$(INSTALL) -m 644 -c lschp.8 $(DESTDIR)$(MANDIR)/man8
|
|
$(MAKE) -C chpstat install
|
|
|
|
clean:
|
|
rm -f *.o chchp lschp
|
|
$(MAKE) -C chpstat clean
|
|
|
|
.PHONY: all install clean
|