From owner-freebsd-performance@FreeBSD.ORG Fri Nov 21 00:58:47 2003 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B845516A4CE for ; Fri, 21 Nov 2003 00:58:47 -0800 (PST) Received: from silver.he.iki.fi (helenius.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23A7D43FDD for ; Fri, 21 Nov 2003 00:58:46 -0800 (PST) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (localhost [127.0.0.1]) by silver.he.iki.fi (8.12.9p2/8.11.4) with ESMTP id hAL8whgr053491; Fri, 21 Nov 2003 10:58:43 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <3FBDD3A5.6020404@he.iki.fi> Date: Fri, 21 Nov 2003 10:58:13 +0200 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "apellido jr., wilfredo p" References: <20031121075957.13731.qmail@web40408.mail.yahoo.com> In-Reply-To: <20031121075957.13731.qmail@web40408.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-performance@freebsd.org Subject: Re: FreeBSD data size tuning X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 08:58:47 -0000 Add MAXDSIZ and DFLDSIZ to your kernel configuration. They default to 512M (you need to put in numbers, I donīt think they'll take 1024M or so) Pete apellido jr., wilfredo p wrote: >Hello, > >I have PIII 500 with 1GB of RAM on 4.9-RELEASE >running Squid 2.5-STABLE4 and I got this error after a >few hours of Squid running. > >proxy (squid): xmalloc: Unable to allocate 65535 >bytes! > >According to Squid FAQ > >8.7 xmalloc: Unable to allocate 4096 bytes! >by Henrik Nordstrom > > >Messages like "FATAL: xcalloc: Unable to allocate 4096 >blocks of 1 bytes!" appear when Squid can't allocate >more memory, and on most operating systems (inclusive >BSD) there are only two possible reasons: > >1. The machine is out of swap >2. The process' maximum data segment size has been >reached > >I got 2500MB swap file and isnt used when i try to use >the cmd top. How do i recompile a kernel with larger >datasize settings? > >here's the options that i added im my kernel > >maxusers 128 >options USER_LDT >options DUMMYNET >options IPFIREWALL >options IPFIREWALL_VERBOSE >options IPFIREWALL_VERBOSE_LIMIT=100 >options IPFIREWALL_FORWARD >options IPFIREWALL_DEFAULT_TO_ACCEPT >options IPDIVERT >options HZ=80 >options NMBCLUSTERS=65536 > >sysctl.conf > >vfs.vmiodirenable=1 >kern.ipc.maxsockbuf=2097152 >kern.ipc.somaxconn=8192 >kern.ipc.maxsockets=16424 >kern.maxfiles=65536 >kern.maxfilesperproc=32768 >net.inet.tcp.rfc1323=1 >net.inet.tcp.delayed_ack=0 >net.inet.tcp.sendspace=65535 >net.inet.tcp.recvspace=65535 >net.inet.udp.recvspace=65535 >net.inet.udp.maxdgram=57344 >net.local.stream.recvspace=65535 >net.local.stream.sendspace=65535 > > >loader.conf > >userconfig_script_load="YES" >hw.ata.wc="1" > > >Squid Configuration > >cache_mem 384 > > >thanks very much .... > > >===== >wilfredo pahilanga apellido jr. >technical support >mactan online >bacolod city, philippines >+63 34 4348311 > >If you can't hear me, it's because i'm in parentheses. > >__________________________________ >Do you Yahoo!? >Free Pop-Up Blocker - Get it now >http://companion.yahoo.com/ >_______________________________________________ >freebsd-performance@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-performance >To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebsd.org" > >