From owner-freebsd-questions@FreeBSD.ORG Thu Jan 17 20:43:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 28B3B16A41B for ; Thu, 17 Jan 2008 20:43:48 +0000 (UTC) (envelope-from lists@webtent.net) Received: from esmtp.webtent.net (esmtp.webtent.net [208.38.145.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2244113C447 for ; Thu, 17 Jan 2008 20:43:48 +0000 (UTC) (envelope-from lists@webtent.net) Received: from localhost (localhost [127.0.0.1]) by esmtp.webtent.net (WebTent ESMTP Postfix Internet Mail Gateway) with ESMTP id 3F46D7FF18 for ; Thu, 17 Jan 2008 15:43:47 -0500 (EST) Received: from esmtp.webtent.net ([127.0.0.1]) by localhost (mx1.webtent.net [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 46969-01 for ; Thu, 17 Jan 2008 15:43:38 -0500 (EST) Received: from [70.110.70.43] (columbus.webtent.org [70.110.70.43]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by esmtp.webtent.net (WebTent ESMTP Postfix Internet Mail Gateway) with ESMTP id 47F547FD91 for ; Thu, 17 Jan 2008 15:43:27 -0500 (EST) From: Robert Fitzpatrick To: FreeBSD Content-Type: text/plain Organization: WebTent Networking, Inc. Date: Thu, 17 Jan 2008 15:43:26 -0500 Message-Id: <1200602606.7281.48.camel@columbus.webtent.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: WebTent Mailguard 1.0.2a Subject: db performance X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: robert@webtent.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2008 20:43:48 -0000 We have several postfix transport gateways on different networks all working with local amavisd-maia+SA using a remote postgresql backend at one location. I am getting delays in the queues on a gateway server at a remote site since we added more memory to the db server. After seeing the issues of "SA TIMED OUT" in the logs, seems this was happening prior to the upgrade, but never to the extent, I guess, to delay much mail. Queues on a gateway of the same network as the db server working fine, but messages with the timeouts differ from one server to another. After reading tuning, it suggests the SWAP should be double RAM. According to dmesg... real memory = 3220635648 (3071 MB) avail memory = 3150565376 (3004 MB) we have 3GB of RAM available with actually 4GB physical RAM installed? Anyway, the SWAP is only 2GB, even with the average usage shown here, will increasing SWAP to 6-8GB help? last pid: 49828; load averages: 0.23, 0.21, 0.18 up 8+18:33:08 15:42:23 184 processes: 5 running, 158 sleeping, 21 waiting CPU states: 2.6% user, 0.0% nice, 1.0% system, 0.0% interrupt, 96.4% idle Mem: 446M Active, 1646M Inact, 236M Wired, 138M Cache, 112M Buf, 30M Free Swap: 2048M Total, 164K Used, 2048M Free I also have assumed in the past that db performance could be better if I get off the system RAID-5 and put it on 1+0? The system has 4 SATA drives. All servers running FreeBSD 6.2 and latest ports of postfix+amavisd-maia +SA+ClamAV. Thanks for any input. -- Robert