Em algumas versões de ps
, a coluna %CPU
mostra o uso médio da CPU durante toda a vida útil do processo. Outros implementam uma média de decaimento ( link ), mas mesmo assim você teria que esperar um tempo depois de suspender para a média cair para 0.
pcpu
The ratio of CPU time used recently to CPU time available in the same period, expressed as a percentage. The meaning of "recently" in this context is unspecified. The CPU time available is determined in an unspecified manner.
E a justificativa:
The pcpu field indicates that the CPU time available is determined in an unspecified manner. This is because it is difficult to express an algorithm that is useful across all possible machine architectures. Historical counterparts to this value have attempted to show percentage of use in the recent past, such as the preceding minute. Frequently, these values for all processes did not add up to 100%. Implementations are encouraged to provide data in this field to users that will help them identify processes currently affecting the performance of the system.