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 1hApBm-0003cZ-5r for pgsql-general@arkaria.postgresql.org; Mon, 01 Apr 2019 05:08:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hApBk-00026K-EP for pgsql-general@arkaria.postgresql.org; Mon, 01 Apr 2019 05:08:52 +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 1hApBj-00026D-TC for pgsql-general@lists.postgresql.org; Mon, 01 Apr 2019 05:08:52 +0000 Received: from smtp45.i.mail.ru ([94.100.177.105]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hApBe-0000sO-I1 for pgsql-general@postgresql.org; Mon, 01 Apr 2019 05:08:50 +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:Cc:To; bh=JtxMvDxDL9qDHXmzbHffg1WtS04k/+OtUYWK5pLR+Q4=; b=p4dG7SrV0oAm3OpOQ/wUwgG5KJRUJjP14KDAUcelAGDUeupc2rIHWew1s4nEYI8o67T95iEaMdlZ4D963ABr/DRrtkR0rXTEy4/q8eqMIduX+ytza4h7WV0MSqQm4QErUvGYhzyrtrncj2ihdqwadEkcryk8zDvmsSwMEzZk7Mc=; Received: by smtp45.i.mail.ru with esmtpa (envelope-from ) id 1hApBa-0001q4-I2; Mon, 01 Apr 2019 08:08:42 +0300 To: hjp-pgsql@hjp.at Cc: pgsql-general General From: rihad Subject: Re: Gigantic load average spikes Message-ID: <18b22010-1e6f-9270-e273-b9803fee1498@mail.ru> Date: Mon, 1 Apr 2019 09:08:40 +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: smtp45.i.mail.ru; auth=pass smtp.auth=rihad@mail.ru smtp.mailfrom=rihad@mail.ru X-77F55803: 689590B63E0A4B015A78504BD2AC2941C38C16A539EA0B46987E77A187F0DE4CEFDFF442642C764C7B3C68F62C93E291 X-7FA49CB5: 0D63561A33F958A5E048802B17435D7C09B72752D44BA01D993F9B3310AA4B9E8941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249668B94F0A65C3A0C3AA81AA40904B5D9CF19DD082D7633A0E7DDDDC251EA7DABD81D268191BDAD3D78DA827A17800CE7542AF255F21831B5CD04E86FAF290E2D40A5AABA2AD3711975ECD9A6C639B01B78DA827A17800CE74E45CFDAFB304A9E3E86BC48C39BF90775ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: B19AB4DAF1EA2FB5A9A3D80E7E94E6DCE24CE5E80D4A998DBBB565A7065992DD6F46F3E7DDF2A4D4ABBFE0CF075BC50BFB559BB5D741EB96004FA9CEFBA991DA3A5DB60FBEB33A8A0DA7A0AF5A3A8387 X-Mras: OK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > What exactly do you mean by "running processes"? I don't think I've ever > seen a Unix with only 1 to 3 running processes in total, so you are > probably referring to processes in a certain state. Runnable (R)? > Uninterruptible sleep (D)? Both? Something else? Just that, 250-300 running processes in top shown for a second. 250-300 is the number of postgres worker processes used, but normally only 1-3 of them are running according to top. At times of load FreeBSD (?) schedules all of them to run. This doesn't really put the machine on its knees, it just impacts load avg.