From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756887AbcA3OUn (ORCPT ); Sat, 30 Jan 2016 09:20:43 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33426 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754213AbcA3OUm (ORCPT ); Sat, 30 Jan 2016 09:20:42 -0500 Date: Sat, 30 Jan 2016 15:20:39 +0100 From: Frederic Weisbecker To: Rik van Riel Cc: linux-kernel@vger.kernel.org, tglx@linutronix.de, mingo@kernel.org, peterz@infradead.org, luto@amacapital.net, Clark Williams Subject: Re: [PATCH 2/2] sched,time: call __acct_update_integrals once a jiffy Message-ID: <20160130142037.GA32581@lerouge> References: <1454106180-20918-1-git-send-email-riel@redhat.com> <1454106180-20918-3-git-send-email-riel@redhat.com> <56ABEB10.5060307@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56ABEB10.5060307@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 29, 2016 at 05:43:28PM -0500, Rik van Riel wrote: > On 01/29/2016 05:23 PM, riel@redhat.com wrote: > > From: Rik van Riel > > > This speeds up > > ... ok, that changelog got truncated :( > > Here is the full version: > > > Because __acct_update_integrals does nothing unless the time > interval in question exceeds a jiffy, there is no real reason > to call it more than once a jiffy from the syscall, irq, and > guest entry & exit paths. > > If tasks get rescheduled frequently, the scheduler will still > update their time statistics normally. > > However, longer running tasks with frequent syscall, irq, > or guest entry & exit see a difference with this patch. > > A microbenchmark calling an invalid syscall number 10 million > times in a row speeds up an additional 30% over the numbers > with just the previous patch, for a total speedup of about 40% > over 4.4 and 4.5-rc1. > > 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!