From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id 430628D0039 for ; Fri, 11 Feb 2011 15:24:46 -0500 (EST) Date: Fri, 11 Feb 2011 21:24:31 +0100 From: Andrea Arcangeli Subject: Re: [mmotm] BUG: Bad page state in process khugepaged ? Message-ID: <20110211202431.GJ3347@random.random> References: <20110209151036.f24a36a6.kamezawa.hiroyu@jp.fujitsu.com> <20110209155001.0e369475.nishimura@mxp.nes.nec.co.jp> <20110209155246.69a7f3a1.kamezawa.hiroyu@jp.fujitsu.com> <20110209200728.GQ3347@random.random> <20110211104906.GE3347@random.random> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Hugh Dickins Cc: KAMEZAWA Hiroyuki , Daisuke Nishimura , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "hannes@cmpxchg.org" On Fri, Feb 11, 2011 at 11:58:58AM -0800, Hugh Dickins wrote: > Oh, I hadn't realized Fedora use it. I wonder if that's wise, I thought > Nick introduced it partly for the more expensive checks, and there might > be one or two of those around - those bad_range()s in page_alloc.c? I doubt the more expensive checks are very measurable.. benchmarks usually run on enterprise distro. I'm sure when they enabled, they were aware of having to run more expensive runtime checks. > But the patch actually says -1024*1024: either would do. I actually increased it to -1024*1024 after writing the email ;) sorry the for the confusion. > Yes, that's fine, 0xfff00000 looks unlikely enough (and my > imagination for "deadbeef"-like magic is too drowsy today). I used a negative power of two even if I doubt the compiler can make much use of it. > Okay I suppose: it seems rather laboured to me, I think I'd have just > moved the VM_BUG_ON into rmv_page_order() if I'd done the patch; but > since I was too lazy to do it, I'd better be grateful for yours! Ok the reason I didn't move the VM_BUG_ON is to be stricter in case there are more usages of __ClearPageBuddy in the future. I guess it's not so important, but when I initially implemented it, it wasn't entirely obvious it would work safe with memory hotplug, compaction and all other bits using PageBuddy, so... -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org