Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-3226

Disk statistics on Linux don't work with some devices (like HP CCISS raid) and it consumes too many CPU cycles

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.6, 1.9.5 (alpha)
    • 1.8.4rc2
    • Agent (G)
    • None
    • RHEL5 on HP DL385 servers

      a) The disk stats have issues with the way devices but no partitions are detected. For example with HP servers the disks are named like this:

      /dev/cciss/c0d0 -> first controller, first disk
      /dev/cciss/c0d0p1 -> first controller, first disk, partition 1

      The simple logic in diskio.c removes all cciss/c0d0 devices from the list and thus they can not be monitored.

      b) On servers with lot of disks and partitions the reading of diskstats takes too many CPU cycles. For example on of my servers has a /proc/diskstats file with more than 300 lines! Some simple changes in the parsing logic greatly reduce the CPU load by skipping most unneeded reads of /proc/diskstats.

      Note: I have also increased MAX_DISKDEVICES to 64 for my environment.

      Attached patch fixes those issues.

            Unassigned Unassigned
            simix Simon Matter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: