Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754506AbbH0OrN (ORCPT ); Thu, 27 Aug 2015 10:47:13 -0400 Received: from smtprelay0190.hostedemail.com ([216.40.44.190]:34878 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752299AbbH0OrL (ORCPT ); Thu, 27 Aug 2015 10:47:11 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2553:2559:2562:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4470:5007:6261:6742:7514:7875:9108:10004:10226:10394:10400:10848:10967:11232:11658:11914:12296:12517:12519:12663:12740:13069:13311:13357:14096:14097:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: step38_78a01591f7f46 X-Filterd-Recvd-Size: 2865 Date: Thu, 27 Aug 2015 10:47:07 -0400 From: Steven Rostedt To: Frederic Weisbecker Cc: Hideaki Kimura , Jason Low , Oleg Nesterov , Andrew Morton , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , "Paul E. McKenney" , linux-kernel@vger.kernel.org, Linus Torvalds , Rik van Riel , Scott J Norton Subject: Re: [PATCH 0/3] timer: Improve itimers scalability Message-ID: <20150827104707.6943c312@gandalf.local.home> In-Reply-To: <20150827131844.GB21105@lerouge> References: <1440559068-29680-1-git-send-email-jason.low2@hp.com> <20150825202710.d960a928.akpm@linux-foundation.org> <1440606804.23728.85.camel@j-VirtualBox> <20150826170851.GA5264@redhat.com> <1440626847.23728.122.camel@j-VirtualBox> <55DE4366.9080104@hpe.com> <20150826231326.GE11992@lerouge> <55DE4FA8.7050701@hpe.com> <20150827131844.GB21105@lerouge> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1554 Lines: 37 On Thu, 27 Aug 2015 15:18:49 +0200 Frederic Weisbecker wrote: > On Wed, Aug 26, 2015 at 04:45:44PM -0700, Hideaki Kimura wrote: > > I totally agree that this is not a perfect solution. If there are 10x more > > cores and sockets, just the atomic fetch_add might be too expensive. > > > > However, it's comparatively/realistically the best thing we can do without > > any drawbacks. We can't magically force all library developers to write the > > most scalable code always. > > > > My point is: this is a safety net, and a very effective one. > > I mean the problem here is that a library uses an unscalable profiling feature, > unconditionally as soon as you load it without even initializing anything. And > this library is used in production. > > At first sight, fixing that in the kernel is only a hack that just reduces a bit > the symptoms. > > What is the technical issue that prevents from fixing that in the library itself? > Posix timers can be attached anytime. I'm curious to what the downside of this patch set is? If we can fix a problem that should be fixed in userspace, but does not harm the kernel by doing so, is that bad? (an argument for kdbus? ;-) As Hideaki noted, this could be a problem in other locations as well that people have yet to find. -- Steve -- 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/