From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754814AbcFTN66 (ORCPT ); Mon, 20 Jun 2016 09:58:58 -0400 Received: from www.linutronix.de ([62.245.132.108]:60126 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752872AbcFTN6a (ORCPT ); Mon, 20 Jun 2016 09:58:30 -0400 Date: Mon, 20 Jun 2016 15:56:10 +0200 (CEST) From: Thomas Gleixner To: Eric Dumazet cc: LKML , Ingo Molnar , Peter Zijlstra , "Paul E. McKenney" , Frederic Weisbecker , Chris Mason , Arjan van de Ven , rt@linutronix.de, Rik van Riel , Linus Torvalds , George Spelvin , Len Brown Subject: Re: [patch V2 00/20] timer: Refactor the timer wheel In-Reply-To: Message-ID: References: <20160617121134.417319325@linutronix.de> 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 17 Jun 2016, Eric Dumazet wrote: > To avoid increasing probability of such events we would need to have > at least 4 ms difference between the RTO timer and delack timer. > > Meaning we have to increase both of them and increase P99 latencies of > RPC workloads. > > Maybe a switch to hrtimer would be less risky. > But I do not know yet if it is doable without big performance penalty. That will be a big performance issue. So we have the following choices: 1) Increase the wheel size for HZ=1000. Doable, but utter waste of space and obviously more pointless work when collecting expired timers. 2) Cut off at 37hrs for HZ=1000. We could make this configurable as a 1000HZ option so datacenter folks can use this and people who don't care and want better batching for power can use the 4ms thingy. 3) Split the wheel granularities. That would leave the first wheel with tick granularity and the next 3 with 12.5% worst case and then for the further out timers we'd switch to 25%. Thoughts? Thanks, tglx