On Wed, 20 Nov 2002, Petri Helenius wrote:

> David Schultz wrote:
> 
> >Thus spake Petri Helenius <[EMAIL PROTECTED]>:
> >  
> >
> >>I seem to get kmem_map too small panics when using large buffers with
> >>bpf. Is there a tunable I should be increasing?
> >>    
> >>
> >
> >Yes, increase KVA_PAGES in your kernel config.
> >  
> >
> I put in KVA_PAGES=1024
> with following results on next boot:
> 
> Fatal trap 12: page fault while in kernel mode
> cpuid = 1; lapic.id = 06000000
> fault virtual address   = 0x1
> fault code              = supervisor write, page not present
> instruction pointer     = 0x8:0xc01efc88
> stack pointer           = 0x10:0xdf0ccbcc
> frame pointer           = 0x10:0xdf0ccbf0
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, def32 1, gran 1
> processor eflags        = interrupt enabled, resume, IOPL = 0
> current process         = 15 (swi1: net)
> trap number     lastlog: Permission denied
> 
> Removing the option and recompiling kernel from the same sources makes 
> it work fine.

Looks like some network stack code is responding poorly to malloc()
failing (which it can).  Any chance you can generate a stack trace for
this by compiling DDB into your kernel, then using the trace command to
generate the trace?

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
[EMAIL PROTECTED]      Network Associates Laboratories



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to