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 1tzaH7-003t0F-HU for pgsql-general@arkaria.postgresql.org; Tue, 01 Apr 2025 11:59:25 +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 1tzaH6-001Wlt-59 for pgsql-general@arkaria.postgresql.org; Tue, 01 Apr 2025 11:59:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tzJKx-009kGI-Ev for pgsql-general@lists.postgresql.org; Mon, 31 Mar 2025 17:54:15 +0000 Received: from mail-westeuropeazlp170120005.outbound.protection.outlook.com ([2a01:111:f403:c201::5] helo=AS8PR03CU001.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tzJKv-002BPY-1b for pgsql-general@lists.postgresql.org; Mon, 31 Mar 2025 17:54:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MYLt5RPZeJo0ITV1rV+iU4wPl6x7f9zxXhdvyBeJGLn83hNJQTe8GITidqCIrNqEyKdV1wjIHab//kwaVzR58r4maCouf+9FLq3sh5rjROX122GO1qw69w3rw7rWibArdf4vq+mXK2IdfYwKup0b4nH6lMXtrs3aqNFX/T+M0KbHXUTVmpZ0/wfblb2v8A3YSAKgGfFpZuZQBABaE9DukfiAufhRE6mqqZw5vmI57Mpa2tFdQMrAmtHdbUQSmbxwxa8EGYqjxv7ELS+nRDkMype/cykmvjtjCzBvfDMOz52G9BIpf1wOWFBBDMfIkINTujEqu7+78dNITrySxy4wgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=R/TYoY4XC6aBO4s8m/2zhHMwISY8ASujWqGGXwIQPUI=; b=CqWCiW1y2Lr77JDsDlKUCS2nBrrRMN9mwogHAagapQICeChEpJT1ssmN/SIjywNGDcNC/oDSq91cDeMf4fUTMWiCZSgIYTnCqOR14RKL/PeOPolontbh6WtuUAlosJveTW+7b8TbugtWXSEf045marXyodAXUmIK7QTvn5rFtIR9HHqkUpUvasbNgY7oiReq/nqYsLbt8LOO4fsr552Lj7M7uvLJJGeMtNalGk5I2OTBwxoR3yw+pPLjiwSXlRyffXuc64LOphUG8Lrh1umqq2dJxYTboGGQ1GJAjf1aD2riIMkWBmYwVXf6DNYS4zi0dxZfihOPR37FEyJqRwHfeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=legitsecurity.com; dmarc=pass action=none header.from=legitsecurity.com; dkim=pass header.d=legitsecurity.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=legitsecurity.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=R/TYoY4XC6aBO4s8m/2zhHMwISY8ASujWqGGXwIQPUI=; b=oLmBPC/KLiXoqD672tHLwj58jmOX57lOyZL+tyY3Tvcggdeh+oHctPKUJMEFCNRZK3QhCbam0z6sJqygNu70oomyzB+oU0Qhe1y8JBECw74FoCPXQSsx28tdPOfWiTkwMd5OByDcOKbvw4s62idHD0KbIvfrN78yUEPHEuQLl2HvfBFezKOyhhK53J324eUXryzQfTYagoC6W58x/Sm0t9g6LL4onIhL7kW9KPFpgcJkMN6fQ/tYTRpDHoSKRpu83VrgNKA1plgHvUQu7CztY7xcfo3eqBTaC4YAOP3niXUUCe+nxN+QclAtDvsTawyPgv74ZpaNGK3FD2iEhLpT8Q== Received: from PA6PR03MB10241.eurprd03.prod.outlook.com (2603:10a6:102:3c8::16) by AM0PR03MB6259.eurprd03.prod.outlook.com (2603:10a6:20b:15b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.54; Mon, 31 Mar 2025 17:54:08 +0000 Received: from PA6PR03MB10241.eurprd03.prod.outlook.com ([fe80::1a70:b2d2:cabe:35a6]) by PA6PR03MB10241.eurprd03.prod.outlook.com ([fe80::1a70:b2d2:cabe:35a6%4]) with mapi id 15.20.8534.043; Mon, 31 Mar 2025 17:54:08 +0000 From: Eden Aharoni To: Christophe Pettus CC: "pgsql-general@lists.postgresql.org" Subject: Re: [EXTERNAL] RDS IO Read time Thread-Topic: [EXTERNAL] RDS IO Read time Thread-Index: AQHbomR5I1Yf228l+k24YWTefbhcZ7ONhuDJ Date: Mon, 31 Mar 2025 17:54:08 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-reactions: allow authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=legitsecurity.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PA6PR03MB10241:EE_|AM0PR03MB6259:EE_ x-ms-office365-filtering-correlation-id: 44e15e9c-727c-4590-132b-08dd707d090a x-ms-exchange-atpmessageproperties: SA x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|376014|366016|8096899003|13003099007|38070700018|7053199007; x-microsoft-antispam-message-info: =?us-ascii?Q?F3ReBPy5tGTf1kpsB3GVaFKudo9Eq8YvXSBPUe/A1piy3VCSgBHVYEc8c7IH?= =?us-ascii?Q?QSDtbtsJ+OdiWlRY7IqvU+M8+dcVKEk4KnL2VHlA1V/widVwwrc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bm7SR7UU2HXClPS3pYHs+tKpgYR5F2vj?= =?us-ascii?Q?r4n4iLwQjqJzWw34AhwFu1oo8/IX5kpCNMynR/xTK4xGdEIFVAnMDMMh/wrh?= =?us-ascii?Q?+02x0HpcxNIxU44UG3F6CXU7iM84tmngzgXjmKWSPfKMrw4PSotTb3ap9zk0?= =?us-ascii?Q?A/oSTOYtEc5sp8FN+Z6P6LXu+wFP7582rv8iJ32CC4GacskJhuqO/X6l1MUs?= =?us-ascii?Q?9aKOQxLl1o7WsVoNBp1NUpcaigpdJQLw9sGSg29sHPPqjiUDVfiouFyrzPCp?= =?us-ascii?Q?26qrqIdMkJ7eUCC/v47foUJ7rms1qVL+owRO31p+gJf7CXEnLZq9M7bXRusm?= =?us-ascii?Q?usfqW85iw1MqNK8QO3jaAwAYgTvjtalrPaO0ZYXyr/M2Ctf46IX3oOKD8qcI?= =?us-ascii?Q?io9zCkSXSHYqEzVujggKWk2C/guo?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA6PR03MB10241.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(8096899003)(13003099007)(38070700018)(7053199007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vXDMuWspQ7kjc2OCX+o4mKEpn193Wc2U6/ZwQf2vXLerMpS/YBKfCViqD1+v?= =?us-ascii?Q?g7eCywhC+0QIOoyve2zLwoJt5+C94pLYj0Mrc3+n858pzk5RPCiSzVPs7PuN?= =?us-ascii?Q?Cmcs3GPL1DEucqvjzakId3JB6WARp6P2EqjD1vbaCO5S00V3qdf0uiWSvd8h?= =?us-ascii?Q?Hji9fZ9ka2CEH049jmTwcAi09pAPwaw3BrRvYQ/Rwd7WTfxziLCBAf9eW/3q?= =?us-ascii?Q?6rmtlWHcvqQwCIUpARSxtiYkkr+jCh/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9H2jBu5UwIHO/m/zDzz5dBZ79e+GDo7pcby1R++uuAnqECJK5Xfv9C5Fm?= =?us-ascii?Q?SGm7LPyY5AFp5aM9uG5OezxHPHsaB9h5T41YiLvszh4lkrYShF2JKUaVlsiL?= =?us-ascii?Q?01gMyMrS2lURHhsgjWj+q0B2c2ctR3DPkA9GT5Elz07mUM8f9d+ZCm1IR7GF?= =?us-ascii?Q?Q4q6YLJ+UPpZipYYogEKNSPE6AOET16aRya+W8TrLy+tYDSsxpLTEfMR+lLi?= =?us-ascii?Q?EKZ00lj5jjpl3KHD89fha5XYyFOKO16baaQpZx2Fg1dLNRLXk3x2ft9OcEd6?= =?us-ascii?Q?L25cBCt96jHoLRtFXSrVpHTgoehEz+gO5/E5mZJQJz0AkqDzYkTn6DbJnQ6Q?= =?us-ascii?Q?6A1jQGIwcfEZKhsObdW7LRdnxztWFZtUcQq/rcFLNhCFXEBisvgxdr1qSjbi?= =?us-ascii?Q?hfVKKx9TuR8itD1NwqUW7tePz54j9veev8WdpjO/Hri2NR1mtOVb6VV8KOFy?= =?us-ascii?Q?2g=3D=3D?= Content-Type: multipart/alternative; boundary="_000_PA6PR03MB102417C1CF1AB598D6AF4ABFBBBAD2PA6PR03MB10241eu_" MIME-Version: 1.0 X-OriginatorOrg: legitsecurity.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PA6PR03MB10241.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44e15e9c-727c-4590-132b-08dd707d090a X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2025 17:54:08.1013 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1d036cb2-b1cc-4321-8a87-6f43158d9e1a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6aSF2fOQfGs5ULLD6iuK5KW+P1V01V52wKWOLSA7ydzW8qAUsLnT95xvyMI+pzSvQnp0JXQXzm4bPnkHBNf4Ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB6259 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_PA6PR03MB102417C1CF1AB598D6AF4ABFBBBAD2PA6PR03MB10241eu_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable So you believe it's strictly an EBS issue? Get Outlook for Android ________________________________ From: Christophe Pettus Sent: Monday, March 31, 2025 8:43:19 PM To: Eden Aharoni Cc: pgsql-general@lists.postgresql.org Subject: Re: [EXTERNAL] RDS IO Read time [You don't often get email from xof@thebuild.com. Learn why this is importa= nt at https://aka.ms/LearnAboutSenderIdentification ] > On Mar 31, 2025, at 10:32, Eden Aharoni wrote: > > First, thanks for the reply :) > So, I do know which part is taking a lot of IO time and it's to be honest= any node that reads from the disk.. of course, we're running EXPLAIN on ou= r queries (to be more specific we use auto_explain) but we can't seem to fi= nd what could cause an index scan that reads 34 MB to take more than a seco= nd (1.2 sec).. we do know that our dataset doesn't fit the memory and we we= re ok with that but with IO being so slow we just don't know what to do any= more. Any other suggestions other than contact AWS (which we did but it see= ms this path won't lead anywhere). The performance of EBS is definitely a question for AWS. I can say that, i= n our experience, EBS mounts for RDS almost never approach the stated maxim= um throughput, although io2 tends to be closer than gp2 or gp3. --_000_PA6PR03MB102417C1CF1AB598D6AF4ABFBBBAD2PA6PR03MB10241eu_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
So you believe it's strictly an EBS issue?


From: Christophe Pettus <= ;xof@thebuild.com>
Sent: Monday, March 31, 2025 8:43:19 PM
To: Eden Aharoni <edena@legitsecurity.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postg= resql.org>
Subject: Re: [EXTERNAL] RDS IO Read time
 
[You don't often get email from xof@thebuild.com. = Learn why this is important at https://aka.ms/Le= arnAboutSenderIdentification ]

> On Mar 31, 2025, at 10:32, Eden Aharoni <edena@legitsecurity.com>= ; wrote:
>
> First, thanks for the reply :)
> So, I do know which part is taking a lot of IO time and it's to be hon= est any node that reads from the disk.. of course, we're running EXPLAIN on= our queries (to be more specific we use auto_explain) but we can't seem to= find what could cause an index scan that reads 34 MB to take more than a second (1.2 sec).. we do know that ou= r dataset doesn't fit the memory and we were ok with that but with IO being= so slow we just don't know what to do anymore. Any other suggestions other= than contact AWS (which we did but it seems this path won't lead anywhere).

The performance of EBS is definitely a question for AWS.  I can say th= at, in our experience, EBS mounts for RDS almost never approach the stated = maximum throughput, although io2 tends to be closer than gp2 or gp3.
--_000_PA6PR03MB102417C1CF1AB598D6AF4ABFBBBAD2PA6PR03MB10241eu_--