From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752412AbcFNQap (ORCPT ); Tue, 14 Jun 2016 12:30:45 -0400 Received: from www.linutronix.de ([62.245.132.108]:35326 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbcFNQao (ORCPT ); Tue, 14 Jun 2016 12:30:44 -0400 Date: Tue, 14 Jun 2016 18:28:43 +0200 (CEST) From: Thomas Gleixner To: Ingo Molnar cc: Peter Zijlstra , LKML , "Paul E. McKenney" , Eric Dumazet , Frederic Weisbecker , Chris Mason , Arjan van de Ven , rt@linutronix.de, Linus Torvalds Subject: Re: [patch 13/20] timer: Switch to a non cascading wheel In-Reply-To: <20160614101144.GA849@gmail.com> Message-ID: References: <20160613070440.950649741@linutronix.de> <20160613075929.282143900@linutronix.de> <20160613114005.GY30909@twins.programming.kicks-ass.net> <20160614101144.GA849@gmail.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Jun 2016, Ingo Molnar wrote: > * Thomas Gleixner wrote: > > On Mon, 13 Jun 2016, Peter Zijlstra wrote: > > > On Mon, Jun 13, 2016 at 08:41:00AM -0000, Thomas Gleixner wrote: > > > > + > > > > + /* Cascading, sigh... */ > > > > > > So given that userspace has no influence on timer period; can't we > > > simply fail to support timers longer than 30 minutes? > > > > > > In anything really arming timers _that_ long? > > > > Unfortunately yes. Networking being one of those. Real cascading happens once > > in a blue moon, but it happens. > > So I'd really prefer it if we added a few more levels, a hard limit and got rid of > the cascading once and for all! > > IMHO 'once in a blue moon' code is much worse than a bit more data overhead. I agree. If we add two wheel levels then we end up with: HZ 1000: 134217727 ms ~= 37 hours HZ 250: 536870908 ms ~= 149 hours HZ 100: 1342177270 ms ~= 372 hours Looking through all my data I found exactly one timeout which is insanely large: 120 hours! That's net/netfilter/nf_conntrack_core.c: setup_timer(&ct->timeout, death_by_timeout, (unsigned long)ct); Anything else is way below 37 hours. Thanks, tglx