I'm using the pidstat to monitor the cpu usage of a process and it shows 100%. For the same process the htop or top shows 200% for the same process. The system has 16 cores, and the process i am monitoring was set to use only two cores. So the htop or top reported %CPU is correct.
I also changed the process to use only one core and in that case also pidstat shows 100% cpu and htop shows 100%
Is pidstat measures the %CPU differently?