Uploaded image for project: 'Percona Toolkit'
  1. Percona Toolkit
  2. PT-1887

pt-diskstat is not working for new kernels

Details

    • Bug
    • Status: Done
    • Critical
    • Resolution: Fixed
    • 3.2.1
    • 3.4.0
    • Code
    • None
    • 0

    Description

      Kernel version 5 is already on some customers and the new amount of lines is 20.

      At least this piece of code should be reviewed and changed:

      sub parse_diskstats_line {
         my ( $self, $line, $block_size ) = @_;
      
         # linux kernel source => Documentation/iostats.txt
         # 2.6+   => 14 fields
         # 4.18+  => 18 fields
         my @dev_stats = split ' ', $line;
         return unless @dev_stats == 14 or @dev_stats == 18;

      Attachments

        Activity

          People

            lenz.grimmer Lenz Grimmer (Inactive)
            david.ducos David Ducos
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist