Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752398AbbKBUH7 (ORCPT ); Mon, 2 Nov 2015 15:07:59 -0500 Received: from mga01.intel.com ([192.55.52.88]:50983 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbbKBUH6 (ORCPT ); Mon, 2 Nov 2015 15:07:58 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,236,1444719600"; d="scan'208";a="676882570" Subject: Re: [lkp] [fs] df4c0e36f1: NMI watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [swapper/0:1] To: Andrey Ryabinin References: <87611kakr3.fsf@yhuang-dev.intel.com> <56379FDE.6010603@intel.com> Cc: kernel test robot , LKP , LKML , Andrew Morton , David Rientjes , Pekka Enberg , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Andi Kleen , Joonsoo Kim , Christoph Lameter , Sasha Levin , Konstantin Khlebnikov , Yuri Gribov , Andrey Konovalov , Konstantin Serebryany , Dmitry Vyukov , Linus Torvalds From: Dave Hansen Message-ID: <5637C288.9070508@intel.com> Date: Mon, 2 Nov 2015 12:07:36 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 979 Lines: 23 On 11/02/2015 11:34 AM, Andrey Ryabinin wrote: >>> >> >>> >> [ 1.159450] augmented rbtree testing -> 23675 cycles >>> >> [ 1.864996] >>> >> It took less than a second, meanwhile in your case it didn't finish in >>> >> 22 seconds. >>> >> >>> >> This makes me think that your host is overloaded and the problem is on >>> >> your side. >> > >> > It's probably just a matter of putting some cond_resched()s in the test >> > code. > Yes, but is it worthwhile? It's very likely that lockup will just > trigger in another place. I'm guessing that the lockup here was because the tests were running for too long. If we cond_resched() in there often enough, the kernel won't detect a softlockup at all. It won't shift somewhere else. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/