Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751275AbaLDFtH (ORCPT ); Thu, 4 Dec 2014 00:49:07 -0500 Received: from mail-qc0-f170.google.com ([209.85.216.170]:54058 "EHLO mail-qc0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750724AbaLDFtF (ORCPT ); Thu, 4 Dec 2014 00:49:05 -0500 MIME-Version: 1.0 In-Reply-To: <20141204031553.GA20193@ret.masoncoding.com> References: <20141201230339.GA20487@ret.masoncoding.com> <1417529606.3924.26.camel@maggy.simpson.net> <1417540493.21136.3@mail.thefacebook.com> <20141203184111.GA32005@redhat.com> <20141203190045.GB32005@redhat.com> <20141204031553.GA20193@ret.masoncoding.com> Date: Wed, 3 Dec 2014 21:49:04 -0800 X-Google-Sender-Auth: So2Rv9-0atJVAVz5v7tfexxytnU Message-ID: Subject: Re: frequent lockups in 3.18rc4 From: Linus Torvalds To: Chris Mason , Thomas Gleixner , John Stultz , Linus Torvalds , Dave Jones , Mike Galbraith , Ingo Molnar , Peter Zijlstra , =?UTF-8?Q?D=C3=A2niel_Fraga?= , Sasha Levin , "Paul E. McKenney" , Linux Kernel Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 3, 2014 at 7:15 PM, Chris Mason wrote: > > One guess is that trinity is generating a huge number of tlb > invalidations over sparse and horrible ranges. Perhaps the old code was > falling back to full tlb flushes before Dave Hansen's string of fixes? Hmm. I agree that we've had some of the backtraces look like TLB flushing might be involved. Not all, though. And I'm not seeing where a loop over up to 33 pages should matter over doing a full TLB flush. What *might* matter is if we somehow get that number wrong, and the loops like addr = f->flush_start; while (addr < f->flush_end) { __flush_tlb_single(addr); addr += PAGE_SIZE; } ends up looping a *lot* due to some bug, and then the IPI itself would take so long that the watchdog could trigger. But I do not see how that could actually happen. As far as I can tell, either the number of pages is limited to less than 33, or we have that TLB_FLUSH_ALL case. Do you see something I don't? Linus -- 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/