Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 May 2004 10:30:30 -0400
From:      Don Bowman <don@sandvine.com>
To:        'Kris Kennaway' <kris@obsecurity.org>, freebsd-current@freebsd.org
Subject:   RE: crash when bpf is used heavily
Message-ID:  <FE045D4D9F7AED4CBFF1B3B813C85337051D8DD6@mail.sandvine.com>

next in thread | raw e-mail | index | archive | help
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



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