User Tools

Site Tools


documentation:technical_docs:performance

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
documentation:technical_docs:performance [2019/07/09 18:04]
olivier [Where is the bottleneck ?]
documentation:technical_docs:performance [2019/07/17 17:32] (current)
olivier [Where is the bottleneck ?]
Line 764: Line 764:
 less /​data/​pmc.stacks less /​data/​pmc.stacks
 </​code>​ </​code>​
 +
 +=== Lock contention source ===
 +
 +To identifying lock contention source (like if function lock_delay or __mtx_lock_sleep was quite high from the pcm output), you can try to search which lock is contended and why with lockstat.
 +
 +You can generate 2 output:
 +  * contented locks broken down by type: <​code>​lockstat -x aggsize=4m sleep 10 > lock-type.txt</​code>​
 +  * stacks associated with the lock contention to identify the source: <​code>​lockstat -x aggsize=4m -s 10 sleep 10 > lock-stacks.txt </​code>​
documentation/technical_docs/performance.1562688243.txt.gz ยท Last modified: 2019/07/09 18:04 by olivier