From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756488AbbDVP3s (ORCPT ); Wed, 22 Apr 2015 11:29:48 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:60716 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756682AbbDVP3q (ORCPT ); Wed, 22 Apr 2015 11:29:46 -0400 Date: Wed, 22 Apr 2015 17:29:40 +0200 From: Peter Zijlstra To: Eric Dumazet Cc: Thomas Gleixner , viresh kumar , Ingo Molnar , linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Steven Miao , shashim@codeaurora.org Subject: Re: [PATCH 1/2] timer: Avoid waking up an idle-core by migrate running timer Message-ID: <20150422152940.GC3007@worktop.Skamania.guest> References: <80182e47a7103608d2ddab7f62c0c3dffc99fdcc.1427782893.git.viresh.kumar@linaro.org> <5530C086.2020700@linaro.org> <1429653295.18561.16.camel@edumazet-glaptop2.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429653295.18561.16.camel@edumazet-glaptop2.roam.corp.google.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 21, 2015 at 02:54:55PM -0700, Eric Dumazet wrote: > On Tue, 2015-04-21 at 23:32 +0200, Thomas Gleixner wrote: > > > > > Are you realizing that __mod_timer() is a massive hotpath for network > > heavy workloads? > > BTW I was considering using mod_timer_pinned() from these networking > timers (ie sk_reset_timer()) > > get_nohz_timer_target() sounds cool for laptop users, but is one cause > for bad responses to DDOS, when the selected cpu gets stressed. > > This is the reason I used mod_timer_pinned() in commit 789f558cfb3680ae > ("tcp/dccp: get rid of central timewait timer") Hmm, that sounds unfortunate, this would wreck life for the power aware laptop/tablet etc.. people. There is already a sysctl to manage this, is that not enough to mitigate this problem on the server side of things?