Re: crash when bpf is used heavily

From: Doug White <dwhite_at_gumbysoft.com>
Date: Thu, 27 May 2004 15:30:09 -0700 (PDT)
On Thu, 27 May 2004, Sergey Lyubka wrote:

> on latest -current, I did change the BPF_MAXBUFSIZE in sys/net/bpf.h to 16 Mb
> Actual BPF buffer size is 4Mb:
>
> $ sysctl -a | grep bpf
> debug.bpf_bufsize: 4194304
> debug.bpf_maxbufsize: 16777216
>
> Now, I run number of bpf-aware processes, and this causes crash
> with following kernel message:
>
> panic: kmem_malloc(4194304) too small: 271405056 total allocated
> at line 335 in file ../../../vm/vm_kern.c
> cpuid=0;
> boot() called on cpu#0

For a machine with 3 GB RAM, this isn't unexpected. Try rebuilding your
kernel and setting maxusers to 128.

>
>
> the system is -current, HP proliant 2-xeon:
> Copyright (c) 1992-2004 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>         The Regents of the University of California. All rights reserved.
> FreeBSD 5.2-CURRENT #1: Thu May 27 14:48:50 GMT 2004
>     root_at_valenok:/usr/src/sys/i386/compile/VALENOK
> Preloaded elf kernel "/boot/kernel/kernel" at 0xc086e000.
> Timecounter "i8254" frequency 1193182 Hz quality 0
> CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2787.11-MHz 686-class CPU)
>   Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
>   Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C
> MOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>   Hyperthreading: 2 logical CPUs
> real memory  = 3221200896 (3071 MB)
> avail memory = 3150893056 (3004 MB)
> MPTable: <COMPAQ   PROLIANT    >
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
>  cpu0 (BSP): APIC ID:  0
>  cpu1 (AP): APIC ID:  6
> ioapic0: Assuming intbase of 0
> ioapic1: Assuming intbase of 16
> ioapic2: Assuming intbase of 32
> ioapic3: Assuming intbase of 48
> ioapic0 <Version 1.1> irqs 0-15 on motherboard
> ioapic1 <Version 1.1> irqs 16-31 on motherboard
> ioapic2 <Version 1.1> irqs 32-47 on motherboard
> ioapic3 <Version 1.1> irqs 48-63 on motherboard
>
> --skipped --
>
>
> kernel config is attached
>

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite_at_gumbysoft.com          |  www.FreeBSD.org
Received on Thu May 27 2004 - 13:30:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:55 UTC