Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e24tR-0006xK-If for pgsql-general@arkaria.postgresql.org; Wed, 11 Oct 2017 00:29:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e24tQ-0000EN-Tv for pgsql-general@arkaria.postgresql.org; Wed, 11 Oct 2017 00:29:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e24r2-0004La-Ss for pgsql-general@postgresql.org; Wed, 11 Oct 2017 00:26:32 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e24qy-0001CS-QO for pgsql-general@postgresql.org; Wed, 11 Oct 2017 00:26:32 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 6AE608CCCD97 for ; Tue, 10 Oct 2017 17:26:26 -0700 (MST) Date: Tue, 10 Oct 2017 17:26:26 -0700 (MST) From: pinker To: pgsql-general@postgresql.org Message-ID: <1507681586390-0.post@n3.nabble.com> In-Reply-To: <85580fec-9d9d-a551-156a-7bb1a66615ed@2ndquadrant.com> References: <1507668007464-0.post@n3.nabble.com> <4da39f8e-39b9-b4af-d879-72a44dde5fbd@2ndquadrant.com> <1507674532671-0.post@n3.nabble.com> <85580fec-9d9d-a551-156a-7bb1a66615ed@2ndquadrant.com> Subject: Re: core system is getting unresponsive because over 300 cpu load MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Tomas Vondra-4 wrote > I'm probably a bit dumb (after all, it's 1AM over here), but can you > explain the CPU chart? I'd understand percentages (say, 75% CPU used) > but what do the seconds / fractions mean? E.g. when the system time > reaches 5 seconds, what does that mean? hehe, no you've just spotted a mistake, it suppose to be 50 cores :) out of 80 in total Tomas Vondra-4 wrote > Have you tried profiling using perf? That usually identifies hot spots > pretty quickly - either in PostgreSQL code or in the kernel. I was always afraid because of overhead, but maybe it's time to start ... Tomas Vondra-4 wrote > What I meant is that if the system evicts this amount of buffers all the > time (i.e. there doesn't seem to be any sudden spike), then it's > unlikely to be the cause (or related to it). I was actually been thinking about scenario where different sessions want to at one time read/write from or to many different relfilenodes, what could cause page swap between shared buffers and os cache? we see that context switches on cpu are increasing as well. kernel documentation says that using page tables instead of Translation Lookaside Buffer (TLB) is very costly and on some blogs have seen recomendations that using huge pages (so more addresses can fit in TLB) will help here but postgresql, unlike oracle, cannot use it for anything else than page buffering (so 16gb) ... so process memory still needs to use 4k pages. or memory fragmentation? -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general