Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 3D744633126 for ; Wed, 6 Jan 2010 23:35:11 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 29882-08 for ; Thu, 7 Jan 2010 03:34:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mail.postgresql.org (Postfix) with ESMTP id 4A8FF632F30 for ; Wed, 6 Jan 2010 23:35:00 -0400 (AST) Received: by ewy26 with SMTP id 26so16210114ewy.3 for ; Wed, 06 Jan 2010 19:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cMNrd/UvQDdd83xIlvUObvKGUWVxVxP4BJ9Fs7GTjh0=; b=vo3EXrJHeOF60bFJ/IffQFI2/RQ/jp24oz8Ifhv5MvYkYI0XBXRji8FgFSca8LTyyc nZnxwaC66LWL1XMv1Uhv46xSht2nJY3qY9f2nwRrDXu8m0wG8C4Q3fm7sa36EksiO8Y7 nGlA+iBN3LiIEOgdIIyESAyhXVldXU2Cz72aM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=f8aEXuFrcjRPRhaCombEt7z1c+6LDz2W5dSCY6MTvtSUAC6FLIx6irpYjCol9ydrOK iiDVTWCggjKV8cs4rD3srxpy6DKvO70AjUZRFiI+kSMzJ/+8yQGWRDGq6JTX0KpVY2il lk0Z5Gw/yl2wOUo55Li6enp1qCeDaj2D4t/rg= MIME-Version: 1.0 Received: by 10.216.90.131 with SMTP id e3mr5492347wef.69.1262835297679; Wed, 06 Jan 2010 19:34:57 -0800 (PST) In-Reply-To: References: Date: Wed, 6 Jan 2010 20:34:56 -0700 Message-ID: Subject: Re: pg_connect takes 3.0 seconds From: Scott Marlowe To: Dmitri Girski Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.903 tagged_above=-10 required=5 tests=AWL=-1.492, BAYES_00=-2.599, FH_DATE_PAST_20XX=3.188 X-Spam-Level: X-Archive-Number: 201001/70 X-Sequence-Number: 36950 On Wed, Jan 6, 2010 at 7:44 PM, Dmitri Girski wrote: > Hi everybody, > Many thanks to everyone replied, I think we are on the right way. > I've used tcpdump to generate the logs and there are a lot of dropped > packets due to the bad checksum. Network guy is=A0currently=A0looking at = the > problem and most likely this is hardware issue. 95% of these problems are a bad NIC or a bad cable. Since cables are easy to change I'd try those first, then NICs. Since lots of servers have dual nics that's a pretty easy change too. Every now and then it's a bad switch / router.