Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2004 09:34:51 -1000 (HST)
From:      Vincent Poy <vince@oahu.WURLDLINK.NET>
To:        Andrew Gallatin <gallatin@cs.duke.edu>
Cc:        current@freebsd.org
Subject:   Re: -CURRENT kernel panic
Message-ID:  <20040304093201.X8264-100000@oahu.WURLDLINK.NET>
In-Reply-To: <16455.33748.860265.157572@grasshopper.cs.duke.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 4 Mar 2004, Andrew Gallatin wrote:

> Vincent Poy writes:
>  > On Thu, 4 Mar 2004, Andrew Gallatin wrote:
>  >
>  > > Just add vm.kmem_size=VALUE to /boot/loader.conf.  That way you don't
>  > > need to rebuild a kernel.   I run with vm.kmem_size=429391872
>  >
>  > 	Does that actually work since I thought unless you alter the
>  > kernel, it won't use more than 200KB for the kmem_map?
>
> Sure.. read the code (kern/kern_malloc.c:kmeminit) The
> VM_KMEM_SIZE_MAX comes first, then the tunable from the loader.

	Interesting.  I'm still wondering what the VM_KMEM_SIZE_SCALE
number represents.

>  > > Even after bumping the limits, I'm seeing a repeatable panic when
>  > > allocating a large amount of kernel memory ("panic: pmap_enter:
>  > > attempted pmap_enter on 4MB page").  See yesterday's message
>  > > with that subject for details..
>  >
>  > 	Just checked the archives and yours seems to jhave more variables
>  > than mines from the panic message.
>
> Can you describe the panic you see?

	Everything including buildworld doesn't cause the panic except at
4AM at night when I do a dump | restore of the /usr partition which shows
just this:

panic: kmem_malloc (4096): kmem_map too small: 377487360 total allocated
       at line 341 in file /usr/src/sys/vm/vm_kern.c
cpuid=0;
Debugger("panic")
Stopped at Debugger+0x46: xchgl %ebx, in_Debugger.0
db>

This is from dmesg.out:

CPU: Mobile Intel(R) Pentium(R) 4 - M CPU 2.60GHz (2592.37-MHz 686-class CPU) Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9

Features=0xbfebf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 2147360768 (2047 MB)
avail memory = 2095669248 (1998 MB)
Pentium Pro MTRR support enabled


Cheers,
Vince - vince@WURLDLINK.NET - Vice President             ________   __ ____
Unix Networking Operations - FreeBSD-Real Unix for Free / / / / |  / |[__  ]
WurldLink Corporation                                  / / / /  | /  | __] ]
San Francisco - Honolulu - Hong Kong                  / / / / / |/ / | __] ]
HongKong Stars/Gravis UltraSound Mailing Lists Admin /_/_/_/_/|___/|_|[____]
Almighty1@IRC - oahu.DAL.NET Hawaii's DALnet IRC Network Server Admin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040304093201.X8264-100000>