From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753500Ab2LJMfN (ORCPT ); Mon, 10 Dec 2012 07:35:13 -0500 Received: from mail-bk0-f46.google.com ([209.85.214.46]:46067 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753114Ab2LJMfH (ORCPT ); Mon, 10 Dec 2012 07:35:07 -0500 Date: Mon, 10 Dec 2012 13:35:01 +0100 From: Ingo Molnar To: Srikar Dronamraju Cc: Mel Gorman , Peter Zijlstra , Andrea Arcangeli , Rik van Riel , Johannes Weiner , Hugh Dickins , Thomas Gleixner , Paul Turner , Hillf Danton , David Rientjes , Lee Schermerhorn , Alex Shi , Aneesh Kumar , Linus Torvalds , Andrew Morton , Linux-MM , LKML Subject: Re: [PATCH 00/49] Automatic NUMA Balancing v10 Message-ID: <20121210123501.GA8968@gmail.com> References: <1354875832-9700-1-git-send-email-mgorman@suse.de> <20121207110113.GB21482@gmail.com> <20121209203630.GC1009@suse.de> <20121210050710.GC22164@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121210050710.GC22164@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi Srikar, * Srikar Dronamraju wrote: > > > > Either way, last night I applied a patch on top of latest tip/master to > > remove the nr_cpus_allowed check so that numacore would be enabled again > > and tested that. In some places it has indeed much improved. In others > > it is still regressing badly and in two case, it's corrupting memory -- > > specjbb when THP is enabled crashes when running for single or multiple > > JVMs. It is likely that a zero page is being inserted due to a race with > > migration and causes the JVM to throw a null pointer exception. Here is > > the comparison on the rough off-chance you actually read it this time. > > I see this failure when running with THP and KSM enabled on > Friday's Tip master. Not sure if Mel was talking about the same issue. > > ------------[ cut here ]------------ > kernel BUG at ../kernel/sched/fair.c:2371! Could you check whether today's -tip (7ea8701a1a51 or later), plus the patch below, addresses the crash - while still giving good NUMA performance? Thanks, Ingo diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 9d11a8a..6a89787 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -2351,6 +2351,9 @@ void task_numa_fault(unsigned long addr, int node, int last_cpupid, int pages, b int priv; int idx; + if (!p->numa_faults) + return; + if (last_cpupid != cpu_pid_to_cpupid(-1, -1)) { /* Did we access it last time around? */ if (last_pid == this_pid) {