Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAcfJ-0004E3-3h for pgsql-general@arkaria.postgresql.org; Sun, 31 Mar 2019 15:46:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hAcfH-0004yA-8J for pgsql-general@arkaria.postgresql.org; Sun, 31 Mar 2019 15:46:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAcfG-0004qD-Or for pgsql-general@lists.postgresql.org; Sun, 31 Mar 2019 15:46:30 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAcfE-00007F-Br for pgsql-general@postgresql.org; Sun, 31 Mar 2019 15:46:29 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 78EAB20CA5; Sun, 31 Mar 2019 11:46:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Sun, 31 Mar 2019 11:46:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=i NflkgmB6P5CsH32CyWJXMfFgRFflbQv8/Tfq780UvM=; b=Ftx75Xwn/q76kfbyd kn2Qt2XMzcSR0Z4dMKTXxKNHoP91X+EkHVrCbeTubA2rE45TaXuEpXgxTftEHH2l XUFH1xROnT0wyk9aNzY7Y/QhoMpjob2O977M0Fyp79RdYV5glB8E4kY4nhTF2tkh J5NIVBrBNKPfj7yoEAciyOiT/EKKSk7CVazHgZrzr7ThKzhWqRjDP29BKPFpNGLm +9ePs0/nXbyxzoevDKyquL0JaiLmOJCFd0lCjIpUkBG7zBhnf4GqmeOPYIuAlQS3 qrpCpHHJgqZhhi9fPMXTXBCavvvaUNeATLy40RTqwsrPAUaJ/15RYmSlOJpwL4KY 8RCIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=iNflkgmB6P5CsH32CyWJXMfFgRFflbQv8/Tfq780U vM=; b=RtTIiQoYIdaij/M8uUhfWDAYLjZS1ZcyZrnpUJ9zniBq8jDSWQvCuNiWK OKp66Ysma0xihN5ghljWDN4929qr5sv9PqNpASMUYVzPpNX4CoD4CeUWMvCiGWzv hRaj/ze0iKUcfMvWcfckz3zcgeceAf/GczmNr+T4g2MUSAVQ0h6zZ9U5Z3ZXFEEC bVvPPyaeFVDqJ9okkMrvu0VrJfYy2+FNNHGByXk8fQIvjIyf/yNDYPRnTPpA0JEe u0uUHZvaa9Bk8TEo5jUpV3WR4ABEWKrLqme/iZ9Krp+49BFwUOikzgvY1xyor/Kl qbwWOoYgj0fu+WYCgPF53eDQTPDOw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrledvgdelgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthejre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucfkphepjedurddvuddvrdduhedtrddvtd dvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhl rghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 5D67A10310; Sun, 31 Mar 2019 11:46:26 -0400 (EDT) Subject: Re: Gigantic load average spikes To: rihad , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <95c8c449-7b09-13db-32a5-2dc93132c86d@aklaver.com> Date: Sun, 31 Mar 2019 08:46:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/31/19 8:23 AM, rihad wrote: > Postgres 10.3 On freebsd 10.3 is almost idle, disk i/o about 5-10%, > number running processes about 1-3, cpu about 90% idle, then we run a > i/o heavy job like "refresh materialized view", cpu & disk i/o still not > maxed out, all of a sudden the number of running processes increases to > about 250-300 for a second, which increases load averages that we Do you know what the processes are? Are there any messages in the Postgres log from that time period that might shed light? > periodically poll to see if everything's alright. Why is that? Disk i/o > is far from being maxed out, the actual number of running processes is > really small. You are referring to the between spikes process count? > > > > -- Adrian Klaver adrian.klaver@aklaver.com