On Fri, Apr 01, 2011 at 01:05:02PM -0400, Thor Lancelot Simon wrote:
On Thu, Mar 31, 2011 at 04:32:12PM -0400, Thor Lancelot Simon wrote:
On Thu, Mar 24, 2011 at 12:04:02PM +0000, Andrew Doran wrote:
Try lockstat as suggested to see if something pathological is going on. In
addition to showing lock contention problems it can often highlight a code
path being hit too frequently for some reason.
I have attached build.sh and lockstat output from 24-way and 8-way builds
of the amd64 GENERIC kernel on this system. Also dmesg and mount -v output
so you can see what's mounted how, etc.
Mindaugas spent quite a while looking at this with me. It appears to
be largely due to contention on the page queue lock.
I did a few back-of-a-cigarette-packet calculations.
On the 8 CPU system we are burning about 1% of the total CPU time on lock
contention, so not all that significant.
On the 24 CPU system we're burning 27% of the available CPU time. So
roughly 6.5 cores worth of your machine are doing nothing but spinning on
locks. So lock contention in the VM system is a problem but it doesn't tell
the full story.