Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XpJQM-000750-8d for pgsql-performance@arkaria.postgresql.org; Fri, 14 Nov 2014 16:08:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XpJQL-0000cu-PC for pgsql-performance@arkaria.postgresql.org; Fri, 14 Nov 2014 16:08:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XpJQK-0000co-LY for pgsql-performance@postgresql.org; Fri, 14 Nov 2014 16:08:37 +0000 Received: from nm32.bullet.mail.ir2.yahoo.com ([212.82.96.57]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XpJQH-0004nD-0M for pgsql-performance@postgresql.org; Fri, 14 Nov 2014 16:08:34 +0000 Received: from [212.82.98.60] by nm32.bullet.mail.ir2.yahoo.com with NNFMP; 14 Nov 2014 16:08:30 -0000 Received: from [212.82.98.77] by tm13.bullet.mail.ir2.yahoo.com with NNFMP; 14 Nov 2014 16:08:30 -0000 Received: from [127.0.0.1] by omp1014.mail.ir2.yahoo.com with NNFMP; 14 Nov 2014 16:08:30 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 74501.61623.bm@omp1014.mail.ir2.yahoo.com Received: (qmail 52333 invoked by uid 60001); 14 Nov 2014 16:08:30 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1415981310; bh=84mtL1CaeYU+ccXhaIrzLc8qZDOeuRXTLclpeVi0PTE=; h=References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=aW/ToS3XM3LhZ/z/0Jb2cRsee0RuZyMrvxxAuFT44u9KsOcm8hkPLWY4Vu90IEYRqTGw9JMJphAiYh8h2A7viik23cmGQMUEABzl+su11s9bM8A7usUuJqDjVUWh36ubPiYca3swLX0uKJOUwLkOlaL3it+22RhxdkKiOzADyfc= X-YMail-OSG: cHl6uPMVM1k49QMJ3t4NMxnyb4mp.Fn5mMtKNbWMaTXn_DJ Tn9_mUJgqoUqo.Gmyuklkx4lziiys1KiFkbhxlsYtmhE5nO552r5dFmrqsFJ s2KBEGfUx_V0krTos1sU79jE.mzifkawslxRvDiyNJZ2emJ_IyYB3B66F8gk bEPCG7V8ETAyPXpb6r8sRaYjLHErDfC8S6mWQ_4zf0Qj7Mbe.61Qh.RHJizt KMskfTPzYmj5Ehbr7a5gezNujNjvZpYMGYadFwtmiQpiHzmOOLtnewRS1cjb YWZGJtbspUKNBif_dLQ8h2wzT2DmgA7VP5w6idAtd7QzZ23mrY2avjCS1RdG yRd_0DLVOkBwZqcqloko8h_p.hgvmwBMrAGSlT5fh0Th7A_OUAV2wyZ69u2u g8XlnF8QbhsauJ6D9cwMO154BPEfc4zMxFWnwHFUOyrVJf8j56D9xG_jk1la 5cmwbPXpAvDNkMie0GjouTTN_iyi2fe.W88JPaq69pwdS6WivaL3cZ6i0WJ9 DponR.u65nIowCY71yAMXY1dVkQZClCDSCPBDmLNELhXxMGibZjkTEtX9 Received: from [194.168.202.210] by web133205.mail.ir2.yahoo.com via HTTP; Fri, 14 Nov 2014 16:08:29 GMT X-Rocket-MIMEInfo: 002.001, PiBGcm9tOiBGaWxpcCBSZW1iaWHFgmtvd3NraSA8ZmlsaXAucmVtYmlhbGtvd3NraUBnbWFpbC5jb20.Cj5UbzogcGdzcWwtcGVyZm9ybWFuY2VAcG9zdGdyZXNxbC5vcmcgCj5TZW50OiBUaHVyc2RheSwgMTMgTm92ZW1iZXIgMjAxNCwgODoxMAo.U3ViamVjdDogW1BFUkZPUk1dIDkuMCBwZXJmb3JtYW5jZSBkZWdyYWRhdGlvbiB3aXRoIGtlcm5lbCAzLjExCj4gCj4KPkhpCj4KPkFmdGVyIHVwZ3JhZGluZyBvdXIgOS4wIGRhdGFiYXNlIHNlcnZlcgo.Cj5mcm9tOgo.b3BlblNVU0UgMTEuNCwga2VybmVsIDIBMAEBAQE- X-Mailer: YahooMailWebService/0.8.203.733 References: Message-ID: <1415981309.90631.YahooMailNeo@web133205.mail.ir2.yahoo.com> Date: Fri, 14 Nov 2014 16:08:29 +0000 From: Glyn Astill Reply-To: Glyn Astill Subject: Re: 9.0 performance degradation with kernel 3.11 To: =?utf-8?B?RmlsaXAgUmVtYmlhxYJrb3dza2k=?= , "pgsql-performance@postgresql.org" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.6 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org > From: Filip Rembia=C5=82kowski >To: pgsql-performance@postgresql.org=20 >Sent: Thursday, 13 November 2014, 8:10 >Subject: [PERFORM] 9.0 performance degradation with kernel 3.11 >=20 > >Hi > >After upgrading our 9.0 database server > >from: >openSUSE 11.4, kernel 2.6.37.6-24-default, Pg 9.0.13 > >to: >openSUSE 13.1, kernel v 3.11.10-21-default, Pg 9.0.15 > >... and overall server load is +1 after that. > >We did not add any new services/daemons. > >It's hard to track down to individual queries - when I tested most >individual query times are same as before the migration. > > >Any - ANY - hints will be much appreciated. > >Thanks >Filip > It's hard to say much going on the little information, but assuming everyth= ing was rosy for you with your 2.6 version, and you've kept the basics like= hardware, filesystem, io scheduler etc the same, there are a few kernel tu= nables to tweak on later kernels. Usually defragmentation of transparent huge pages causes an issue and it's = best to turn off the defrag option: echo always > /sys/kernel/mm/transparent_hugepage/enabled=20 echo madvise > /sys/kernel/mm/transparent_hugepage/defrag It's also recommended to increase the value of sched_migration_cost (I thin= k now called sched_migration_cost_ns in 3.11+) and disable sched_autogroup_= enabled. kernel.sched_migration_cost=3D5000000=20 kernel.sched_autogroup_enabled=3D0 Also disable vm.zone_reclaim_mode vm.zone_reclaim_mode=3D0 On some of our systems I also saw marked improvements increasing the values= of kernel.sched_min_granularity_ns and kernel.sched_wakeup_granularity_ns = too, on some other systems this had no effect. So you may want to try to s= ee if some larger values there help. A lot of the earlier 3.x kernels aren't great with PostgreSQL, one of the n= oted issues being a "stable pages" feature that blocks processes modifying = pages that are currently being written back until the write completes. I t= hink people have noted this gets better in 3.9 onwards, but I personally di= dn't see much of a marked improvement until 3.16. >Thanks >Filip > --=20 Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance