Hi

I wonder if the expected number of pprof 'total samples' could be 
calculated by:
                duration * sample_rate (100HZ) * CPU usage (by 'top')

say if my program's CPU usage reported by 'top' is 200%, and sampling 
period is 30 seconds, could I expect the total samples of pprof is 
approximately:
                  30 * 100 * 2  => 6K ?

The formula works well on some physical machines/docker containers, but not 
all of them, sometimes the samples made by pprof is only 50~60% of the 
expected number, that ratio is stable on a specific machine/container.  
Curious to know what could be the rationale behind it?

Thanks.


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/5f8ca229-1390-46c1-93aa-2840406122a8n%40googlegroups.com.

Reply via email to