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 1glbky-0000YE-Fj for pgsql-admin@arkaria.postgresql.org; Mon, 21 Jan 2019 15:45:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1glbkx-0006c1-A5 for pgsql-admin@arkaria.postgresql.org; Mon, 21 Jan 2019 15:44:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glbkx-0006bu-2Q for pgsql-admin@lists.postgresql.org; Mon, 21 Jan 2019 15:44:59 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glbkt-0004AV-Hm for pgsql-admin@lists.postgresql.org; Mon, 21 Jan 2019 15:44:58 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 3B9394F0ED; Mon, 21 Jan 2019 16:44:54 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id dxoNWWmtDvGZ; Mon, 21 Jan 2019 16:44:52 +0100 (CET) Message-ID: Subject: Re: IO scheduler recommendation From: Laurenz Albe To: AB_ba# , pgsql-admin@lists.postgresql.org Date: Mon, 21 Jan 2019 16:44:51 +0100 In-Reply-To: References: Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk AB_ba# wrote: > I searched the complete PostgreSQL Documentation but didn't get anything with respect to IO scheduler recommendation. > What is being recommended by PostgreSQL ? There is no clear recommendation. I personally have seen workloads where changing from "cfq" to "deadline" or "noop" improved performance by a factor of 4, but on many systems "cfq" seems to be doing at least as good as the others. I believe that it depends a lot on your hardware configuration and your workload, and you are best advised to run a realistic load test. > Which is the best IO scheduler considering the Data is hosted on NFS? No idea - probably depends on what is behind the NFS. Make sure to use hard, fg mounts. If you can, use "jumbo frames" so that an 8KB block can fit into a single IP frame. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com