From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753643AbcIAJdq (ORCPT ); Thu, 1 Sep 2016 05:33:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47584 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751873AbcIAJbg (ORCPT ); Thu, 1 Sep 2016 05:31:36 -0400 From: Stanislaw Gruszka To: linux-kernel@vger.kernel.org Cc: Giovanni Gherdovich , Linus Torvalds , Mel Gorman , Mike Galbraith , Paolo Bonzini , Peter Zijlstra , Rik van Riel , Thomas Gleixner , Wanpeng Li , Ingo Molnar , Stanislaw Gruszka Subject: [PATCH 0/3] sched/cputime: sum_exec_runtime fixes for 32-bit cpus Date: Thu, 1 Sep 2016 11:27:41 +0200 Message-Id: <1472722064-7151-1-git-send-email-sgruszka@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 01 Sep 2016 09:31:36 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We already improved scalability of SYS_times() and SYS_clock_gettimes(CLOCK_PROCESS_CPUTIME_ID) syscalls on 64-bit cpus. However performance on 32-bit cpus is still poor. Patches improved that and fix sum_exec_runtime 64 bit variable possible (but very very unlike) inconsistency problem on 32-bit architectures. Second patch could be merged with first one, but I posted it separately for eventual discussion. Stanislaw Gruszka (3): sched/cputime: Improve scalability of times()/clock_gettime() on 32 bit cpus sched/cputime: Make nr_migrations u32 on 32 bit cpus sched/cputime: Protect other sum_exec_runtime reads on 32 bit cpus fs/proc/base.c | 2 +- include/linux/sched.h | 40 ++++++++++++++++++++++++++++++++++++++-- kernel/delayacct.c | 2 +- kernel/exit.c | 2 +- kernel/sched/core.c | 17 +++++------------ kernel/sched/cputime.c | 24 ++---------------------- kernel/sched/deadline.c | 2 +- kernel/sched/debug.c | 4 ++-- kernel/sched/fair.c | 2 +- kernel/sched/rt.c | 2 +- kernel/time/posix-cpu-timers.c | 7 ++++--- 11 files changed, 57 insertions(+), 47 deletions(-) -- 1.8.3.1