Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qv0rO-002cDg-Ul for pgsql-general@arkaria.postgresql.org; Mon, 23 Oct 2023 19:45:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qv0rM-00ETjW-FH for pgsql-general@arkaria.postgresql.org; Mon, 23 Oct 2023 19:45:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qv0rK-00ETio-R3 for pgsql-general@lists.postgresql.org; Mon, 23 Oct 2023 19:45:08 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qv0rG-002K9z-NK for pgsql-general@lists.postgresql.org; Mon, 23 Oct 2023 19:45:06 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 4A2CA3200946; Mon, 23 Oct 2023 15:44:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 23 Oct 2023 15:44:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1698090297; x=1698176697; bh=CQztETRLsG/ca+bYEpp66xTkYy5va1HuxGz /Hro5rW8=; b=oaimNWvrULx+hklKWfO+h7+iVd+Jdv9ena/71jyRp+aZBNbvxvv ZAaQ/z/fIh7KDTQAhtjOvZPXExNftKipHkjqZNxXsI1KakmReI3957xKhpOWTsuj cpWOydbOxYNJ5fdsXApweIiOG0/yX6Tj9stmU6+88f3yU3JUBUOVdcDdUz2F15VV t0QkbEOerFjMkGrnV+50sTIfVg50uKn6aCpGZqjcZu+reViesPyJ5noJIHhx7Q1m EGaGn7zWqzgXm7pTKLmCR15Wewf+Nuq3wkYbNzOLHWYc0sLzm20oibjh82ExeIu5 gPeJAkjELKvfqYLUpxyAlJCA1gaHZ7tkpxg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1698090297; x= 1698176697; bh=CQztETRLsG/ca+bYEpp66xTkYy5va1HuxGz/Hro5rW8=; b=m fY7yBxfmiH+lkoyPOJ6Dj6bgCg+/9GrdS3/QVfL1j6Prdq4YAKsVIybakNqQtjNB uo79E4Mif+L9mOOfTAvhtcXIsWWgEEGFhFykiF/7PWsAxf2UQEWDz8vhCsYf8Qg1 cQ/8AYHTLelXQwuYtmm0s1vcn2mhm0fkTPcnAy8jCDP1oUX1QY2W3LQTwotIFhsG bqhSK9VoIDJK2oJ1Jdgl5coQk0S+i9ErglP1yiakiSTrMDvHu8+m1m8XMJfHQMUs wmjXwNqwOfMmw6AEyZQJ70S+PWZOJPQG8ByNjcXrEcXZifsfc7Ez2nPIm0sSH/Ul jjTZPM9gy7vsOPNFRgvOg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrkeeigddufeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepiedvhfeihe ehgeeuieeljeeitedtjeehudegfeelkedvleekhedtgfeiffefkedunecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 23 Oct 2023 15:44:57 -0400 (EDT) Message-ID: Date: Mon, 23 Oct 2023 12:44:56 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Disk wait problem... To: pf@pfortin.com, pgsql-general@lists.postgresql.org References: <20231023145459.143faba7.pfortin@pfortin.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: <20231023145459.143faba7.pfortin@pfortin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/23/23 11:54, pf@pfortin.com wrote: > Hi, > > I have a 1.6TB database with over 330 tables on a 4TB NVMe SSD. All > tables are static (no updates); most in 8M and 33M row sizes. Queries have > been great, until recently. > Also attached is the relevant system journal entries for one query that > took 2 seconds and two more that took 62 and 52 seconds... Unlike the > above, these had 3 processes in disk-wait -- see attached screenshot... What happens if you select the tables in the command line client psql? > > I just stopped PG, updated the full backup which was done overnight (so > the update took about a second), restarted PG and the problem persists... > > Any suggestions where to look next? > > Thanks, > Pierre -- Adrian Klaver adrian.klaver@aklaver.com