From owner-freebsd-performance@FreeBSD.ORG Fri Nov 21 01:52:44 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 15B2316A4CE for ; Fri, 21 Nov 2003 01:52:44 -0800 (PST) Received: from wipmail.com.br (200-171-107-246.dsl.telesp.net.br [200.171.107.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9B2143F75 for ; Fri, 21 Nov 2003 01:52:39 -0800 (PST) (envelope-from tec@mega.net.br) Received: from admin.mega.net.br wsrv.mega.net.br by matik.com.br (MDaemon.PRO.v6.8.5.R) with ESMTP id 45-md50000000154.tmp for ; Fri, 21 Nov 2003 07:28:53 -0300 X-Originating-IP: [200.152.81.43] From: "TEC Meganet" To: freebsd-performance@freebsd.org Date: Fri, 21 Nov 2003 09:52:33 +0000 Message-ID: <20031121.Cs4.47658300@admin.mega.net.br> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Mailer: AngleMail for phpGroupWare (http://www.phpgroupware.org) v 0.9.99.006 X-Lookup-Warning: HELO/EHLO lookup on admin.mega.net.br does not match 200.152.83.39 X-Return-Path: tec@mega.net.br X-MDaemon-Deliver-To: freebsd-performance@freebsd.org X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Spam-Processed: mega.net.br, Fri, 21 Nov 2003 07:28:57 -0300 Subject: Re: FreeBSD data size tuning X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: tec@mega.net.br List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2003 09:52:44 -0000 Hi if you had 4.8 before and the problem didnt exist then may be you should downgrade. It seems there is a memory issue in 4.9 where they adapted 5.x things to 4.9 and this stuff is still in development. I have a lot of this machines and neevr had such a message. The BSd people suggest not using 4.9 in production servers. may be you could check your squid.conf memory settings also. averall I do not know if you use the right configuration here. If you have 1GB of RAM and using 2500MB of swap on ide disk, I dont know ... Any swap use makes your machine slow, if you really need 2500MB of swap with 1GB of RAM you must have a haevy cache server. With 1GB of RAM you should be able to run squid without any swapuse at all and when squid starts using swap you should put more RAM in it our downsize squid.conf memory settings the sysctl settings here I believe that if youre not running a parent cache the increased udp settings do not make so much sense Setting max files do the 65535 and maxperproc makes sense only if you have another heavy file eater running, but if you have a squid server set both values closer together my experience that you can set cache_mem to best fit at 25% of your RAM, so I believe 256 or 196 should be good for 1GB of RAM Petri Helenius (pete@he.iki.fi) wrote*: > >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" >> >> > > >_______________________________________________ >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" >