From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754736AbbAFBZi (ORCPT ); Mon, 5 Jan 2015 20:25:38 -0500 Received: from mail-qg0-f47.google.com ([209.85.192.47]:33317 "EHLO mail-qg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754175AbbAFBZc (ORCPT ); Mon, 5 Jan 2015 20:25:32 -0500 MIME-Version: 1.0 In-Reply-To: References: <20141221223204.GA9618@codemonkey.org.uk> <20141222225725.GA8140@codemonkey.org.uk> <20141224030125.GA8725@codemonkey.org.uk> <20141226163410.GA25161@codemonkey.org.uk> <20141226181204.GA26527@codemonkey.org.uk> Date: Mon, 5 Jan 2015 17:25:31 -0800 X-Google-Sender-Auth: 7jP576AKkMoA9GMiBUGvoXsPSd8 Message-ID: Subject: Re: frequent lockups in 3.18rc4 From: Linus Torvalds To: John Stultz Cc: Dave Jones , Thomas Gleixner , Chris Mason , Mike Galbraith , Ingo Molnar , Peter Zijlstra , =?UTF-8?Q?D=C3=A2niel_Fraga?= , Sasha Levin , "Paul E. McKenney" , Linux Kernel Mailing List , Suresh Siddha , Oleg Nesterov , Peter Anvin 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 Mon, Jan 5, 2015 at 5:17 PM, John Stultz wrote: > > Anyway, It may be worth keeping the 50% margin (and dropping the 12% > reduction to simplify things) Again, the 50% margin is only on the multiplication overflow. Not on the mask. So it won't do anything at all for the case we actually care about, namely a broken HPET, afaik. I'd much rather limit to 50% of the mask too. Also, why do we actually play games with ilog2 for that overflow calculation? It seems pointless. This is for the setup code, doing a real division there would seem to be a whole lot more straightforward, and not need that big comment. And there's no performance issue. Am I missing something? > I've also got a capping patch that I'm testing that keeps time reads > from passing that interval. The only thing I'm really cautious about > with that change is that we have to make sure the hrtimer that > triggers update_wall_clock is always set to expire within that cap (I > need to review it again) or else we'll hang ourselves. Yeah, that thing is fragile. And quite possibly part of the problem. Linus