From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752517Ab2LTWk5 (ORCPT ); Thu, 20 Dec 2012 17:40:57 -0500 Received: from mail-da0-f41.google.com ([209.85.210.41]:40099 "EHLO mail-da0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133Ab2LTWkv (ORCPT ); Thu, 20 Dec 2012 17:40:51 -0500 Date: Thu, 20 Dec 2012 14:40:59 -0800 (PST) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Linus Torvalds cc: Sasha Levin , Mel Gorman , Andrew Morton , Ingo Molnar , Petr Holasek , Linux Kernel Mailing List , linux-mm Subject: Re: [PATCH] ksm: make rmap walks more scalable In-Reply-To: Message-ID: References: <50D387FD.4020008@oracle.com> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 Dec 2012, Linus Torvalds wrote: > On Thu, Dec 20, 2012 at 1:49 PM, Sasha Levin wrote: > > On 12/19/2012 08:44 PM, Hugh Dickins wrote: > >> The rmap walks in ksm.c are like those in rmap.c: > >> they can safely be done with anon_vma_lock_read(). > >> > >> Signed-off-by: Hugh Dickins > >> --- > > > > Hi Hugh, > > > > This patch didn't fix the ksm oopses I'm seeing. > > > > This is with both patches applied: > > Looks like another NULL mm pointer in ksmd.. Hugh fixed one in > 2832bc19f666 ("sched: numa: ksm: fix oops in task_numa_placment()"), > this looks like more of the same. > > At a guess, it looks like get_mergeable_page() has a rmap_item with no > mm. No idea how that happened. Hugh? Some race due to something that > depended on the mmap_sem being exclusive, rather than for > read-ownership? No, it's just a misunderstanding: Sasha's problem is with a linux-next that has Petr's NUMA KSM patch in, and we're still ironing known issues out of that one. Not a problem for 3.8-rc1. Hugh