RE: crash when bpf is used heavily

From: Don Bowman (don_at_sandvine.com)
Date: 05/30/04

  • Next message: Bruce Evans: "Re: stray irq13 at runtime"
    To: 'Kris Kennaway' <kris@obsecurity.org>, freebsd-current@freebsd.org
    Date: Sun, 30 May 2004 10:30:30 -0400
    
    

    From: Kris Kennaway [mailto:kris@obsecurity.org]
    > On Sat, May 29, 2004 at 04:03:45PM +0300, Sergey Lyubka wrote:
    >
    > > put M_NOWAIT in bpf_allocbufs().
    > > Got page fault now.
    > > panic: kmem_malloc(4098) too small
    >
    > That means "You have run out of KVA" and need to reduce the workload,
    > or retune the kernel memory allocations.

    The problem the original post has, although on the
    surface kind of nasty (easily able to panic from user
    space), can be easily worked around by creating
    less bpf devices (/dev/bpf0, ... create only 4 of
    them) and appropriately resizing KVA. If I recall,
    he had also increased quite dramatically the bpf
    buffer size.

    --don
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Bruce Evans: "Re: stray irq13 at runtime"