From owner-freebsd-arm@FreeBSD.ORG Sun Nov 11 08:12:29 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F16416A517; Sun, 11 Nov 2007 08:12:29 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1AB7E13C480; Sun, 11 Nov 2007 08:12:29 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id lAB8CKdh042186; Sun, 11 Nov 2007 03:12:20 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.1/8.14.1) with ESMTP id lAB8CJT6090645; Sun, 11 Nov 2007 03:12:19 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 82D7C7302F; Sun, 11 Nov 2007 03:12:19 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071111081219.82D7C7302F@freebsd-current.sentex.ca> Date: Sun, 11 Nov 2007 03:12:19 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/4641/Tue Oct 30 15:59:09 2007 clamav-milter version 0.91.2 on clamscanner5 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2007 08:12:29 -0000 TB --- 2007-11-11 06:55:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-11-11 06:55:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-11-11 06:55:00 - cleaning the object tree TB --- 2007-11-11 06:55:24 - checking out the source tree TB --- 2007-11-11 06:55:24 - cd /tinderbox/HEAD/arm/arm TB --- 2007-11-11 06:55:24 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-11-11 07:04:24 - building world (CFLAGS=-O2 -pipe) TB --- 2007-11-11 07:04:24 - cd /src TB --- 2007-11-11 07:04:24 - /usr/bin/make -B buildworld >>> World build started on Sun Nov 11 07:04:25 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/main.c cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/mbufs.c cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/netcmds.c /src/usr.bin/systat/netcmds.c: In function 'netcmd': /src/usr.bin/systat/netcmds.c:127: internal compiler error: internal consistency failure Please submit a full bug report, with preprocessed source if appropriate. See for instructions. *** Error code 1 Stop in /src/usr.bin/systat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-11-11 08:12:19 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-11-11 08:12:19 - ERROR: failed to build world TB --- 2007-11-11 08:12:19 - tinderbox aborted TB --- 0.45 user 1.65 system 4638.80 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Sun Nov 11 17:29:28 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2698316A46B; Sun, 11 Nov 2007 17:29:28 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 47B3013C4B8; Sun, 11 Nov 2007 17:29:26 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id lABGuiZS074007; Sun, 11 Nov 2007 11:56:44 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.1/8.14.1) with ESMTP id lABGui3J085124; Sun, 11 Nov 2007 11:56:44 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 47B667302F; Sun, 11 Nov 2007 11:56:44 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071111165644.47B667302F@freebsd-current.sentex.ca> Date: Sun, 11 Nov 2007 11:56:44 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/4641/Tue Oct 30 15:59:09 2007 clamav-milter version 0.91.2 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2007 17:29:28 -0000 TB --- 2007-11-11 15:40:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-11-11 15:40:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-11-11 15:40:00 - cleaning the object tree TB --- 2007-11-11 15:40:26 - checking out the source tree TB --- 2007-11-11 15:40:26 - cd /tinderbox/HEAD/arm/arm TB --- 2007-11-11 15:40:26 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-11-11 15:49:33 - building world (CFLAGS=-O2 -pipe) TB --- 2007-11-11 15:49:33 - cd /src TB --- 2007-11-11 15:49:33 - /usr/bin/make -B buildworld >>> World build started on Sun Nov 11 15:49:34 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/main.c cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/mbufs.c cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/netcmds.c /src/usr.bin/systat/netcmds.c: In function 'netcmd': /src/usr.bin/systat/netcmds.c:127: internal compiler error: internal consistency failure Please submit a full bug report, with preprocessed source if appropriate. See for instructions. *** Error code 1 Stop in /src/usr.bin/systat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-11-11 16:56:43 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-11-11 16:56:43 - ERROR: failed to build world TB --- 2007-11-11 16:56:43 - tinderbox aborted TB --- 0.47 user 1.64 system 4603.80 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Mon Nov 12 01:55:43 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 858CD16A419; Mon, 12 Nov 2007 01:55:43 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 4328913C4A7; Mon, 12 Nov 2007 01:55:43 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.8/8.13.8) with ESMTP id lAC1aJn9034356; Sun, 11 Nov 2007 20:36:19 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.1/8.14.1) with ESMTP id lAC1aJqa055118; Sun, 11 Nov 2007 20:36:19 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id F132F7302F; Sun, 11 Nov 2007 20:36:18 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071112013618.F132F7302F@freebsd-current.sentex.ca> Date: Sun, 11 Nov 2007 20:36:18 -0500 (EST) X-Virus-Scanned: ClamAV 0.91.2/4641/Tue Oct 30 15:59:09 2007 clamav-milter version 0.91.2 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2007 01:55:43 -0000 TB --- 2007-11-12 00:20:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-11-12 00:20:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-11-12 00:20:00 - cleaning the object tree TB --- 2007-11-12 00:20:25 - checking out the source tree TB --- 2007-11-12 00:20:25 - cd /tinderbox/HEAD/arm/arm TB --- 2007-11-12 00:20:25 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-11-12 00:29:23 - building world (CFLAGS=-O2 -pipe) TB --- 2007-11-12 00:29:23 - cd /src TB --- 2007-11-12 00:29:23 - /usr/bin/make -B buildworld >>> World build started on Mon Nov 12 00:29:24 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/main.c cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/mbufs.c cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/netcmds.c /src/usr.bin/systat/netcmds.c: In function 'netcmd': /src/usr.bin/systat/netcmds.c:127: internal compiler error: internal consistency failure Please submit a full bug report, with preprocessed source if appropriate. See for instructions. *** Error code 1 Stop in /src/usr.bin/systat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-11-12 01:36:18 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-11-12 01:36:18 - ERROR: failed to build world TB --- 2007-11-12 01:36:18 - tinderbox aborted TB --- 0.42 user 1.66 system 4578.37 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Mon Nov 12 10:22:15 2007 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F4BC16A419; Mon, 12 Nov 2007 10:22:15 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id ADFD513C4B3; Mon, 12 Nov 2007 10:22:14 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.14.1/8.13.8) with ESMTP id lACALxA6034675; Mon, 12 Nov 2007 05:21:59 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.1/8.14.1) with ESMTP id lACALwia081858; Mon, 12 Nov 2007 05:21:58 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id AE7F87302F; Mon, 12 Nov 2007 05:21:58 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20071112102158.AE7F87302F@freebsd-current.sentex.ca> Date: Mon, 12 Nov 2007 05:21:58 -0500 (EST) X-Virus-Scanned: ClamAV 0.90.2/3781/Fri Jul 27 07:24:10 2007 clamav-milter version 0.91.1 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2007 10:22:15 -0000 TB --- 2007-11-12 09:05:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-11-12 09:05:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-11-12 09:05:00 - cleaning the object tree TB --- 2007-11-12 09:05:26 - checking out the source tree TB --- 2007-11-12 09:05:26 - cd /tinderbox/HEAD/arm/arm TB --- 2007-11-12 09:05:26 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-11-12 09:14:26 - building world (CFLAGS=-O2 -pipe) TB --- 2007-11-12 09:14:26 - cd /src TB --- 2007-11-12 09:14:26 - /usr/bin/make -B buildworld >>> World build started on Mon Nov 12 09:14:28 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/main.c cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/mbufs.c cc -O2 -pipe -DINET6 -c /src/usr.bin/systat/netcmds.c /src/usr.bin/systat/netcmds.c: In function 'netcmd': /src/usr.bin/systat/netcmds.c:127: internal compiler error: internal consistency failure Please submit a full bug report, with preprocessed source if appropriate. See for instructions. *** Error code 1 Stop in /src/usr.bin/systat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-11-12 10:21:58 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-11-12 10:21:58 - ERROR: failed to build world TB --- 2007-11-12 10:21:58 - tinderbox aborted TB --- 0.31 user 1.81 system 4617.65 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Wed Nov 14 22:26:58 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 60DBE16A421 for ; Wed, 14 Nov 2007 22:26:58 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (casselton.net [63.165.140.2]) by mx1.freebsd.org (Postfix) with ESMTP id 182A413C46E for ; Wed, 14 Nov 2007 22:26:57 +0000 (UTC) (envelope-from tinguely@casselton.net) Received: from casselton.net (localhost [127.0.0.1]) by casselton.net (8.13.8/8.13.8) with ESMTP id lAEMQvUQ014805 for ; Wed, 14 Nov 2007 16:26:57 -0600 (CST) (envelope-from tinguely@casselton.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=casselton.net; s=ccnMail; t=1195079217; bh=EUjbek0W0IN575zqcHR65V3qdA9jHywA7dZMUyy lATk=; h=Date:From:Message-Id:To:Subject; b=WnEXw4ROdQnrs8zHk9e1AXU jl6DhGuuibTUltfanvR/W+PcYRfGgsCLlcYjZOIVAkTW6sMMFZ9ZCwgh0OKf5cy4SM1 bCxYWSwtJA24QyXVrFpupYW6XsCkftadNW+pudWnuKPzFg663LghiyZGAsMlqDWx3Sy oZjivTSBKOXwXI= Received: (from tinguely@localhost) by casselton.net (8.13.8/8.13.8/Submit) id lAEMQvjv014802 for freebsd-arm@freebsd.org; Wed, 14 Nov 2007 16:26:57 -0600 (CST) (envelope-from tinguely) Date: Wed, 14 Nov 2007 16:26:57 -0600 (CST) From: Mark Tinguely Message-Id: <200711142226.lAEMQvjv014802@casselton.net> To: freebsd-arm@freebsd.org Subject: rare pmap.c bug X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 22:26:58 -0000 I think there is a small bug in the allocation of the L1 domain numbers ARM pmap.c BUT it is my guess that no one should ever see in real life. why? because you have to reuse the L1 9 times AT ONE TIME to trigger the bug. My gut thinks reusing the L1 twice AT ONE TIME is rare. pmap_init_l1() allocates the array l1->l1_domain_free to equal: {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 0 } l1->l1_domain_free[15] is the initial value. l1->l1_domain_first = 1 pmap_alloc_l1() allocated the odd domain numbers. domain = l1->l1_domain_first (1) l1->l1_domain_first = l1->l1_domain_free[domain] (3) next pmap_alloc_l1() **without calling pmap_free_l1()**: domain = l1->l1_domain_first (3) l1->l1_domain_first = l1->l1_domain_free[domain] (5) next pmap_alloc_l1() **without calling pmap_free_l1()**: domain = l1->l1_domain_first (5) l1->l1_domain_first = l1->l1_domain_free[domain] (7) ... domain = l1->l1_domain_first (15) l1->l1_domain_first = l1->l1_domain_free[domain] (0) on the 9th pmap_alloc_l1() **without calling pmap_free_l1()**: domain = l1->l1_domain_first (0) <- Kernel domain! l1->l1_domain_first = l1->l1_domain_free[domain] (2) It is extremely unlikely that people are running enough processes on an ARM machine to ever trigger the bug. A simple fix would be to increment the l1->l1_domain_free array by 1. But the 15th call to pmap_alloc_l1() will leave the l1->l1_domain_first wrong with could cause problems with the next pmap_free_l1(). A zero value could be given a special meaning to pmap_free_l1(). I find it even more interesting idea to just pull the preallocated L1s out; preallocate a couple L1 in an idleloop for perfomance; implement pmap_copy() to decrease page faults after a fork ... --Mark Tinguely. From owner-freebsd-arm@FreeBSD.ORG Wed Nov 14 23:25:37 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C45E16A417 for ; Wed, 14 Nov 2007 23:25:37 +0000 (UTC) (envelope-from shu@rfrn.org) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.freebsd.org (Postfix) with ESMTP id 1DD4B13C457 for ; Wed, 14 Nov 2007 23:25:36 +0000 (UTC) (envelope-from shu@rfrn.org) Received: by ug-out-1314.google.com with SMTP id y2so479935uge for ; Wed, 14 Nov 2007 15:25:35 -0800 (PST) Received: by 10.78.131.8 with SMTP id e8mr3679665hud.1195081079049; Wed, 14 Nov 2007 14:57:59 -0800 (PST) Received: by 10.78.81.9 with HTTP; Wed, 14 Nov 2007 14:57:59 -0800 (PST) Message-ID: Date: Wed, 14 Nov 2007 16:57:59 -0600 From: "Shu-yu Guo" To: freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: BIND9 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2007 23:25:37 -0000 Hello, BIND9 under ARM doesn't work. I can't get any useful debugging output from the program itself either -- it just freezes (have to be kill -9'd) after it prints out the number of CPUs and the worker thread it uses, i.e.: 14-Nov-2007 16:57:39.906 starting BIND 9.4.1-P1 -g -u bind 14-Nov-2007 16:57:39.962 found 1 CPU, using 1 worker thread Any ideas? This is on the FreeBSD-7 beta on a GW2348-4. -- shu From owner-freebsd-arm@FreeBSD.ORG Sat Nov 17 17:19:31 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8895116A417 for ; Sat, 17 Nov 2007 17:19:31 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (dong.ci0.org [IPv6:2001:7a8:2066:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id BB24D13C44B for ; Sat, 17 Nov 2007 17:19:30 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.14.1/8.13.8) with ESMTP id lAHIBFEX052621; Sat, 17 Nov 2007 19:11:15 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.1/8.13.8/Submit) id lAHIBE5h052620; Sat, 17 Nov 2007 19:11:14 +0100 (CET) (envelope-from mlfbsd) Date: Sat, 17 Nov 2007 19:11:14 +0100 From: Olivier Houchard To: Mark Tinguely Message-ID: <20071117181114.GA52582@ci0.org> References: <200711142226.lAEMQvjv014802@casselton.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200711142226.lAEMQvjv014802@casselton.net> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: rare pmap.c bug X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2007 17:19:31 -0000 On Wed, Nov 14, 2007 at 04:26:57PM -0600, Mark Tinguely wrote: > > I think there is a small bug in the allocation of the L1 domain numbers ARM > pmap.c BUT it is my guess that no one should ever see in real life. > why? because you have to reuse the L1 9 times AT ONE TIME to trigger the > bug. My gut thinks reusing the L1 twice AT ONE TIME is rare. > > pmap_init_l1() allocates the array l1->l1_domain_free to equal: > > {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 0 } > l1->l1_domain_free[15] is the initial value. > > l1->l1_domain_first = 1 > > pmap_alloc_l1() allocated the odd domain numbers. > > domain = l1->l1_domain_first (1) > l1->l1_domain_first = l1->l1_domain_free[domain] (3) > > next pmap_alloc_l1() **without calling pmap_free_l1()**: > > domain = l1->l1_domain_first (3) > l1->l1_domain_first = l1->l1_domain_free[domain] (5) > > next pmap_alloc_l1() **without calling pmap_free_l1()**: > > domain = l1->l1_domain_first (5) > l1->l1_domain_first = l1->l1_domain_free[domain] (7) > > ... > > domain = l1->l1_domain_first (15) > l1->l1_domain_first = l1->l1_domain_free[domain] (0) > > on the 9th pmap_alloc_l1() **without calling pmap_free_l1()**: > > domain = l1->l1_domain_first (0) <- Kernel domain! > l1->l1_domain_first = l1->l1_domain_free[domain] (2) > > It is extremely unlikely that people are running enough processes on an ARM > machine to ever trigger the bug. A simple fix would be to increment the > l1->l1_domain_free array by 1. But the 15th call to pmap_alloc_l1() will > leave the l1->l1_domain_first wrong with could cause problems with the next > pmap_free_l1(). A zero value could be given a special meaning to pmap_free_l1(). > > I find it even more interesting idea to just pull the preallocated L1s out; > preallocate a couple L1 in an idleloop for perfomance; implement pmap_copy() > to decrease page faults after a fork ... > Hi, Indeed it can be a problem. I'll see how easy it would be to allocate the L1 tables when we need it. Thanks for reporting ! Olivier From owner-freebsd-arm@FreeBSD.ORG Sat Nov 17 17:20:15 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7642C16A418 for ; Sat, 17 Nov 2007 17:20:15 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (dong.ci0.org [IPv6:2001:7a8:2066:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id AD4E713C45B for ; Sat, 17 Nov 2007 17:20:14 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.14.1/8.13.8) with ESMTP id lAHIC755052646; Sat, 17 Nov 2007 19:12:07 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.14.1/8.13.8/Submit) id lAHIC7em052645; Sat, 17 Nov 2007 19:12:07 +0100 (CET) (envelope-from mlfbsd) Date: Sat, 17 Nov 2007 19:12:06 +0100 From: Olivier Houchard To: Shu-yu Guo Message-ID: <20071117181206.GB52582@ci0.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: BIND9 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2007 17:20:15 -0000 On Wed, Nov 14, 2007 at 04:57:59PM -0600, Shu-yu Guo wrote: > Hello, > > BIND9 under ARM doesn't work. I can't get any useful debugging output > from the program itself either -- it just freezes (have to be kill > -9'd) after it prints out the number of CPUs and the worker thread it > uses, i.e.: > > 14-Nov-2007 16:57:39.906 starting BIND 9.4.1-P1 -g -u bind > 14-Nov-2007 16:57:39.962 found 1 CPU, using 1 worker thread > > Any ideas? > > This is on the FreeBSD-7 beta on a GW2348-4. > Hi, I have no answer yet. Just wanted to ack your mail, I'll investigate, probably during this week-end. Thanks ! Olivier