RESEND: panic: pmap_enter: attempted pmap_enter on 4MB page

Alex Hoff ahoff at sandvine.com
Mon Sep 20 10:55:07 PDT 2004


Sorry, it sent by accident. Here is the complete email:

>  -----Original Message-----
> From: 	Alex Hoff  
> Sent:	Monday, September 20, 2004 13:48
> To:	'current at freebsd.org'
> Cc:	'alc at freebsd.org'; 'tegge at FreeBSD.org'; Gerrit Nagelhout
> Subject:	panic: pmap_enter: attempted pmap_enter on 4MB page
> 
> Hello, 
> 
> I've talked to a few people about this crash already, but I might as well get a discussion going. Running 5.3 beta 4 (as of Sunday) with Postgress 7.4.2 running on it under heavy load will run into "panic: pmap_enter: attempted pmap_enter on 4MB page". The machine we are running on is a dual xeon 2.8 ghz w/ HyperThreading off, 4 gigs of ram and a 980G RAID5 setup. Using a small database with a total of 100 clients, 80 doing updates and 20 doing queries via tcl (db + clients on the same machine), it runs until fills up 4gigs of ram, then 4 gigs of swap, then we kill it cleanly rc.d script stop). If I repeat this process X number of times (it varies), the last time will bring down the kernel as postgress is exiting. So far (from 2 dumps) the curpte seems invalid

Crash 1:
swap_pager_getswapspace(16): failed
swap_pager_getswapspace(16): failed
swap_pager_getswapspace(16): failed
<3>pid 3327 (postgres), uid 70, was killed: out of swap space
pmap_enter: va 0x29853000, pte 0xbfca614c, origpte 0x1999
panic: pmap_enter: attempted pmap_enter on 4MB page

and
Crash 2:
swap_pager_getswapspace(3): failed
swap_pager_getswapspace(3): failed
<3>pid 9822 (postgres), uid 70, was killed: out of swap space
<3>pid 9816 (postgres), uid 70, was killed: out of swap space
pmap_enter: va 0x2c846000, pte 0xbfcb2118, origpte 0x29f1
panic: pmap_enter: attempted pmap_enter on 4MB page

Anyone have any ideas/input?

Here is the backtrace if it helps:

(kgdb) bt
#0  doadump () at pcpu.h:159
#1  0xc065623e in boot (howto=260)
    at /d2/ahoff/cvs/src/sys/kern/kern_shutdown.c:397
#2  0xc06565ec in poweroff_wait (junk=0xc08ae384, howto=696594432)
    at /d2/ahoff/cvs/src/sys/kern/kern_shutdown.c:553
#3  0xc082d3cd in pmap_enter (pmap=0xc5c9ac78, va=3230327684, m=0xc37bb130,
    prot=7 '\a', wired=0) at /d2/ahoff/cvs/src/sys/i386/i386/pmap.c:1959
#4  0xc07db6b9 in vm_fault (map=0xc5c9abb8, vaddr=696594432,
    fault_type=1 '\001', fault_flags=0)
    at /d2/ahoff/cvs/src/sys/vm/vm_fault.c:871
#5  0xc083188f in trap_pfault (frame=0xf01c1d48, usermode=1, eva=696595024)
    at /d2/ahoff/cvs/src/sys/i386/i386/trap.c:704
#6  0xc083143d in trap (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = -1078001617, tf_edi = 156606464, tf_esi =
 696595024, tf_ebp = -1077945656, tf_isp = -266592908, tf_ebx = 137957328, tf_ed
x = 156606432, tf_ecx = 23, tf_eax = 100, tf_trapno = 12, tf_err = 4, tf_eip = 1
34671476, tf_cs = 31, tf_eflags = 66118, tf_esp = -1077945680, tf_ss = 47})
    at /d2/ahoff/cvs/src/sys/i386/i386/trap.c:316
#7  0x0806ec74 in ?? ()


More information about the freebsd-current mailing list