Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932168Ab2JHWgW (ORCPT ); Mon, 8 Oct 2012 18:36:22 -0400 Received: from mail-qc0-f180.google.com ([209.85.216.180]:47531 "EHLO mail-qc0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753763Ab2JHWgQ (ORCPT ); Mon, 8 Oct 2012 18:36:16 -0400 From: Frederic Weisbecker To: LKML Cc: Frederic Weisbecker , Peter Zijlstra , Ingo Molnar , Thomas Gleixner , Tony Luck , Fenghua Yu , Benjamin Herrenschmidt , Paul Mackerras , Heiko Carstens , Martin Schwidefsky , Avi Kivity , Marcelo Tosatti , Joerg Roedel , Alexander Graf , Xiantao Zhang , Christian Borntraeger , Cornelia Huck Subject: [PATCH 0/3] cputime: Moar cleanups / enhancements Date: Tue, 9 Oct 2012 00:36:05 +0200 Message-Id: <1349735768-17586-1-git-send-email-fweisbec@gmail.com> X-Mailer: git-send-email 1.7.5.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1647 Lines: 44 Hi, I think that the 1st and 3rd patches are pretty uncontroversial given how vtime_account() confusingly tries to do everything for CONFIG_VIRT_CPU_ACCOUNTING and CONFIG_IRQ_TIME_ACCOUNTING. I believe the 2nd is also desired. vtime_account() is called two times per irq, sometimes more if softirqs are involved. So I think we want to optimize that by calling directly its specialized APIs when possible. There is still some work to do but I'm proceeding step by step. I may focuse more on that generic vtime implementation next time to implement cputime accounting for the tickmess patchset. That, for sure, will inspire for even more cputime optimizations/cleanups. Thanks. PS: tested on x86 and ppc64 (checked reliability of times and /proc/stat). But only built tested on s390 and ia64. Frederic Weisbecker (3): kvm: Directly account vtime to system on guest switch cputime: Specialize irq vtime hooks cputime: Separate irqtime accounting from generic vtime arch/ia64/kernel/time.c | 1 + arch/powerpc/kernel/time.c | 1 + arch/s390/kernel/vtime.c | 4 ++ include/linux/hardirq.h | 80 +++++++++++++++++++++++++++++++++++-------- include/linux/kernel_stat.h | 8 ---- include/linux/kvm_host.h | 12 +++++- kernel/sched/cputime.c | 8 ++-- kernel/softirq.c | 6 ++-- 8 files changed, 88 insertions(+), 32 deletions(-) -- 1.7.5.4 -- 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/