Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752184AbcLFHGO (ORCPT ); Tue, 6 Dec 2016 02:06:14 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:54473 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751556AbcLFHGK (ORCPT ); Tue, 6 Dec 2016 02:06:10 -0500 Date: Tue, 6 Dec 2016 08:04:32 +0100 From: Martin Schwidefsky To: Paul Mackerras Cc: Frederic Weisbecker , LKML , Tony Luck , Wanpeng Li , Peter Zijlstra , Michael Ellerman , Heiko Carstens , Benjamin Herrenschmidt , Thomas Gleixner , Ingo Molnar , Fenghua Yu , Rik van Riel , Stanislaw Gruszka Subject: Re: [PATCH 00/10] vtime: Delay cputime accounting to tick In-Reply-To: <20161206042055.GB9068@fergus.ozlabs.ibm.com> References: <1480991543-6557-1-git-send-email-fweisbec@gmail.com> <20161206042055.GB9068@fergus.ozlabs.ibm.com> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16120607-0032-0000-0000-00000254CC47 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16120607-0033-0000-0000-00001E0BE3A7 Message-Id: <20161206080432.6a937476@mschwideX1> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-06_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612060121 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1383 Lines: 34 On Tue, 6 Dec 2016 15:20:55 +1100 Paul Mackerras wrote: > On Tue, Dec 06, 2016 at 03:32:13AM +0100, Frederic Weisbecker wrote: > > This follows up Martin Schwidefsky's patch which propose to delay > > cputime accounting to the tick in order to minimize the calls to > > account_system_time() and alikes as these functions can carry quite some > > overhead: > > > > http://lkml.kernel.org/r/20161121111728.13a0a3db@mschwide > > > > The set includes Martin's patch, rebased on top of tip:sched/core and > > latest s390 changes, and extends it to the other implementations of > > CONFIG_VIRT_CPU_ACCOUNTING_NATIVE (powerpc and ia64) along with a few > > core changes to adapt the whole. > > > > Only built-tested though as I don't have access to any of these archs. > > The patches look reasonable at a quick look. I assume that to test > them, we would want to run a guest in an overcommitted system, so as > to get some steal time. Do you have any more specific suggestions as > to what to run as a test? Just run some benchmark and see if the > user/system/irq times look reasonable? Or do you have something more > quantitative? My quick test this morning showed that for s390 it works quite well. I yet have to do more detailed tests to see if the numbers really add up. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.