]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311804: Rewrite CTL statistics in more simple and scalable way.
authormav <mav@FreeBSD.org>
Thu, 26 Jan 2017 20:59:36 +0000 (20:59 +0000)
committermav <mav@FreeBSD.org>
Thu, 26 Jan 2017 20:59:36 +0000 (20:59 +0000)
commit3bb971e9dfe7e073669cc3bff121b373501574f8
tree4f655e57d7e6feda1444a9aa4a311b063c59d04f
parentc07305f979ff9fde8cadf7500c7a04c12aeb14a5
MFC r311804: Rewrite CTL statistics in more simple and scalable way.

Instead of collecting statistics for each combination of ports and logical
units, that consumed ~45KB per LU with present number of ports, collect
separate statistics for every port and every logical unit separately, that
consume only 176 bytes per each single LU/port.  This reduces struct
ctl_lun size down to just 6KB.

Also new IOCTL API/ABI does not hardcode number of LUs/ports, and should
allow handling of very large quantities.

Old API is still enabled in stable branches for compatibility reasons.
sys/cam/ctl/ctl.c
sys/cam/ctl/ctl_backend.h
sys/cam/ctl/ctl_frontend.c
sys/cam/ctl/ctl_frontend.h
sys/cam/ctl/ctl_ioctl.h
sys/cam/ctl/ctl_private.h
usr.bin/ctlstat/ctlstat.8
usr.bin/ctlstat/ctlstat.c