Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UyoBt-0006ta-TR for pgsql-admin@arkaria.postgresql.org; Mon, 15 Jul 2013 19:12:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UyoBt-0002fB-CB for pgsql-admin@arkaria.postgresql.org; Mon, 15 Jul 2013 19:12:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UyoBs-0002es-59 for pgsql-admin@postgresql.org; Mon, 15 Jul 2013 19:12:08 +0000 Received: from nm13-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.79]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UyoBn-0000ZK-Us for pgsql-admin@postgresql.org; Mon, 15 Jul 2013 19:12:07 +0000 Received: from [66.196.81.174] by nm13.bullet.mail.bf1.yahoo.com with NNFMP; 15 Jul 2013 19:12:01 -0000 Received: from [98.139.212.214] by tm20.bullet.mail.bf1.yahoo.com with NNFMP; 15 Jul 2013 19:12:01 -0000 Received: from [127.0.0.1] by omp1023.mail.bf1.yahoo.com with NNFMP; 15 Jul 2013 19:12:01 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 589556.60697.bm@omp1023.mail.bf1.yahoo.com Received: (qmail 43298 invoked by uid 60001); 15 Jul 2013 19:12:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1373915521; bh=oPvTZCDmP8q4qxdt9Xz1BpgdBVuIv/nAv37f4iOHaTI=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=iITBrab8lEQ/diq1y4R0GXBDfpkj+LBIWcwIZK0lzwvzEB1hSKuehkbShCCVeRqNzKp80sVLZJWDSRvSt1H46kzujP0v0LmL2qL5T96UmG4Ge8BfvNk3NGjBJFQlEJmVluS3K/iC5AJD4EkX7Ll+iBGH5LtAO3/WsXCxOngun78= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=0yfWBqNo9EjS1/YmPZHc7pzfrwrbIa+tbt2ZMNzfzL3lgr2RZon6Y6FfDGO2U54yA+uX0BA7Hmy2/+Sn0UaRm7hUnZCBrCj+I6hP4szyvvZ3uuE2Lon3buLkzHzJHLw80kRtMGiwCEaXUBHyfEVZL7hUMyeFsULv+TSrK/dR5XU= ; X-YMail-OSG: MsB.cHUVM1lY3BpOJQ86Z28HZfljAGRERfFaFTvNgdwuo_W Q22a5G1vvrHkO8GxfVtd4rVjJAYT6mEUftorRmlIJVngpjFCHBs8iPAMHxcA unMt2p7NQo._Xa4pvmb7pi9kBLOrlltOsEJcc6M8zRXNSTvjskF96zaMj_i_ zqZB8yWknhy9JNtAMQ_Qwv1Co.4J59JSj.Q7Oy2k1cPw3AFB7XkUKiiMclAO ivpBrkh2yM1Yir7MpnJbYh4yRomEoTWCeUnK1r88GxSX5BAVdg7GVKC2ZmKq E2EnIr10FIVWqDk_I.nKLMFm3yA9_SbVzSYYYU9fpS_QkV3mdtyCYAwOAbhl YxAGBX6rD6UHuK8DhUj9txumqBgwHwEI9mXJdJMpWor155xM56NNm5n6vyx2 O0V0NimxW46aQO5hAdKxZwpnZTr96DIUkV6I9x8a.eoUFCrMRmUAMixcnOiC OXSEw9c4dm9KE9eZxUO6z7vQvKqMR.NcgwVaFzDLKEjB4WmL64zLY.LDt4C4 vNkZYdw2cqe5FoowiolKbr68t1lxPLvwZlQ_K5vWzB4jbErmkg8ZPCH7cq4q W6pe7ULn5N_R7dlR4zYoccQsv2N1SYQJpajHgzxZ7l2wq Received: from [76.255.18.237] by web162901.mail.bf1.yahoo.com via HTTP; Mon, 15 Jul 2013 12:12:01 PDT X-Rocket-MIMEInfo: 002.001, UmFmYWVsIERvbWljaWFubyA8cmFmYWVsLmRvbWljaWFub0BnbWFpbC5jb20.IHdyb3RlOgoKPiBQb3N0Z3JlU1FMIDkuMi4yIG9uIHg4Nl82NC11bmtub3duLWxpbnV4LWdudSwgY29tcGlsZWQgYnkgZ2NjCj4gKEdDQykgNC40LjYgMjAxMjAzMDUgKFJlZCBIYXQgNC40LjYtNCksIDY0LWJpdAoKPiBDZW50T1MgcmVsZWFzZSA2LjMgKEZpbmFsKQoKPiBTaW5jZSAyIHdlZWtzIEknbSBnZXQgc3R1Y2tlZCBpbiBhIHZlcnkgc3RyYW5nZSBzaXR1YXRpb246IGZyb20KPiB0aW1lIHRvIHRpbWUgKHNvbWV0aW1lcyABMAEBAQE- X-Mailer: YahooMailWebService/0.8.148.557 References: Message-ID: <1373915521.40153.YahooMailNeo@web162901.mail.bf1.yahoo.com> Date: Mon, 15 Jul 2013 12:12:01 -0700 (PDT) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: 9.2.2 - semop hanging To: Rafael Domiciano , "pgsql-admin@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Rafael Domiciano wrote: > PostgreSQL 9.2.2 on x86_64-unknown-linux-gnu, compiled by gcc > (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4), 64-bit > CentOS release 6.3 (Final) > Since 2 weeks I'm get stucked in a very strange situation: from > time to time (sometimes with intervals less than 10 minutes), the > server get "stucked"/"hang" (I dont know how to call it) and > every connections on postgres (dont matter if it's SELECT, > UPDATE, DELETE, INSERT, startup, authentication...) seems like > get "paused"; after some seconds (say ~10 or ~15 sec, sometimes > less) everything "goes OK". During these episodes, do you see high system CPU time?=A0 If so, try disabling transparent huge page support, and see whether it affects the frequency or severity of the episodes. > So, my first trial was to check disks. Running "iostat" > apparently showed that disks was OK. Did you run iostat during an episode of slowness?=A0 What did it show?=A0 Giving an interpretation that it as "apparently OK" doesn't provide much useful information. > It's a Raid10, 4 600GB SAS, IBM Storage DS3512, over FC. IBM DS > Storage Manager says that disks is OK. Are there any reports to show you when writing was saturated? >=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 total=A0=A0=A0=A0=A0=A0 used=A0=A0= =A0=A0=A0=A0 free=A0=A0=A0=A0 shared=A0=A0=A0 buffers=A0=A0=A0 cached > Mem:=A0=A0=A0=A0=A0=A0=A0 145182=A0=A0=A0=A0 130977=A0=A0=A0=A0=A0 14204= =A0=A0=A0=A0=A0=A0=A0=A0=A0 0=A0=A0=A0=A0=A0=A0=A0=A0 43=A0=A0=A0 121407 > -/+ buffers/cache:=A0=A0=A0=A0=A0=A0 9526=A0=A0=A0=A0 135655 > Swap:=A0=A0=A0=A0=A0=A0=A0=A0 6143=A0=A0=A0=A0=A0=A0=A0=A0 65=A0=A0=A0=A0= =A0=A0 6078 > Following is what I've tried: > 1) Emre Hasegeli has suggested to reduce my shared buffers, but > it's already low: >=A0=A0 total server memory: 141 GB >=A0=A0 shared_buffers: 16 GB On a machine with nearly twice that RAM, I've had to decrease shared_buffers to 2GB to avoid the symptoms you describe.=A0 That is in conjunction with making the background writer more aggressive and making sure the checkpoint completion target is set to 0.9. > Maybe it's too low? I've been thinking to increase to 32 GB. Well, you could try that; if the symptoms get worse, then you might be willing to go the other direction.... > max_connections =3D 500 and ~400 connections average How many cores (not "hardware threads") does the machine have?=A0 You will probably have better throughput and latency if you use connection pooling to limit the number of active database transactions to somewhere arount two times the number of cores, or slightly above that. --=20 Kevin Grittner EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin