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 1hAcIq-0002TV-8c for pgsql-general@arkaria.postgresql.org; Sun, 31 Mar 2019 15:23:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hAcIo-0006Ft-S5 for pgsql-general@arkaria.postgresql.org; Sun, 31 Mar 2019 15:23:18 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAcIo-0006Fm-Fo for pgsql-general@lists.postgresql.org; Sun, 31 Mar 2019 15:23:18 +0000 Received: from smtp50.i.mail.ru ([94.100.177.110]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hAcIl-0007LX-T6 for pgsql-general@postgresql.org; Sun, 31 Mar 2019 15:23:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:From:To; bh=QPmv4K7opNgsnajKJZPZ1GQ3Dpoi9qtfP0SLjoWUhN4=; b=nTcIL99O69h8H9/kJoLqCour4UU0uqdov5gano3ObEbV+TsFT/5rxg2eVwcK+gJ05yX+BqJQ2xR8r8Cf43lXced4ub7X+rLMFAQh4KN+1X8GgRj1FApnlQWsFOZTuJ+oWK6myw3lcLDsgmOTnyKAV3ysnurJgsBPRpbg64RPOgA=; Received: by smtp50.i.mail.ru with esmtpa (envelope-from ) id 1hAcIj-0005NG-IL for pgsql-general@postgresql.org; Sun, 31 Mar 2019 18:23:13 +0300 To: pgsql-general@postgresql.org From: rihad Subject: Gigantic load average spikes Message-ID: Date: Sun, 31 Mar 2019 19:23:11 +0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: smtp50.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-77F55803: 260C666A7D66B36A5A78504BD2AC2941C38C16A539EA0B46A8DBF827BF65358679F71C2D7ACCF6E2DA7CF51968A9056D X-7FA49CB5: 0D63561A33F958A5E7F9FA6CC1274B2294C6D8DEC0FB0698F09CC0B89D8093ED8941B15DA834481FA18204E546F3947C21E93C0F2A571C7BF6B57BC7E64490618DEB871D839B7333395957E7521B51C2545D4CF71C94A83E9FA2833FD35BB23D27C277FBC8AE2E8BF80095D1E57F4578A471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C22495A01217C8426228FD81D268191BDAD3DBD4B6F7A4D31EC0B7815B9869FA544D8090A508E0FED62991661749BA6B977359735652A29929C6CC4224003CC836476C0CAF46E325F83A522CA9DD8327EE4931B544F03EFBC4D57E706259C6901AFB74ED02FC080DCD080731C566533BA786A40A5AABA2AD371193C9F3DD0FB1AF5EBE26B79914A659FB62623479134186CDE6BA297DBC24807EABDAD6C7F3747799A X-Mailru-Sender: B19AB4DAF1EA2FB54F322D22992C6DBFA7000DD0042F466E466E90A6BAA652853F17294BC1AFE60DABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 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.