From owner-freebsd-current@FreeBSD.ORG Tue Feb 10 20:20:51 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A1CB1065670 for ; Tue, 10 Feb 2009 20:20:51 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id ED0258FC1F for ; Tue, 10 Feb 2009 20:20:50 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LWz67-0005Ho-Bi for freebsd-current@freebsd.org; Tue, 10 Feb 2009 20:20:47 +0000 Received: from mulderlab.f5.com ([205.229.151.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 20:20:47 +0000 Received: from atkin901 by mulderlab.f5.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Feb 2009 20:20:47 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Mark Atkinson Date: Tue, 10 Feb 2009 12:20:39 -0800 Lines: 40 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mulderlab.f5.com User-Agent: KNode/0.10.9 Sender: news Subject: Re: memory alignment problems with -current on amd64? [Found Cause] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2009 20:20:51 -0000 Mark Atkinson wrote: > Mark Atkinson wrote: >> With recent kernels on HAMMER/amd64 I cannot complete a buildworld. The >> compilation keeps failing with problems like: [...] >> /usr/src/gnu/usr.bin/binutils/as/../../../../contrib/binutils/gas/subsegs.c:205: >> internal compiler error: Bus error: 10 Please submit a full bug report, >> with preprocessed source if appropriate. See >> for instructions. *** Error code 1 1 [...] >> If I boot back to a kernel from sources Oct 15th 2008, I can complete a >> buildworld on this machine no problem. >> >> * This is a HP DL385G5 with 1 quad core AMD 2100 and 10G of memory. >> * This the amd64 GENERIC kernel >> * I've tried reducing hw.physmem to 2G, but that didn't make any >> difference. * I will recieve bus errors when running buildworld w/ -j1 >> * If I run buildworld with a larger number the machine will reset w/ no >> panic. [...] > Since I can go back to the Oct 15th kernel and do a complete buildworld, I > can only assume -current has changed since then for amd64 sizing to maybe > access something other than what the e820 method would return? Well, taking the information I knew -- OCT 15th == good, Mid DEC == BAD, I trolled every commit logged between. Eventually I found this one: http://svn.freebsd.org/viewvc/base?view=revision&revision=185715 http://docs.freebsd.org/cgi/mid.cgi?200812061937.mB6JbqAI003273 I set vm.pmap.pg_ps_enabled="0" in /boot/loader.conf, and was able to complete buildworld and -j16 buildworld and -j8 buildkernel no problem. It appears superpage mapping causes alignment problems on this box. -- Mark Atkinson atkin901@yahoo.com (!wired)?(coffee++):(wired);