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 1sqJwN-008iI5-Kf for pgsql-general@arkaria.postgresql.org; Mon, 16 Sep 2024 22:11:29 +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 1sqJwN-000G6M-7N for pgsql-general@arkaria.postgresql.org; Mon, 16 Sep 2024 22:11:27 +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 1sqJwM-000G4G-3N for pgsql-general@lists.postgresql.org; Mon, 16 Sep 2024 22:11:26 +0000 Received: from fhigh8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sqJwI-001XRb-Dk for pgsql-general@lists.postgresql.org; Mon, 16 Sep 2024 22:11:24 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 9653F11401A3; Mon, 16 Sep 2024 18:11:20 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 16 Sep 2024 18:11:20 -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:subject:subject:to:to; s=fm3; t=1726524680; x=1726611080; bh=1NJF1ayOtvhBt6rfAADsnZoqGzsjHphbbEs+L4LfMa0=; b= HgV9YrZ8wWKKrjnVbDTvOlt/SRPR8B4zN7Wpb2V3yMM5ZkGe4d57U0GibEWRGTpC IZKp4nZ6jduHD3L04pwwudfOGe3F9kHkDhyRzL7dvhEDlF5eUFktOTvMcHbGE6Vy JBKTNt+zOJHfMxX0Z9o+a17bnaII+RymIw9RDkBfsZZP3nkqZRbepw/Y+G9g/C3+ cB3EJONsu3Xk7TF+EmiKPPvQdrnZqt50AGqgljUuLR0CvDeucSzdOO0JAQWDwwDy zwwwf8oWCdQKTr7q2ipPodRmKqOjh6SHspdpQhbPkCh2v8SClqBnET5D0X+Lkcwy twK46DNg41nK2szBopVKfQ== 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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1726524680; x= 1726611080; bh=1NJF1ayOtvhBt6rfAADsnZoqGzsjHphbbEs+L4LfMa0=; b=D Eyxy3wxjCfjhWvt5RA+8b8Pcd+5IwBWVO9qyLUjwey0jGj5UrVCQhwu+Njb4jqBw vHvYIqWx6zAHS7kEFAksNFULgwl4XTdhMs4AwxSrSYn9r4YSeNY6TXeBQKB6Ma1Q BzqdMkdlqZmrFI/7yQUlQ+OlNVhe/oLqZ2YyJ9jQfQBQ3Ba3+gn7WmhifjrCe6n6 KOZOY6wMw6Im5l8T4om+7K+4QbQ7dE8bpbdhs0XUOMwjGLBNAY4CsdaFA33whe3K Xkoi4GllAuBR8jbomS6zNk2V2pbuLfMjnuKYqFBmf3G6Udiwp3urOLrmtHRgABwP mIyuilNRO6JL4iDVw7ljA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudekiedgtdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeen ucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefggedtveeuffetgeelfeeg gfduieduheffvdejfefhffetgffhteelveevieehudenucffohhmrghinheprghprggthh gvrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpth htohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvhgvvghmrgdttddttdes ghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsth hsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Sep 2024 18:11:19 -0400 (EDT) Message-ID: <3dddea5e-52ab-4075-970d-a87b0c921ae7@aklaver.com> Date: Mon, 16 Sep 2024 15:11:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: IO related waits To: veem v , pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: 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 9/16/24 13:24, veem v wrote: > Hi, > One of our application using RDS postgres. In one of our streaming > applications(using flink) which processes 100's of millions of > transactions each day, we are using row by row transaction processing > for inserting data into the postgres database and commit is performed > for each row. We are seeing heavy IO:XactSynch wait events during the > data load and also high overall response time. > > Architecture team is suggesting to enable asynch io if possible, so that > the streaming client will not wait for the commit confirmation from the > database. So I want to understand , how asynch io can be enabled and if > any downsides of doing this? Are you referring to this?: https://nightlies.apache.org/flink/flink-docs-release-1.20/docs/dev/datastream/operators/asyncio/ If not then you will need to be more specific. > > Regards > Veem -- Adrian Klaver adrian.klaver@aklaver.com