Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Save Analysis Data of an I/O Analysis Task to the Database

Symptom

An I/O analysis task fails, with an error message displayed indicating that analysis data fails to be saved to the database because some data is missing in the collection result file.

Possible Cause

The value of buffer_size_kb may be too small.

Troubleshooting Procedure

  1. (Optional) Mount debugfs. If debugfs has been mounted, skip this step.
    1
    mount -t debugfs debugfs mount_path
    

    You can run the mount -l | grep debugfs command to check whether the file system has been mounted. If yes, the following information is displayed, in which /sys/kernel/debug is the mount path.

    1
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    
  2. Query the value of buffer_size_kb.
    1
    cat mount_path/tracing/buffer_size_kb
    
  3. Modify the value of buffer_size_kb.
    1
    echo  value > mount_path/tracing/buffer_size_kb
    

    The value must be greater than the current value. It is recommended that the product of the value and the number of CPU cores be less than the free memory (which can be queried using free -l).

  4. (Optional) Dismount debugfs.

    If debugfs is not mounted in the original environment, you can dismount debugfs after modifying buffer_size_kb.

    1
    umount mount_path