Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Frederic Weisbecker Newsgroups: linux.kernel Subject: Re: [PATCH 2/2] sched,time: call __acct_update_integrals once a jiffy Date: Sat, 30 Jan 2016 21:40:02 +0100 Message-ID: References: X-Original-To: Mike Galbraith Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=hYAmehzSRwuAF9n8NPfYj3cglibxmZHy0RN0Qv/VBhU=; b=MtQNDa1389RtU3djbrxn34PnfoCPNSv1lsab2EZ0gBYfOIaaXSrOW//jUNCJR+rOKP e+Fe5aSwF6l4LN9z18hDt38Bx0Q1J4xbvdiKZCPUrT2RY1rpuTTTGNt3bSB2/GckVFD2 +W7M1+nhFnED/FcpklXVmiCYQynu3huca1KiLgSn5diuQTQsl8jtyy+vFXwM0EV5bM3v K29flvjPT3kjJuqcrgOJwfLkeFuitPV/3GgNFBUqIz1TjWO5/35UEUM2WwIM9TjpIJW7 4GrWZb72bC8TIeHVaCfYXmJec4Dt7S/W+Po0WnDDAelLJ34l+0sBzkGUWzU033cS2hqu y9gA== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=hYAmehzSRwuAF9n8NPfYj3cglibxmZHy0RN0Qv/VBhU=; b=Cfl+sl8R81FeD/ki4Q2gXV1xaVuTveibYzuh/mR6EZA8LG9ghLVOgok+YhODlYhDfT 9T6RP6zMtD3jtU4mlGe0vHMrNrlldiG7IIGm+NIGgABLUQZiJ5oHBnHPFbkKef+g5eG8 iOEFLOZBJ6VtSHIO3VU+bcuEJ6dEgusHy05z3KfNkdNbyvOI+IY4LdEo5muuWdSwGo5B +UVVNTI15AVMVR1InFKc+ce8BPOi7u494Niz1wLmZWw7wDmi+SVzajV9vKKWibC/GGJj 03wZRf0Psz25/hylZZdC2GCf21npkn7Kv5RBWhOPUSQQl8INNAE7KBhlxZnSar6NzILq BJqQ== X-Gm-Message-State: AG10YORxv31cLCZPgd73E2/HmKZaYHcwkQQQ8tWijKWihh726Rq4/qhCehP+4LGCmbHqzw== X-Received: by 10.194.21.135 with SMTP id v7mr14979758wje.131.1454186171233; Sat, 30 Jan 2016 12:36:11 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: robomod@news.nic.it List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Approved: robomod@news.nic.it Lines: 49 Organization: linux.* mail to news gateway X-Original-Cc: Rik van Riel , linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, luto@amacapital.net, Clark Williams X-Original-Date: Sat, 30 Jan 2016 21:36:05 +0100 X-Original-Message-ID: <20160130203602.GA7856@lerouge> X-Original-References: <1454106180-20918-1-git-send-email-riel@redhat.com> <1454106180-20918-3-git-send-email-riel@redhat.com> <56ABEB10.5060307@redhat.com> <20160130142037.GA32581@lerouge> <1454176385.3797.23.camel@gmail.com> X-Original-Sender: linux-kernel-owner@vger.kernel.org Xref: csiph.com linux.kernel:1322506 On Sat, Jan 30, 2016 at 06:53:05PM +0100, Mike Galbraith wrote: > On Sat, 2016-01-30 at 15:20 +0100, Frederic Weisbecker wrote: > > On Fri, Jan 29, 2016 at 05:43:28PM -0500, Rik van Riel wrote: > > > > Run times for the microbenchmark: > > > > > > 4.4 3.8 seconds > > > 4.5-rc1 3.7 seconds > > > 4.5-rc1 + first patch 3.3 seconds > > > 4.5-rc1 + both patches 2.3 seconds > > > > Very nice improvement! > > Tasty indeed. > > When nohz_full CPUs are not isolated, ie are being used as generic > CPUs, get_nohz_timer_target() is a problem with things like tbench. So by isolated CPU you mean those part of isolcpus= boot option, right? > > tbench 8 with Rik's patches applied: > nohz_full=empty > Throughput 3204.69 MB/sec 1.000 > nohz_full=1-3,5-7 > Throughput 1354.99 MB/sec .422 1.000 > nohz_full=1-3,5-7 + club below > Throughput 2762.22 MB/sec .861 2.038 > > With Rik's patches and a club, tbench becomes nearly acceptable. > --- > include/linux/tick.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/include/linux/tick.h > +++ b/include/linux/tick.h > @@ -184,7 +184,7 @@ static inline const struct cpumask *hous > static inline bool is_housekeeping_cpu(int cpu) > { > #ifdef CONFIG_NO_HZ_FULL > - if (tick_nohz_full_enabled()) > + if (tick_nohz_full_enabled() && runqueue_is_isolated(cpu)) > return cpumask_test_cpu(cpu, housekeeping_mask); This makes me confused. How forcing timers to CPUs in isolcpus is making better results? > #endif > return true;