From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikunj A Dadhania Subject: Re: KVM: Softlockups in guests while running kernbench Date: Fri, 11 May 2012 12:08:01 +0530 Message-ID: <87obpvw7cm.fsf@linux.vnet.ibm.com> References: <87wr4kjvtk.fsf@abhimanyu.in.ibm.com> <4FAB88B8.5060203@redhat.com> <87pqace4an.fsf@abhimanyu.in.ibm.com> <87ipg4drgd.fsf@abhimanyu.in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Andrea Arcangeli , KVM , LKML To: Avi Kivity , Ingo Molnar , Peter Zijlstra Return-path: Received: from e23smtp03.au.ibm.com ([202.81.31.145]:49453 "EHLO e23smtp03.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751618Ab2EKHPT (ORCPT ); Fri, 11 May 2012 03:15:19 -0400 Received: from /spool/local by e23smtp03.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 11 May 2012 06:29:08 +1000 In-Reply-To: <87ipg4drgd.fsf@abhimanyu.in.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 10 May 2012 20:16:26 +0530, Nikunj A Dadhania wrote: > On Thu, 10 May 2012 15:39:04 +0530, Nikunj A Dadhania wrote: > > I had a discussion with Avi on IRC, he suggested running a trace on the > host for the sched: tracepoints > > So when I see the console of the guest, i can see the soft-lockup > messages. When I start tracing, soft-lockups disappear. > > Kernbench is started from the host; ps output: > 13359 pts/1 S+ 0:00 perf stat -a -- ssh root@192.168.123.11 cd /root/linux-src; kernbench -f -M -H -o 16 > /root/kbench.log > 13362 pts/1 S+ 0:00 ssh root@192.168.123.11 cd /root/linux-src; kernbench -f -M -H -o 16 > /root/kbench.log > 13373 pts/1 S+ 0:00 perf stat -a -- ssh root@192.168.123.12 cd /root/linux-src; kernbench -f -M -H -o 16 > /root/kbench.log > 13376 pts/1 S+ 0:00 ssh root@192.168.123.12 cd /root/linux-src; kernbench -f -M -H -o 16 > /root/kbench.log > 13387 pts/1 S+ 0:00 perf stat -a -- ssh root@192.168.123.13 cd /root/linux-src; kernbench -f -M -H -o 16 > /root/kbench.log > 13390 pts/1 S+ 0:00 ssh root@192.168.123.13 cd /root/linux-src; kernbench -f -M -H -o 16 > /root/kbench.log > 13401 pts/1 S+ 0:00 perf stat -a -- ssh root@192.168.123.14 cd /root/linux-src; kernbench -f -M -H -o 16 > /root/kbench.log > 13402 pts/1 S+ 0:00 ssh root@192.168.123.14 cd /root/linux-src; kernbench -f -M -H -o 16 > /root/kbench.log > > I have tried following commands trace-cmd: > 1) trace-cmd record -e kvm -e sched -b 100000 -p 13362 > 2) trace-cmd record -e sched -b 100000 -p 13362 > 3) trace-cmd record -e kvm -b 100000 -p 13362 > > I have tried trace-cmd on qemu pid as well, I see similar behaviour in > that case. > > Peterz/Ingo, Any clue on debugging this would help. > With CONFIG_DEBUG_SPINLOCK=y in guest config, I stop seeing the soft-lockup Nikunj