From owner-freebsd-current@FreeBSD.ORG Thu May 27 15:30:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC86816A4CF for ; Thu, 27 May 2004 15:30:36 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 999A743D31 for ; Thu, 27 May 2004 15:30:36 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 261C072DD2; Thu, 27 May 2004 15:30:09 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 243B372DCB; Thu, 27 May 2004 15:30:09 -0700 (PDT) Date: Thu, 27 May 2004 15:30:09 -0700 (PDT) From: Doug White To: Sergey Lyubka In-Reply-To: <20040527172657.C17016@oasis.uptsoft.com> Message-ID: <20040527152948.R53810@carver.gumbysoft.com> References: <20040527172657.C17016@oasis.uptsoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: crash when bpf is used heavily X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2004 22:30:36 -0000 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@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 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: > 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 irqs 0-15 on motherboard > ioapic1 irqs 16-31 on motherboard > ioapic2 irqs 32-47 on motherboard > ioapic3 irqs 48-63 on motherboard > > --skipped -- > > > kernel config is attached > -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org