On Wed, 15 Feb 2012, Roland Dreier wrote: > On Wed, Feb 15, 2012 at 6:14 PM, Hugh Dickins <hughd@xxxxxxxxxx> wrote: > > My suspicion was that it would be related to Transparent HugePages: > > they do complicate the pagetable story. And I think I have found a > > potential culprit. I don't know if nr_ptes is the only loser from > > these two split_huge_pages calls, but assuming it is... > > Do you have an idea when this bug might have been introduced? > Presumably it's been there since THP came in? That's right, since THP came in (2.6.38 on mainline, but IIRC Red Hat had THP applied to an earlier kernel). > > The reason I ask is that I have one of these exit_mm BUG_ONs > in my pile of one-off unreproducible crashes, but in my case it > happened with 2.6.39 (with THP enabled). So I'm wondering if > I can cross it off my list and blame this bug, or if it remains one > of those inexplicable mysteries... If you think that system could have been using swap, yes, cross it off (unless someone points out that I'm totally wrong, because....). But if you know that system used no swap (and didn't get involved in any memory-failure hwpoison business), then keep on worrying! Hugh