FreeBSD 10.0-BETA1 #8 r256765M spend too much time in locks

Vitalij Satanivskij satan at ukr.net
Fri Oct 25 07:23:46 UTC 2013



http://quad.org.ua/profiling.tgz

results of both methods

but for pmcstat to few buffers configured by default so not all statistics in summary ^( 



Andriy Gapon wrote:
AG> 
AG> When that high load happens again could you please run some profiling tool that
AG> is capable of capturing the whole stacks of hot code paths?
AG> 
AG> I can suggest two alternatives:
AG> 
AG> 1. hwpmc
AG> pmcstat -S instructions -O sample.out
AG> pmcstat -R sample.out -G summary.out
AG> 
AG> 2. The following DTrace script:
AG> 
AG> profile:::profile-1113
AG> /!(curthread->td_flags & 0x20)/
AG> {
AG> 
AG>         @stacks[stack()] = count();
AG> }
AG> 
AG> END
AG> {
AG>         trunc(@stacks, 10);
AG>         printa(@stacks);
AG> }
AG> -- 
AG> Andriy Gapon
AG> _______________________________________________
AG> freebsd-hackers at freebsd.org mailing list
AG> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
AG> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"


More information about the freebsd-hackers mailing list