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 1uUcti-0063zl-Pa for pgsql-performance@arkaria.postgresql.org; Thu, 26 Jun 2025 03:03:34 +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 1uUctg-0072St-Q3 for pgsql-performance@arkaria.postgresql.org; Thu, 26 Jun 2025 03:03:33 +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 1uUctg-0072Sl-FY for pgsql-performance@lists.postgresql.org; Thu, 26 Jun 2025 03:03:33 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uUctf-0048xt-0Q for pgsql-performance@lists.postgresql.org; Thu, 26 Jun 2025 03:03:32 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-450ce3a2dd5so3056725e9.3 for ; Wed, 25 Jun 2025 20:03:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1750907010; x=1751511810; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=KYNqY9XLBf0ZBQotsJmAEY6TYK5vaDKAqtISfdiyVUA=; b=aMk71z60InYes73QwWO/pOgDSdnuJD9HzHgAkVM+ksrB6tTYuDY90VQYiDdQUZkbvC RMpXIu/BCYk5sG9Sh1izIw6DGnSLMK2OHC3iHIG40ndfApag0QkuAianyJPdq7e3t1T0 VVF/VZIvmbRJBDOb7cRSRh9ZJPbZAteoCh+lGNJc1bdvQ8AEUk6bNVuX9SyW5HgTdmfm H3fMZgMHVqzeB2mD6Q0oC4aaqVtTgZzGlS+7qRKjCMrr2ez/hsjpNBGJEWHWkDRzOCg/ OLt6+EqWovMRf80YtQ+kP5kE4QK6kOaZdL8iy1emQPyqQ6k5WOciSYyp8Nl3PVpGbHEH Y6yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750907010; x=1751511810; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=KYNqY9XLBf0ZBQotsJmAEY6TYK5vaDKAqtISfdiyVUA=; b=kSkd/qyMS1vnYdla8vT9hh9nC0hcf9zdPv7AR2twknni8d2R7vQS9AGJCN55KTA/DR QEWIvIFtG6ZIKo837e2AsgUILihIgV+rEYJ779pu8n0u3REi3oa8q6PdoVbzDdQ+W6uN CURLd/nDii0fl+0C4RGgcTKKkydjjPqpzycACcu6QlfN14Y7IxZ4YWCi3w/pnQyuP2pp C02wXH5d0LyV6mRKYicLgon9wYOqWLdKrt/BfogSSxoAts4XCJFhzhMGt9/X035LY4sA CQCAXW/d6+HLTLtf+qCneWnWwFKuXeedfPlNqyRimjuVEUBoxa0rnrgVVPy51U5woGbm YTbw== X-Gm-Message-State: AOJu0Yz03pGtH0BcpjdREFLYRqhrQd7zFrMaZq0Rzem5tzeo8fmdYV+W YsVT0nuq40HC15ZN82zlwfkhfkYCrfJIpluk2B1xBes0jK03eyFiLgvMMY7Cb74b4ZU= X-Gm-Gg: ASbGncu8g122ne3ytDNiveTL1LorsjE5XO80FOOK4288ed74mDApVfkmFBbylT8GaXM xaINvt85KTmHuz9nVSOP+2IRwvD3l4qf4WFgAZNHPUXnTjvCbUjLrR41JZMxI/ctECw7IIjhqD9 Z521YrFOTPlHDYjRKmcvuFrKZoednw8JzCSWI3BE2OV7l6AAtkJ6Hmp+VhmGe2fxmFCu2Q7/Cav ZR5iUFocJuP8COT0hiwDK/ft2BuOV1bvQlvoKbnJzYUJnKgoiuKqUW2tmUyMtfV2l3KJrSzIh24 H48TVxFsIvlOp5RYsWW/iYBCt+dKP+27kYm5lPug54fdgeMZMFubPB08x5scW1G9As0W+p8G6Av IAGdaeGeY0/gWX1hP6Ir71d63qeoYJxg5gROkIfvFZSqlJQ== X-Google-Smtp-Source: AGHT+IECQQeIXp+goSKacCNrRI7o0XALPJBcsRlERdoGeUJb4neaH/F/smSF3a01m7s4k4P43Wk4jg== X-Received: by 2002:a05:6000:41cd:b0:3a4:eb92:39b6 with SMTP id ffacd0b85a97d-3a6ed65d249mr3658685f8f.54.1750907009792; Wed, 25 Jun 2025 20:03:29 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D (31-10-149-38.cgn.dynamic.upc.ch. [31.10.149.38]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a6e8050eb3sm6127939f8f.5.2025.06.25.20.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jun 2025 20:03:29 -0700 (PDT) Message-ID: Subject: Re: many sessions waiting DataFileRead and extend From: Laurenz Albe To: James Pang , Frits Hoogland Cc: pgsql-performance@lists.postgresql.org Date: Thu, 26 Jun 2025 05:03:28 +0200 In-Reply-To: References: <66879d8bd44148f2ef1dcde1eff056e6c671306e.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-06-26 at 10:32 +0800, James Pang wrote: > thans for you suggestions, we have iowait from sar command too, copy here= , checking with infra team not found abnormal IO activities either.=C2=A0= =C2=A0 > 02:00:01 PM =C2=A0CPU =C2=A0 =C2=A0%usr =C2=A0 %nice =C2=A0 =C2=A0%sys %i= owait =C2=A0 =C2=A0%irq =C2=A0 %soft =C2=A0%steal =C2=A0%guest =C2=A0%gnice= =C2=A0 %idle > 02:00:03 PM =C2=A0all=C2=A0 =C2=A015.92 =C2=A0 =C2=A00.00 =C2=A0 43.02 = =C2=A0 =C2=A00.65 =C2=A0 =C2=A00.76 =C2=A0 =C2=A02.56 =C2=A0 =C2=A00.00 =C2= =A0 =C2=A00.00 =C2=A0 =C2=A00.00 =C2=A0 37.09 Crazy high system time. If it is not transparent hugepages, the other suspect is fork(). Turn on "log_connections" for a minute or two and see if there are lots of connections established. That can easily use your CPU. Other than that, I am out of guesses. > Frits Hoogland =E6=96=BC 2025=E5=B9=B46=E6=9C= =8825=E6=97=A5=E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=8810:27=E5=AF=AB=E9=81=93= =EF=BC=9A > > > On 25 Jun 2025, at 07:59, Laurenz Albe wro= te: > > >=20 > > > Run "sar -P all 1" and see if "%iowait" is high. > > > > I would (strongly) advise against the use of iowait as an indicator. I have heard that before, and I am sure you are right. I grant that if it is low, it may just mean that the CPU is under load. But if %iowait is high, my experience is that that indicates an I/O problem= . Yours, Laurenz Albe