Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266880AbUJNUyA (ORCPT ); Thu, 14 Oct 2004 16:54:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S267554AbUJNUvQ (ORCPT ); Thu, 14 Oct 2004 16:51:16 -0400 Received: from cantor.suse.de ([195.135.220.2]:56249 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id S266880AbUJNSk0 (ORCPT ); Thu, 14 Oct 2004 14:40:26 -0400 Date: Thu, 14 Oct 2004 20:40:18 +0200 From: Andi Kleen To: Brad Fitzpatrick Cc: linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [OOPS] 2.6.9-rc4, dual Opteron, NUMA, 8GB Message-ID: <20041014184017.GD7973@wotan.suse.de> References: <416D8999.7080102@pobox.com> <416D8C33.9080401@osdl.org> <416D9139.1060200@osdl.org> <20041013232104.7e8dd97e.ak@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4190 Lines: 94 On Thu, Oct 14, 2004 at 11:29:52AM -0700, Brad Fitzpatrick wrote: > On Wed, 13 Oct 2004, Brad Fitzpatrick wrote: > > ... > > > > It turns out that NUMA is the culprit and LVM has no effect on any > > configuration. The machine has 6 memory slots. If I have 4 sticks of > > 2GB in the machine, it makes zone 0 w/ 8GB and zone 1 disabled. If I > > add two more 2GB sticks (total 12GB, filling all possible 6 slots), > > then I have 8GB in zone 0 and 4GB in zone 1, and then a mke2fs on a > > 280GB /dev/sdb1 works fine. > > > > In conclusion: > > > > NUMA + 12 GB -> works > > NUMA + 8 GB -> OOPS > > no numa + 8 GB -> works > > > > And I suspect that without CONFIG_SMP, 8GB will also work, by virtue > > of there only being one NUMA zone. I haven't tested that yet, but > > Randy referred me to these posts, where somebody with the same problem > > confirms that disabling NUMA and SMP fixes his problem: > > > > http://marc.theaimsgroup.com/?l=linux-kernel&m=109328505204081&w=2 > > http://marc.theaimsgroup.com/?l=linux-kernel&m=109330259511819&w=2 > > > > Replying to myself, in hopes it'll benefit others. > > It also works with NUMA and 8GB if I balance the memory between the two > processors, 2 sticks of 2GB on each. > > Then the zones look like: > > Scanning NUMA topology in Northbridge 24 > Number of nodes 2 (10010) > Node 0 MemBase 0000000000000000 Limit 00000000ffffffff > Node 1 MemBase 0000000100000000 Limit 00000001ffffffff > node 1 shift 24 addr 100000000 conflict 0 > node 1 shift 25 addr 1fe000000 conflict 0 > Using node hash shift of 26 > Bootmem setup node 0 0000000000000000-00000000ffffffff > Bootmem setup node 1 0000000100000000-00000001ffffffff > No mptable found. > On node 0 totalpages: 1048575 > DMA zone: 4096 pages, LIFO batch:1 > Normal zone: 1044479 pages, LIFO batch:16 > HighMem zone: 0 pages, LIFO batch:1 > On node 1 totalpages: 1048575 > DMA zone: 0 pages, LIFO batch:1 > Normal zone: 1048575 pages, LIFO batch:16 > HighMem zone: 0 pages, LIFO batch:1 > > > The eServer 325 manual in one place says you must add memory in > pairs, and in other places seems to suggest (but not say it's required?) > that you add memory in 1 & 2, then 5 & 6 (with SMP), and then 3 & 4. > > It would've been nice if Linux either flat-out halted on boot saying, > "This is stupid, move your memory around" or ran in a degraded memory > configuration reliably without crashing. The scary part is that the BIOS > was cool with the configuration and Linux was /mostly/ cool with it, most > of the time, until certain usage patterns (like mke2fs) made it crash. Linux has no such limitations in the NUMA code, so it wouldn't make sense to test for it. Most likely it was just an hardware problem - specific memory configurations don't work correctly in your motherboard and in specific memory access patterns triggered by mkfs, possible including bus master IO from the RAID controller, it corrupted data. It's not possible in Linux to test for all the limitations all the systems it could run on may have in their memory configuration. Linux just assumes that it can use the memory it gets passed. I would talk to your BIOS vendor about better sanity checking or perhaps your motherboard vendor about not adding such restrictions > Andi, I can still get you information, but for now I'll mark this one down > as "user error". Perhals you'll have an idea on how to make Linux more > robust if another user winds up with this same issue, as Christopher > Swingley and I did. There is no way to make Linux robust with unreliable memory subsystems, sorry. It would be like trying to make a human more robust with an unreliable O2 supply. Memory just has to work. There are tools like memtest86 that can be used to diagnose such things in a controlled environment. But in your case it probably involved PCI traffic, and that is hard to simulate with standard tools. -Andi - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/