From owner-freebsd-amd64@FreeBSD.ORG Wed Aug 22 16:48:52 2007 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C96CA16A418; Wed, 22 Aug 2007 16:48:52 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id AB1E713C465; Wed, 22 Aug 2007 16:48:52 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay12.apple.com (relay12.apple.com [17.128.113.53]) by mail-out4.apple.com (Postfix) with ESMTP id 9EED7F89E9B; Wed, 22 Aug 2007 09:48:52 -0700 (PDT) Received: from relay12.apple.com (unknown [127.0.0.1]) by relay12.apple.com (Symantec Mail Security) with ESMTP id 87CF529027; Wed, 22 Aug 2007 09:48:52 -0700 (PDT) X-AuditID: 11807135-a5f64bb000000813-b4-46cc68f4b488 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay12.apple.com (Symantec Mail Security) with ESMTP id 78F02290A6; Wed, 22 Aug 2007 09:48:52 -0700 (PDT) In-Reply-To: <86r6lvalht.fsf@ds4.des.no> References: <835936.35104.qm@web34510.mail.mud.yahoo.com> <86r6lvalht.fsf@ds4.des.no> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Chuck Swiger Date: Wed, 22 Aug 2007 09:48:51 -0700 To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== X-Mailman-Approved-At: Wed, 22 Aug 2007 17:13:22 +0000 Cc: questions@freebsd.org, freebsd-amd64@freebsd.org Subject: Re: What is a "sane" setting for maxdsize when running amd64? it seems many normal suggestions do not apply. X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2007 16:48:52 -0000 On Aug 22, 2007, at 3:53 AM, Dag-Erling Sm=F8rgrav wrote: > Chuck Swiger writes: >> You should configure squid to use no more than about 60 - 70% of the >> available physical RAM-- ie, set the cache_mem parameter to about 2.5 >> or 3GB. > > Better yet, don't run Squid at all. It was designed for a computer > architecture that was already obsolete when Squid was first written. This could be said of a lot of software, including many Unix =20 flavors. :-) I can think of several things to criticise about Squid-- a config =20 file which falls between Apache's httpd.conf and a sendmail.cf in =20 terms of complexity is probably close to the top of my list, but for =20 the simple purpose of saving limited network bandwidth using on-disk =20 or in-memory caching, squid does just fine. I'd be happy to look at =20 Varnish when I get a chance, though. >> It wouldn't be unreasonable to limit datasize to 3 GB on such a >> machine, assuming that nothing you run will ever need to grow >> larger... > > ...actually, maxdsiz is meaningless in FreeBSD 7, because the new > allocator uses mmap(2) instead of brk(2) / sbrk(2), so malloc() counts > towards the resident set size (ulimit -m), not the data segment size > (ulimit -d). OK. Nicole, the OP, mentioned "amd64", not "-CURRENT", but I'll keep =20= this in mind for future reference. Regards, --=20 -Chuck