From owner-freebsd-ia64 Fri Jan 3 3:38:34 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53AD937B401; Fri, 3 Jan 2003 03:38:33 -0800 (PST) Received: from mckinley.corp.yahoo.com (mckinley.corp.yahoo.com [216.145.62.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 134A243EC5; Fri, 3 Jan 2003 03:38:33 -0800 (PST) (envelope-from peter@freebsd.org) Received: from mckinley.corp.yahoo.com (localhost [127.0.0.1]) by mckinley.corp.yahoo.com (8.12.6/8.12.5) with ESMTP id h03BcW7a060315; Fri, 3 Jan 2003 03:38:32 -0800 (PST) (envelope-from peter@freebsd.org) Received: (from root@localhost) by mckinley.corp.yahoo.com (8.12.6/8.12.5/Submit) id h03BcWcp060314; Fri, 3 Jan 2003 03:38:32 -0800 (PST) Message-Id: <200301031138.h03BcWcp060314@mckinley.corp.yahoo.com> From: Peter Wemm Date: Fri, 3 Jan 2003 03:38:32 -0800 (PST) Subject: ia64 tinderbox failure To: current@freebsd.org, ia64@freebsd.org Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- ===> usr.bin/kdump In file included from ioctl.c:74: /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include/sys/diskpc98.h:47: redefinition of `struct dos_partition' *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin/kdump. *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 9:37:17 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B89537B401; Fri, 3 Jan 2003 09:37:16 -0800 (PST) Received: from mckinley.corp.yahoo.com (mckinley.corp.yahoo.com [216.145.62.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C59F43ED1; Fri, 3 Jan 2003 09:37:16 -0800 (PST) (envelope-from peter@freebsd.org) Received: from mckinley.corp.yahoo.com (localhost [127.0.0.1]) by mckinley.corp.yahoo.com (8.12.6/8.12.5) with ESMTP id h03HbF7a049078; Fri, 3 Jan 2003 09:37:15 -0800 (PST) (envelope-from peter@freebsd.org) Received: (from root@localhost) by mckinley.corp.yahoo.com (8.12.6/8.12.5/Submit) id h03HbFvW049077; Fri, 3 Jan 2003 09:37:15 -0800 (PST) Message-Id: <200301031737.h03HbFvW049077@mckinley.corp.yahoo.com> From: Peter Wemm Date: Fri, 3 Jan 2003 09:37:15 -0800 (PST) Subject: ia64 tinderbox failure To: current@freebsd.org, ia64@freebsd.org Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- ===> usr.bin/kdump In file included from ioctl.c:74: /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include/sys/diskpc98.h:47: redefinition of `struct dos_partition' *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin/kdump. *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 15: 3:17 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE38B37B401 for ; Fri, 3 Jan 2003 15:03:15 -0800 (PST) Received: from hermes.sc.intel.com (fmr03.intel.com [143.183.121.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44ECF43ED8 for ; Fri, 3 Jan 2003 15:03:15 -0800 (PST) (envelope-from adsharma@unix-os.sc.intel.com) Received: from petasus.sc.intel.com (petasus.sc.intel.com [10.3.253.4]) by hermes.sc.intel.com (8.11.6/8.11.6/d: outer.mc,v 1.51 2002/09/23 20:43:23 dmccart Exp $) with ESMTP id h03N1Rg25219 for ; Fri, 3 Jan 2003 23:01:27 GMT Received: from unix-os.sc.intel.com (unix-os.sc.intel.com [143.183.96.244]) by petasus.sc.intel.com (8.11.6/8.11.6/d: inner.mc,v 1.27 2002/10/16 23:46:59 dmccart Exp $) with ESMTP id h03N2PK11705 for ; Fri, 3 Jan 2003 23:02:25 GMT Received: from unix-os.sc.intel.com.intel.com (adsharma-mobl3.sc.intel.com [143.183.130.54]) by unix-os.sc.intel.com (8.11.6/8.11.2) with ESMTP id gBQJBOs00863 for ; Fri, 3 Jan 2003 15:03:14 -0800 Date: Fri, 3 Jan 2003 15:03:14 -0800 Message-Id: <200301032303.gBQJBOs00863@unix-os.sc.intel.com> To: freebsd-ia64@freebsd.org Subject: unaligned fault in pmap_find_vhpt From: Arun Sharma Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I saw a kernel mode unaligned fault during a compilation workload yesterday on an SMP 5.0-RC1 kernel. The fault happened here: 0xe000000000aad660 : More info below. It looks like the pte_chain is getting corrupted somehow. What is the locking scheme being used to protect pte collision chains on an SMP kernel ? -Arun pmap.c: static struct ia64_lpte * pmap_find_vhpt(vm_offset_t va) { struct ia64_lpte *pte; u_int64_t tag; pte = (struct ia64_lpte *) ia64_thash(va); if (!pte->pte_chain) { pte = 0; goto done; } tag = ia64_ttag(va); pte = (struct ia64_lpte *) IA64_PHYS_TO_RR7(pte->pte_chain); while (pte->pte_tag != tag) { <--- unaligned fault if (pte->pte_chain) { pte = (struct ia64_lpte *) IA64_PHYS_TO_RR7(pte->pte_chain); } else { pte = 0; break; } } done: return pte; } Dump of assembler code for function pmap_find_vhpt: 0xe000000000aad610 : [MMI] thash r14=r32;; 0xe000000000aad611 : mov r8=r14 0xe000000000aad612 : adds r14=24,r14;; 0xe000000000aad620 : [MMI] ld8 r14=[r14];; 0xe000000000aad621 : cmp.eq p7,p6=0,r14 0xe000000000aad622 : nop.i 0x0 0xe000000000aad630 : [MFB] nop.m 0x0 0xe000000000aad631 : nop.f 0x0 0xe000000000aad632 : (p06) br.cond.dptk.few 0xe000000000aad650 0xe000000000aad640 : [MFB] mov r8=r0 0xe000000000aad641 : nop.f 0x0 0xe000000000aad642 : br.ret.sptk.many b0;; 0xe000000000aad650 : [MMI] ttag r14=r32;; 0xe000000000aad651 : mov r32=r14 0xe000000000aad652 : adds r14=24,r8;; 0xe000000000aad660 : [MLX] ld8 r15=[r14] 0xe000000000aad661 : movl r14=0xe000000000000000;; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 15:12:42 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CF0437B401 for ; Fri, 3 Jan 2003 15:12:41 -0800 (PST) Received: from hermes.sc.intel.com (fmr03.intel.com [143.183.121.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5708043EEC for ; Fri, 3 Jan 2003 15:12:40 -0800 (PST) (envelope-from adsharma@unix-os.sc.intel.com) Received: from petasus.sc.intel.com (petasus.sc.intel.com [10.3.253.4]) by hermes.sc.intel.com (8.11.6/8.11.6/d: outer.mc,v 1.51 2002/09/23 20:43:23 dmccart Exp $) with ESMTP id h03NAqg00669 for ; Fri, 3 Jan 2003 23:10:52 GMT Received: from unix-os.sc.intel.com (unix-os.sc.intel.com [143.183.96.244]) by petasus.sc.intel.com (8.11.6/8.11.6/d: inner.mc,v 1.27 2002/10/16 23:46:59 dmccart Exp $) with ESMTP id h03NBoK16731 for ; Fri, 3 Jan 2003 23:11:50 GMT Received: from unix-os.sc.intel.com.intel.com (adsharma-mobl3.sc.intel.com [143.183.130.54]) by unix-os.sc.intel.com (8.11.6/8.11.2) with ESMTP id h03NCdr00975 for ; Fri, 3 Jan 2003 15:12:39 -0800 Date: Fri, 3 Jan 2003 15:12:39 -0800 Message-Id: <200301032312.h03NCdr00975@unix-os.sc.intel.com> To: freebsd-ia64@freebsd.org Subject: Exporting vhpt_base and vhpt_size via sysctl ? From: Arun Sharma Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This information may be useful to somebody trying to tune the system. # sysctl vm.vhpt vm.vhpt.base: 327680 vm.vhpt.size: 15 --- pmap.c- Fri Jan 3 12:41:58 2003 +++ pmap.c Fri Jan 3 12:52:16 2003 @@ -252,6 +252,12 @@ SYSCTL_INT(_vm_stats_vhpt, OID_AUTO, resident, CTLFLAG_RD, &pmap_vhpt_resident, 0, ""); +SYSCTL_NODE(_vm, OID_AUTO, vhpt, CTLFLAG_RD, 0, ""); +SYSCTL_INT(_vm_vhpt, OID_AUTO, base, CTLFLAG_RD, + &vhpt_base, 0, ""); +SYSCTL_INT(_vm_vhpt, OID_AUTO, size, CTLFLAG_RD, + &vhpt_size, 0, ""); + static PMAP_INLINE void free_pv_entry(pv_entry_t pv); static pv_entry_t get_pv_entry(void); static void ia64_protection_init(void); -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 15:37:35 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85E2237B401; Fri, 3 Jan 2003 15:37:34 -0800 (PST) Received: from mckinley.corp.yahoo.com (mckinley.corp.yahoo.com [216.145.62.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45CEA43ED1; Fri, 3 Jan 2003 15:37:34 -0800 (PST) (envelope-from peter@freebsd.org) Received: from mckinley.corp.yahoo.com (localhost [127.0.0.1]) by mckinley.corp.yahoo.com (8.12.6/8.12.5) with ESMTP id h03NbX7a037828; Fri, 3 Jan 2003 15:37:33 -0800 (PST) (envelope-from peter@freebsd.org) Received: (from root@localhost) by mckinley.corp.yahoo.com (8.12.6/8.12.5/Submit) id h03NbXik037827; Fri, 3 Jan 2003 15:37:33 -0800 (PST) Message-Id: <200301032337.h03NbXik037827@mckinley.corp.yahoo.com> From: Peter Wemm Date: Fri, 3 Jan 2003 15:37:33 -0800 (PST) Subject: ia64 tinderbox failure To: current@freebsd.org, ia64@freebsd.org Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- ===> usr.bin/kdump In file included from ioctl.c:74: /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include/sys/diskpc98.h:47: redefinition of `struct dos_partition' *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin/kdump. *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 18:34:44 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B18F37B401; Fri, 3 Jan 2003 18:34:43 -0800 (PST) Received: from caduceus.sc.intel.com (fmr04.intel.com [143.183.121.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A3DB143EB2; Fri, 3 Jan 2003 18:34:42 -0800 (PST) (envelope-from adsharma@unix-os.sc.intel.com) Received: from petasus.sc.intel.com (petasus.sc.intel.com [10.3.253.4]) by caduceus.sc.intel.com (8.11.6/8.11.6/d: outer.mc,v 1.51 2002/09/23 20:43:23 dmccart Exp $) with ESMTP id h042Xke06916; Sat, 4 Jan 2003 02:33:46 GMT Received: from unix-os.sc.intel.com (unix-os.sc.intel.com [143.183.96.244]) by petasus.sc.intel.com (8.11.6/8.11.6/d: inner.mc,v 1.27 2002/10/16 23:46:59 dmccart Exp $) with ESMTP id h042XrO27720; Sat, 4 Jan 2003 02:33:53 GMT Received: (from adsharma@localhost) by unix-os.sc.intel.com (8.11.6/8.11.2) id h042Ygo03450; Fri, 3 Jan 2003 18:34:42 -0800 Date: Fri, 3 Jan 2003 18:34:41 -0800 From: Arun Sharma To: alc@freebsd.org Cc: freebsd-ia64@freebsd.org Subject: Re: Assertion failure in vm_page.c:289 Message-ID: <20030103183441.A3425@unix-os.sc.intel.com> References: <20030103180935.A3170@unix-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030103180935.A3170@unix-os.sc.intel.com>; from adsharma on Fri, Jan 03, 2003 at 06:09:35PM -0800 Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Looking at i386 code, this seems to be the missing lock. -Arun --- pmap.c- Sat Jan 4 00:14:49 2003 +++ pmap.c Sat Jan 4 02:30:57 2003 @@ -1694,7 +1694,9 @@ */ if (opa) { int error; + vm_page_lock_queues(); error = pmap_remove_pte(pmap, pte, va, 0, 0); + vm_page_unlock_queues(); if (error) panic("pmap_enter: pte vanished, va: 0x%lx", va); } On Fri, Jan 03, 2003 at 06:09:35PM -0800, Arun Sharma wrote: > Alan, > > It looks like you added this assertion on Dec 28th. > > void > vm_page_flag_clear(vm_page_t m, unsigned short bits) > { > > mtx_assert(&vm_page_queue_mtx, MA_OWNED); <----- > m->flags &= ~bits; > } > > and I'm seeing the assertion failure right at startup (after execing > /sbin/init) on a ia64 box. Is it possible that there was an accompanying > change that was made to i386, but not ia64 ? > > -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 18:39:25 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 594AD37B401 for ; Fri, 3 Jan 2003 18:39:24 -0800 (PST) Received: from hermes.sc.intel.com (fmr03.intel.com [143.183.121.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98C4043EE5 for ; Fri, 3 Jan 2003 18:39:23 -0800 (PST) (envelope-from adsharma@unix-os.sc.intel.com) Received: from talaria.sc.intel.com (talaria.sc.intel.com [10.3.253.5]) by hermes.sc.intel.com (8.11.6/8.11.6/d: outer.mc,v 1.51 2002/09/23 20:43:23 dmccart Exp $) with ESMTP id h042baU14883 for ; Sat, 4 Jan 2003 02:37:36 GMT Received: from unix-os.sc.intel.com (unix-os.sc.intel.com [143.183.96.244]) by talaria.sc.intel.com (8.11.6/8.11.6/d: inner.mc,v 1.27 2002/10/16 23:46:59 dmccart Exp $) with ESMTP id h042Zkc01488 for ; Sat, 4 Jan 2003 02:35:46 GMT Received: (from adsharma@localhost) by unix-os.sc.intel.com (8.11.6/8.11.2) id h042dN903511 for freebsd-ia64@freebsd.org; Fri, 3 Jan 2003 18:39:23 -0800 Date: Fri, 3 Jan 2003 18:39:23 -0800 From: Arun Sharma To: freebsd-ia64@freebsd.org Subject: sshd error on RC1 Message-ID: <20030103183923.A3486@unix-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org This prevents me from ssh'ing into the freebsd-ia64 box. Jan 2 12:45:59 sshd[469]: fatal: fatal_remove_cleanup: no such cleanup function: 0x600000004003acc8 0x0 Has this been fixed after RC1 ? -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 20:34:16 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBECA37B405 for ; Fri, 3 Jan 2003 20:34:15 -0800 (PST) Received: from kayak.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5607743EE5 for ; Fri, 3 Jan 2003 20:34:14 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by kayak.xcllnt.net (8.12.6/8.12.6) with ESMTP id h044Y8rT034192; Fri, 3 Jan 2003 20:34:09 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id h044ZP6P002120; Fri, 3 Jan 2003 20:35:25 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.6/8.12.6/Submit) id h044ZPci002119; Fri, 3 Jan 2003 20:35:25 -0800 (PST) (envelope-from marcel) Date: Fri, 3 Jan 2003 20:35:24 -0800 From: Marcel Moolenaar To: Arun Sharma Cc: freebsd-ia64@FreeBSD.ORG Subject: Re: unaligned fault in pmap_find_vhpt Message-ID: <20030104043524.GA2059@dhcp01.pn.xcllnt.net> References: <200301032303.gBQJBOs00863@unix-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200301032303.gBQJBOs00863@unix-os.sc.intel.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Jan 03, 2003 at 03:03:14PM -0800, Arun Sharma wrote: > > I saw a kernel mode unaligned fault during a compilation workload > yesterday on an SMP 5.0-RC1 kernel. The fault happened here: > > 0xe000000000aad660 : > > More info below. It looks like the pte_chain is getting corrupted > somehow. What is the locking scheme being used to protect pte > collision chains on an SMP kernel ? We don't really have a consistent locking scheme. We walk and update the VHPT from IVA interrupt code as well. Under high load, a SMP kernel corrupts process space. I haven't seen the unaligned fault you mention. As for locking: I've been thinking about a VHPT per CPU. With processor affinity, massive clustering, NUMA architectures and other complexities, there may be an advantage to pay for the additional faults if we can keep a flexible implementation and without so much lock contention. I haven't thought about hyper- threaded setups (ie a VHPT per thread or per CPU package) Thoughts? I'll play with SMP some more this weekend (also WRT you patch)... -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 21:37:13 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F12937B401; Fri, 3 Jan 2003 21:37:11 -0800 (PST) Received: from mckinley.corp.yahoo.com (mckinley.corp.yahoo.com [216.145.62.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F8B943EB2; Fri, 3 Jan 2003 21:37:11 -0800 (PST) (envelope-from peter@freebsd.org) Received: from mckinley.corp.yahoo.com (localhost [127.0.0.1]) by mckinley.corp.yahoo.com (8.12.6/8.12.5) with ESMTP id h045bB7a026576; Fri, 3 Jan 2003 21:37:11 -0800 (PST) (envelope-from peter@freebsd.org) Received: (from root@localhost) by mckinley.corp.yahoo.com (8.12.6/8.12.5/Submit) id h045bAAw026575; Fri, 3 Jan 2003 21:37:10 -0800 (PST) Message-Id: <200301040537.h045bAAw026575@mckinley.corp.yahoo.com> From: Peter Wemm Date: Fri, 3 Jan 2003 21:37:10 -0800 (PST) Subject: ia64 tinderbox failure To: current@freebsd.org, ia64@freebsd.org Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- ===> usr.bin/kdump In file included from ioctl.c:74: /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include/sys/diskpc98.h:47: redefinition of `struct dos_partition' *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin/kdump. *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Fri Jan 3 22:45:47 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6496B37B401; Fri, 3 Jan 2003 22:45:46 -0800 (PST) Received: from cleitus.hosting.swbell.net (cleitus.hosting.swbell.net [216.100.99.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C04743ED8; Fri, 3 Jan 2003 22:45:45 -0800 (PST) (envelope-from alc@imimic.com) Received: from imimic.com (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) by cleitus.hosting.swbell.net id BAA16453; Sat, 4 Jan 2003 01:45:34 -0500 (EST) [ConcentricHost SMTP Relay 1.14] Message-ID: <3E16830D.F7D8507D@imimic.com> Date: Sat, 04 Jan 2003 00:45:33 -0600 From: "Alan L. Cox" Organization: iMimic Networking, Inc. X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Arun Sharma Cc: alc@freebsd.org, freebsd-ia64@freebsd.org Subject: Re: Assertion failure in vm_page.c:289 References: <20030103180935.A3170@unix-os.sc.intel.com> <20030103183441.A3425@unix-os.sc.intel.com> Content-Type: text/plain; charset=x-user-defined Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Arun Sharma wrote: > > Looking at i386 code, this seems to be the missing lock. > Yes, that looks plausible. I'll commit the change shortly. Thanks, Alan > > --- pmap.c- Sat Jan 4 00:14:49 2003 > +++ pmap.c Sat Jan 4 02:30:57 2003 > @@ -1694,7 +1694,9 @@ > */ > if (opa) { > int error; > + vm_page_lock_queues(); > error = pmap_remove_pte(pmap, pte, va, 0, 0); > + vm_page_unlock_queues(); > if (error) > panic("pmap_enter: pte vanished, va: 0x%lx", va); > } > > On Fri, Jan 03, 2003 at 06:09:35PM -0800, Arun Sharma wrote: > > Alan, > > > > It looks like you added this assertion on Dec 28th. > > > > void > > vm_page_flag_clear(vm_page_t m, unsigned short bits) > > { > > > > mtx_assert(&vm_page_queue_mtx, MA_OWNED); <----- > > m->flags &= ~bits; > > } > > > > and I'm seeing the assertion failure right at startup (after execing > > /sbin/init) on a ia64 box. Is it possible that there was an accompanying > > change that was made to i386, but not ia64 ? > > > > -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message From owner-freebsd-ia64 Sat Jan 4 3:37:39 2003 Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3EB337B401; Sat, 4 Jan 2003 03:37:37 -0800 (PST) Received: from mckinley.corp.yahoo.com (mckinley.corp.yahoo.com [216.145.62.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82F9B43EC5; Sat, 4 Jan 2003 03:37:37 -0800 (PST) (envelope-from peter@freebsd.org) Received: from mckinley.corp.yahoo.com (localhost [127.0.0.1]) by mckinley.corp.yahoo.com (8.12.6/8.12.5) with ESMTP id h04Bbb7a015598; Sat, 4 Jan 2003 03:37:37 -0800 (PST) (envelope-from peter@freebsd.org) Received: (from root@localhost) by mckinley.corp.yahoo.com (8.12.6/8.12.5/Submit) id h04BbbTt015597; Sat, 4 Jan 2003 03:37:37 -0800 (PST) Message-Id: <200301041137.h04BbbTt015597@mckinley.corp.yahoo.com> From: Peter Wemm Date: Sat, 4 Jan 2003 03:37:36 -0800 (PST) Subject: ia64 tinderbox failure To: current@freebsd.org, ia64@freebsd.org Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org -------------------------------------------------------------- >>> Rebuilding the temporary build tree -------------------------------------------------------------- >>> stage 1: bootstrap tools -------------------------------------------------------------- >>> stage 2: cleaning up the object tree -------------------------------------------------------------- >>> stage 2: rebuilding the object tree -------------------------------------------------------------- >>> stage 2: build tools -------------------------------------------------------------- >>> stage 3: cross tools -------------------------------------------------------------- >>> stage 4: populating /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include -------------------------------------------------------------- >>> stage 4: building libraries -------------------------------------------------------------- >>> stage 4: make dependencies -------------------------------------------------------------- >>> stage 4: building everything.. -------------------------------------------------------------- ===> usr.bin/kdump In file included from ioctl.c:74: /home/tinderbox/ia64/obj/home/tinderbox/ia64/src/ia64/usr/include/sys/diskpc98.h:47: redefinition of `struct dos_partition' *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin/kdump. *** Error code 1 Stop in /home/tinderbox/ia64/src/usr.bin. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. *** Error code 1 Stop in /home/tinderbox/ia64/src. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message