1 Answer

Best answer

Solution 1: Please use taskstats [1] related interfaces, and send TASKSTATS_TYPE_PID and TASKSTATS_TYPE_TGID commands to kernel to get a process's 'blkio_delay_total' parameter for a process with one main thread and a process with threads separately.