From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by kanga.kvack.org (Postfix) with ESMTP id 28C636B003C for ; Tue, 10 Dec 2013 19:50:24 -0500 (EST) Received: by mail-pd0-f178.google.com with SMTP id y10so8492704pdj.9 for ; Tue, 10 Dec 2013 16:50:23 -0800 (PST) Received: from e28smtp08.in.ibm.com (e28smtp08.in.ibm.com. [122.248.162.8]) by mx.google.com with ESMTPS id sa6si11876889pbb.203.2013.12.10.16.50.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 10 Dec 2013 16:50:22 -0800 (PST) Received: from /spool/local by e28smtp08.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 11 Dec 2013 06:20:19 +0530 Received: from d28relay04.in.ibm.com (d28relay04.in.ibm.com [9.184.220.61]) by d28dlp03.in.ibm.com (Postfix) with ESMTP id F234D1258051 for ; Wed, 11 Dec 2013 06:21:25 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay04.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id rBB0oDDO57868518 for ; Wed, 11 Dec 2013 06:20:13 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id rBB0oFbi030653 for ; Wed, 11 Dec 2013 06:20:16 +0530 From: Wanpeng Li Subject: [PATCH v5 6/8] sched/numa: fix period_slot recalculation Date: Wed, 11 Dec 2013 08:49:59 +0800 Message-Id: <1386723001-25408-7-git-send-email-liwanp@linux.vnet.ibm.com> In-Reply-To: <1386723001-25408-1-git-send-email-liwanp@linux.vnet.ibm.com> References: <1386723001-25408-1-git-send-email-liwanp@linux.vnet.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: Andrew Morton Cc: Ingo Molnar , Rik van Riel , Mel Gorman , Peter Zijlstra , Naoya Horiguchi , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Wanpeng Li Changelog: v3 -> v4: * remove period_slot recalculation The original code is as intended and was meant to scale the difference between the NUMA_PERIOD_THRESHOLD and local/remote ratio when adjusting the scan period. The period_slot recalculation can be dropped. Reviewed-by: Naoya Horiguchi Signed-off-by: Wanpeng Li --- kernel/sched/fair.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 106a607..ac5f1e7 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1360,7 +1360,6 @@ static void update_task_scan_period(struct task_struct *p, * scanning faster if shared accesses dominate as it may * simply bounce migrations uselessly */ - period_slot = DIV_ROUND_UP(diff, NUMA_PERIOD_SLOTS); ratio = DIV_ROUND_UP(private * NUMA_PERIOD_SLOTS, (private + shared)); diff = (diff * ratio) / NUMA_PERIOD_SLOTS; } -- 1.7.7.6 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org